/* Fritzs Learning - Official Brand Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Playful Minimalist Early-Childhood Palette */
  --color-coral: #ef4444;
  --color-coral-dark: #dc2626;
  --color-coral-light: #fee2e2;
  
  --color-amber: #f59e0b;
  --color-amber-dark: #d97706;
  --color-amber-light: #fef3c7;
  
  --color-sky: #0ea5e9;
  --color-sky-dark: #0284c7;
  --color-sky-light: #e0f2fe;
  
  --color-emerald: #10b981;
  --color-emerald-dark: #059669;
  --color-emerald-light: #d1fae5;
  
  --color-indigo: #6366f1;
  --color-indigo-dark: #4f46e5;
  --color-indigo-light: #e0e7ff;
  
  --color-purple: #8b5cf6;
  --color-purple-light: #ede9fe;

  --color-cream: #faf9f6;
  --color-surface: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Playful Early Education Decorative Border */
.pattern-rainbow-border {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 25%, #10b981 50%, #0ea5e9 75%, #8b5cf6 100%);
  height: 4px;
  width: 100%;
}

/* Polka Dots / Playful Pattern Accents */
.pattern-playful-dots {
  background-image: radial-gradient(rgba(245, 158, 11, 0.25) 1.5px, transparent 1.5px), radial-gradient(rgba(14, 165, 233, 0.2) 1.5px, #faf9f6 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

/* Glassmorphism & Cards */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Playful Buttons & Badges */
.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: #0ea5e9;
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.btn-emerald {
  background: #10b981;
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-emerald:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  border: 1.5px solid #0ea5e9;
  color: #0284c7 !important;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  background: #ffffff;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #0ea5e9;
  color: #ffffff !important;
}

.nav-sample-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  line-height: 1.25;
  text-decoration: none;
}

.nav-sample-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #ffffff;
  color: var(--color-text-main);
  border-left: 5px solid var(--color-amber);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Overlay */
.modal-overlay {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.75rem;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Interactive Box Configurator */
.box-preview-container {
  perspective: 1000px;
}
.box-preview-card {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #faf9f6;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}
