/* ==========================================================================
   MOSTLY MOVIES - CINEMATIC EXPERIENCE SYSTEM
   Art Direction: The Luminescent Dark Cinema & Celluloid Halation
   ========================================================================== */

/* 1. TOKENS & CINEMATIC VARIABLES */
:root {
  --cinema-black: #050608;
  --cinema-surface: rgba(15, 17, 23, 0.72);
  --cinema-surface-solid: #0d0f15;
  --cinema-border: rgba(255, 255, 255, 0.08);
  --cinema-border-hover: rgba(255, 255, 255, 0.22);
  
  --kodak-red: #ff4d26;
  --kodak-red-glow: rgba(255, 77, 38, 0.35);
  --anamorphic-gold: #ffd700;
  --anamorphic-gold-glow: rgba(255, 215, 0, 0.3);
  --technicolor-cyan: #00f2fe;
  --technicolor-cyan-glow: rgba(0, 242, 254, 0.3);
  --celluloid-purple: #7b61ff;
  --celluloid-purple-glow: rgba(123, 97, 255, 0.35);
  --chronos-emerald: #10b981;
  --chronos-emerald-glow: rgba(16, 185, 129, 0.35);
  --cinecut-crimson: #ff2a5f;
  --cinecut-crimson-glow: rgba(255, 42, 95, 0.35);
  --cinesnip-crimson: #ff2a5f;
  --cinesnip-crimson-glow: rgba(255, 42, 95, 0.35);
  --chronosplus-azure: #00a8ff;
  --chronosplus-azure-glow: rgba(0, 168, 255, 0.4);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Dank Mono', ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

main {
  display: block !important;
  width: 100% !important;
  flex-grow: 1;
}

/* 2. STATIC 35MM CELLULOID GRAIN & THEATRICAL LIGHTING (Zero-CPU) */
body {
  background-color: var(--mm-bg-canvas, #06070a);
  background-image: var(--mm-bg-gradient);
  background-attachment: fixed;
}

.film-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' 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");
  background-size: 160px 160px;
  background-repeat: repeat;
}

/* 5. CINEMATIC HERO SECTION */
.cinema-hero {
  position: relative;
  z-index: 10;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 77, 38, 0.1);
  border: 1px solid rgba(255, 77, 38, 0.35);
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7e60;
  margin-bottom: 2rem;
  box-shadow: 0 0 25px var(--kodak-red-glow);
}

.hero-pill .pill-dot {
  width: 6px;
  height: 6px;
  background-color: var(--kodak-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--kodak-red);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #f3f4f6;
  margin-bottom: 1.8rem;
  text-wrap: balance;
}

.hero-title .glow-word {
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ff4d26 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.25);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #9ca3af;
  max-width: 780px;
  margin: 0 auto 3rem;
  font-weight: 400;
  text-wrap: balance;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--mm-accent-gold) 0%, #c48c26 100%);
  color: #000000;
  padding: 0.85rem 2rem;
  min-height: var(--mm-btn-min-height, 46px);
  border-radius: var(--mm-btn-radius, 10px);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 30px var(--mm-accent-gold-glow), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--mm-accent-gold-hover, #f5b748) 0%, #d49830 100%);
  box-shadow: 0 0 45px rgba(229, 169, 59, 0.6), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
  padding: 0.85rem 1.8rem;
  min-height: var(--mm-btn-min-height, 46px);
  border-radius: var(--mm-btn-radius, 10px);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid var(--cinema-border);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

#hero-try-chronosplus {
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.32);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.14);
  color: #ffffff;
}

#hero-try-chronosplus:hover {
  background: rgba(0, 168, 255, 0.16);
  border-color: rgba(0, 168, 255, 0.6);
  box-shadow: 0 0 32px rgba(0, 168, 255, 0.32);
}

.hero-btn-secondary .hero-btn-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--chronosplus-azure, #00a8ff);
  filter: drop-shadow(0 0 6px rgba(0, 168, 255, 0.5));
  transition: transform 0.2s ease;
}

.hero-btn-secondary:hover .hero-btn-svg {
  transform: scale(1.12);
}

.hero-ticker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-family: var(--font-mono);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* 6. SECTION TITLES & NARRATIVE HEADERS */
.cinema-section {
  position: relative;
  z-index: 10;
  padding: 7rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-act {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kodak-red);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f3f4f6;
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 7. DAILY GAUNTLET (GAME MATRIX) - MINIMALIST CALM 2-COLUMN GRID */
.gauntlet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 840px) {
  .gauntlet-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cinema-card {
  position: relative;
  background: var(--cinema-surface);
  border: 1px solid var(--cinema-border);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.cinema-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
  z-index: 2;
}

.cinema-card:hover {
  transform: translateY(-4px);
  border-color: var(--cinema-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Card Themes - Subtle top accent & quiet diffuse halation */
.cinema-card.theme-cinedegrees::before { background: var(--celluloid-purple); }
.cinema-card.theme-cinedegrees:hover { box-shadow: 0 16px 36px rgba(123, 97, 255, 0.15); }

.cinema-card.theme-keyframe::before { background: var(--kodak-red); }
.cinema-card.theme-keyframe:hover { box-shadow: 0 16px 36px rgba(255, 77, 38, 0.15); }

.cinema-card.theme-plotlines::before { background: var(--technicolor-cyan); }
.cinema-card.theme-plotlines:hover { box-shadow: 0 16px 36px rgba(0, 242, 254, 0.15); }

.cinema-card.theme-cineclues::before { background: var(--anamorphic-gold); }
.cinema-card.theme-chronosplus {
  border-color: rgba(0, 168, 255, 0.28);
  background: radial-gradient(ellipse 90% 45% at 50% 0%, rgba(0, 168, 255, 0.08) 0%, rgba(15, 17, 23, 0.8) 100%);
}
.cinema-card.theme-chronosplus::before {
  background: var(--chronosplus-azure, #00a8ff);
  box-shadow: 0 0 16px var(--chronosplus-azure-glow, rgba(0, 168, 255, 0.45));
  height: 3px;
}
.cinema-card.theme-chronosplus:hover {
  box-shadow: 0 16px 36px rgba(0, 168, 255, 0.25);
  border-color: rgba(0, 168, 255, 0.55);
}

.cinema-card.theme-chronos::before { background: var(--chronos-emerald); }
.cinema-card.theme-chronos:hover { box-shadow: 0 16px 36px rgba(16, 185, 129, 0.15); }

.cinema-card.theme-cinecut::before,
.cinema-card.theme-cinesnip::before { background: var(--cinesnip-crimson); }
.cinema-card.theme-cinecut:hover,
.cinema-card.theme-cinesnip:hover { box-shadow: 0 16px 36px rgba(255, 42, 95, 0.15); }

@media (min-width: 841px) {
  .gauntlet-grid > .cinema-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Card Header: Free-standing Emblem + Title & Calm Meta */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.card-emblem {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-emblem .emblem-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.theme-chronosplus .card-emblem {
  color: var(--chronosplus-azure, #00a8ff);
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.22);
}
.theme-chronosplus .card-meta {
  color: #a0c4e8;
}
.theme-chronosplus .card-action-btn {
  color: #ffffff;
}
.theme-chronosplus .card-action-btn:hover {
  color: var(--chronosplus-azure, #00a8ff);
}
.theme-cinedegrees .card-emblem { color: var(--celluloid-purple); }
.theme-keyframe .card-emblem { color: var(--kodak-red); }
.theme-plotlines .card-emblem { color: var(--technicolor-cyan); }
.theme-cineclues .card-emblem { color: var(--anamorphic-gold); }
.theme-chronos .card-emblem { color: var(--chronos-emerald); }
.theme-cinecut .card-emblem,
.theme-cinesnip .card-emblem { color: var(--cinesnip-crimson); }

.cinema-card:hover .card-emblem {
  transform: scale(1.08);
}

.card-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f4f6;
  margin: 0;
  line-height: 1.2;
}

.card-name .mm-brand-accent {
  color: var(--mm-accent-gold, #e5a93b) !important;
  -webkit-text-fill-color: var(--mm-accent-gold, #e5a93b) !important;
  font-weight: inherit;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #8b92a0;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-summary strong {
  color: #f3f4f6;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3f4f6;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  position: relative;
}

.card-btn-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-action-btn:hover .card-btn-arrow,
.cinema-card:hover .card-btn-arrow {
  transform: translateX(4px);
}

.cinema-card:hover .card-action-btn {
  color: #ffffff;
}

.card-action-btn.is-completed {
  color: #34d399;
}

.card-action-btn.is-completed .card-btn-arrow {
  color: #34d399;
}

/* Stretches the action link over the entire card surface */
.card-action-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
}

.card-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-badge-new {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 77, 38, 0.18);
  color: #ff5e36;
  border: 1px solid rgba(255, 77, 38, 0.45);
  box-shadow: 0 0 10px rgba(255, 77, 38, 0.25);
  text-transform: uppercase;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.card-action-btn:hover .btn-badge-new,
.cinema-card:hover .btn-badge-new,
.hero-btn-secondary:hover .btn-badge-new {
  background: #ff4d26;
  color: #ffffff;
  border-color: #ff4d26;
  box-shadow: 0 0 12px rgba(255, 77, 38, 0.6);
}

/* 12. CURTAIN CALL & FINAL CTA (STAGE 7) */
.curtain-call-box {
  background: radial-gradient(circle at 50% 50%, rgba(255, 77, 38, 0.12) 0%, rgba(5, 6, 8, 0.95) 75%);
  border: 1px solid var(--cinema-border);
  border-radius: 32px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.curtain-call-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d26, transparent);
}

.curtain-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.curtain-desc {
  font-size: 1.15rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* 13. CINEMATIC FOOTER */
.cinema-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--cinema-border);
  background: var(--cinema-black);
  padding: 3.5rem 2rem 4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-weight: 700;
  color: #f3f4f6;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* 14. RESPONSIVE BREAKPOINTS */
@media (max-width: 1040px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.75rem;
  }

  .footer-left {
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    text-align: center;
    gap: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .cinema-hero {
    padding: 4rem 1rem 3rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
