/* Empress Avenue Media - Cinematic Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #07080a;
  --bg-surface: #0e1117;
  --bg-surface-elevated: #151922;
  --bg-surface-hover: #1c222e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(217, 160, 91, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #d9a05b;
  --accent-gold-light: #f5b971;
  --accent-gold-dark: #b37e3d;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-deep);
}

/* Typography Utilities */
.font-cinema {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.font-tech {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* Film Grain Texture */
.film-grain {
  position: relative;
}

.film-grain::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.035;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Cinematic Glow & Gradients */
.glow-gold {
  box-shadow: 0 0 35px -5px rgba(217, 160, 91, 0.25);
}

.glow-gold-hover:hover {
  box-shadow: 0 0 40px 0 rgba(217, 160, 91, 0.35);
}

.radial-vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(7, 8, 10, 0.85) 100%);
}

.hero-gradient {
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.4) 0%, rgba(7, 8, 10, 0.7) 60%, rgba(7, 8, 10, 1) 100%);
}

.card-gradient {
  background: linear-gradient(180deg, rgba(7, 8, 10, 0) 0%, rgba(7, 8, 10, 0.85) 60%, rgba(7, 8, 10, 0.98) 100%);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(14, 17, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-nav {
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Aspect Ratio Utilities */
.aspect-cinema {
  aspect-ratio: 2.39 / 1;
}

.aspect-poster {
  aspect-ratio: 2 / 3;
}

.aspect-widescreen {
  aspect-ratio: 16 / 9;
}

/* Smooth Micro-Interactions */
.zoom-frame {
  overflow: hidden;
}

.zoom-frame img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.zoom-frame:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Gold Accent Underline Animation */
.hover-gold-line {
  position: relative;
  display: inline-block;
}

.hover-gold-line::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-gold-line:hover::after {
  width: 100%;
}

/* Form Styles */
.cinema-input {
  background-color: rgba(14, 17, 23, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.cinema-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(217, 160, 91, 0.2);
  background-color: rgba(21, 25, 34, 0.95);
}

/* Lightbox Animation */
.lightbox-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Accessibility Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
