/* DiPanZo — design tokens ported 1:1 from the original build */

:root {
  --radius: 1rem;

  --brand-blue: #2563eb;
  --brand-sky: #38bdf8;
  --brand-yellow: #facc15;
  --brand-orange: #fb923c;
  --brand-green: #22c55e;
  --brand-pink: #ec4899;
  --brand-purple: #a855f7;
  --brand-navy: #1e2a6b;
  --brand-youtube: #ff0000;
  --brand-canvas: #f8fafc;

  --background: #f8fafc;
  --foreground: #1e2a6b;
  --card: #ffffff;
  --muted: #f1f5f9;
  --border: #e2e8f0;

  --gradient-sky: linear-gradient(180deg, #dbeafe 0%, #fef3c7 100%);
  --gradient-sunshine: linear-gradient(135deg, #facc15 0%, #fb923c 100%);
  --gradient-magic: linear-gradient(90deg, #2563eb 0%, #a855f7 40%, #ec4899 70%, #facc15 100%);
  --shadow-play: 0 20px 40px -20px rgb(37 99 235 / 0.35);
  --shadow-glow: 0 10px 40px -10px rgb(250 204 21 / 0.6);
}

.dark {
  --background: #0b1230;
  --foreground: #f8fafc;
  --card: #141c46;
  --muted: #1e2a6b;
  --border: rgba(255, 255, 255, 0.12);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes drift {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(calc(100vw + 30px)); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-twinkle { animation: twinkle 3s ease-in-out infinite; }
.animate-drift { animation: drift 40s linear infinite; }
.animate-fade-up { animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.dark .glass {
  background: rgba(20, 28, 70, 0.7);
}

.text-gradient-magic {
  background: var(--gradient-magic);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.text-gradient-sunshine {
  background: var(--gradient-sunshine);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgb(37 99 235 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.leading-tight95 { line-height: 0.95; }

html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
::selection {
  background: var(--brand-yellow);
  color: var(--brand-navy);
}

/* Contact form input */
.input {
  width: 100%;
  border-radius: 1rem;
  background: var(--color-muted, var(--muted));
  color: var(--foreground);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  outline: none;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.input:focus { border-color: var(--brand-blue); background: white; }
.dark .input:focus { background: rgba(255,255,255,0.05); }
.input[aria-invalid="true"] { border-color: #dc2626; }

/* Simple toast (progressive-enhancement, mirrors the original sonner toasts) */
#toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 40px -15px rgb(0 0 0 / 0.3);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.success { background: #22c55e; color: white; }
#toast.error { background: #dc2626; color: white; }

/* Mobile nav drawer */
.nav-drawer { display: none; }
.nav-drawer.open { display: block; }

/* Episode modal */
.ep-modal { display: none; }
.ep-modal.open { display: grid; }
