/* Custom Cinematic Dark Theme Styles for PalmaVideo */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #08080a;
  --bg-secondary: #0f1015;
  --bg-card: rgba(18, 19, 26, 0.75);
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --border-glass: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: #e2e8f0;
  overflow-x: hidden;
  selection-background-color: #f59e0b;
  selection-color: #000;
}

h1, h2, h3, .font-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono-tech {
  font-family: 'Space Grotesk', monospace;
}

/* Cinematic Glow & Mesh Backgrounds */
.bg-mesh-glow {
  background: 
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.glass-panel {
  background: rgba(15, 17, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(245, 158, 11, 0.15);
}

/* Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-ai {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle Animated Grid */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Sound Wave Animation */
.waveform-bar {
  animation: soundWave 1.4s ease-in-out infinite alternate;
}

@keyframes soundWave {
  0% { height: 15%; }
  50% { height: 85%; }
  100% { height: 35%; }
}

.waveform-bar:nth-child(2) { animation-delay: 0.15s; }
.waveform-bar:nth-child(3) { animation-delay: 0.35s; }
.waveform-bar:nth-child(4) { animation-delay: 0.2s; }
.waveform-bar:nth-child(5) { animation-delay: 0.5s; }
.waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.waveform-bar:nth-child(7) { animation-delay: 0.65s; }
.waveform-bar:nth-child(8) { animation-delay: 0.4s; }

/* Pulse Glows */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08080a;
}
::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Analog 35mm Film Look & Grain (Anti-AI Gloss Filter) */
.film-still-wrap {
  position: relative;
  overflow: hidden;
}

.film-still {
  filter: saturate(0.76) contrast(1.06) brightness(0.92) sepia(0.06);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.group:hover .film-still,
.glass-panel-hover:hover .film-still {
  transform: scale(1.03);
  filter: saturate(0.85) contrast(1.08) brightness(0.96) sepia(0.04);
}

.film-grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.14'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 2;
}

.film-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 50%, rgba(5, 6, 8, 0.55) 100%);
  z-index: 3;
}
