/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* WARGAMES CHRONICLE — THEME & LAYOUT STYLES */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ─────────────────────────────────────────────────────────────── */
/* OVERVIEW SECTION */
/* ─────────────────────────────────────────────────────────────── */

#overview {
  background: var(--surface);
}

.overview-intro {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* FILM SECTION */
/* ─────────────────────────────────────────────────────────────── */

#the-film {
  padding-top: var(--gap-lg);
}

.film-hero {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.film-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.6);
  loading: lazy;
}

.film-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 10, 18, 0.6) 0%, rgba(224, 53, 48, 0.1) 100%);
  pointer-events: none;
}

.ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.wopr-cta {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin: 2.5rem 0;
  font-family: var(--font-mono);
  color: var(--text);
  text-align: center;
}

.wopr-cta-header {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.wopr-divider {
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.wopr-status {
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.wopr-prompt {
  font-size: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-weight: 500;
}

.wopr-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--duration-base) ease;
  margin-top: 1.5rem;
  text-decoration: none;
}

.wopr-button:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ─────────────────────────────────────────────────────────────── */
/* PLOT ANALYSIS & CRITIC CONSENSUS */
/* ─────────────────────────────────────────────────────────────── */

.plot-analysis {
  margin: 2.5rem 0;
}

.plot-analysis p {
  margin-bottom: 1.25rem;
}

.critics-quote {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* THEMATIC DRIVERS SUBSECTION */
/* ─────────────────────────────────────────────────────────────── */

.thematic-drivers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.theme-subsection {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
}

.theme-subsection h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.theme-subsection p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────── */
/* CHARACTER GRID */
/* ─────────────────────────────────────────────────────────────── */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.character-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--duration-base) ease;
}

.character-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.character-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

.character-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.character-actor {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.character-body {
  padding: 1.5rem;
}

.character-body p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────── */
/* FRANCHISE THEMES SECTION */
/* ─────────────────────────────────────────────────────────────── */

#themes {
  padding-top: var(--gap-lg);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  transition: all var(--duration-base) ease;
}

.theme-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.theme-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.theme-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1rem;
}

.theme-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────── */
/* BACK LINK */
/* ─────────────────────────────────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration-base) ease;
  margin-bottom: var(--gap-lg);
}

.back-link:hover {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────── */
/* ICON STYLES */
/* ─────────────────────────────────────────────────────────────── */

.icon-arrow-up {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 0.25rem;
}

.icon-chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
}

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVE ADJUSTMENTS */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .film-hero {
    height: 300px;
  }

  .thematic-drivers {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .ratings-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .wopr-cta {
    padding: 1.5rem;
  }

  .film-hero {
    height: 250px;
  }
}
