/* ========================================
   UF OH MY GOSH - CSS Design System
   A cosmic dark theme for UFO/UAP news
   ======================================== */

/* ----------------------------------------
   CSS Variables & Design Tokens
   ---------------------------------------- */
:root {
  /* Color Palette - Cosmic Dark Theme */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-tertiary: #1a1a26;
  --color-bg-card: #16161f;
  --color-bg-hover: #1e1e2a;
  
  /* Accent Colors */
  --color-accent-primary: #6366f1;
  --color-accent-secondary: #8b5cf6;
  --color-accent-glow: rgba(99, 102, 241, 0.3);
  --color-accent-cyan: #22d3ee;
  --color-accent-purple: #a855f7;
  
  /* Text Colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-accent: #a5b4fc;
  
  /* Credibility Score Colors */
  --color-score-high: #22c55e;
  --color-score-moderate: #eab308;
  --color-score-limited: #f97316;
  --color-score-low: #ef4444;
  --color-score-unverified: #6b7280;
  
  /* Gradients */
  --gradient-cosmic: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-card: linear-gradient(145deg, #1a1a26 0%, #12121a 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  --gradient-premium: linear-gradient(135deg, #1f1a26 0%, #1a1621 100%);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-primary);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

/* ----------------------------------------
   Base Reset & Typography
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--gradient-cosmic);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Stars Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: -1;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------
   Layout & Container
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr 320px;
  }
}

.content-area {
  min-width: 0;
}

/* Most Popular section gets the same gradient overlay as the hero,
   so the background video is fully hidden behind it. The Latest
   section (which lives directly below in the same .content-area)
   has no overlay — the video already scrolled past by then. */
.overlay-row {
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.74) 0%, rgba(10, 10, 18, 0.84) 50%, rgba(10, 10, 18, 0.93) 100%);
  padding: var(--space-xl);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
}

/* Sidebar gets its own matching gradient so the video is also
   hidden behind the right column. Hidden on mobile (existing
   responsive behavior), shown on desktop. */
.sidebar {
  display: none;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.74) 0%, rgba(10, 10, 18, 0.84) 50%, rgba(10, 10, 18, 0.93) 100%);
  padding: var(--space-xl);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}

.nav-main {
  display: none;
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  .logo-text {
    font-size: 1rem;
  }
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-hover);
}

.nav-link-premium {
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.1);
}

.nav-link-premium:hover {
  background: rgba(234, 179, 8, 0.2);
}

/* ----------------------------------------
   Nav dropdowns (desktop)
   ---------------------------------------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--color-bg-secondary, #14141f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown:focus-within .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--color-text-primary);
  background: var(--color-bg-hover);
}

/* Mobile menu: grouped sections */
.mobile-menu-group-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted, #6b6b80);
  margin: 14px 0 4px;
  padding: 0 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
  border-color: var(--color-accent-primary);
}

.mobile-menu-btn {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  margin-bottom: var(--space-md);
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent-primary);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Page-wide background video
   ---------------------------------------- */
main, .footer, .modal-overlay { position: relative; z-index: 1; }
.hero {
  position: relative;
  min-height: 480px;
  padding: var(--space-3xl) 0;
  z-index: 1;
}
.hero::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.55) 0%, rgba(10, 10, 18, 0.7) 50%, rgba(10, 10, 18, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* The video slot is the first child of <body>. It is absolutely
   positioned to fill the body's full document height (so the video
   scrolls along with the page, then disappears off the top of the
   viewport as the user scrolls down). Sits behind all other content. */
.hero-video-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a14;
}
.hero-video-slot iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 56.25vw;     /* 16:9 of viewport width */
  min-height: 100vh;   /* always at least viewport height */
  min-width: 177.78vh; /* 16:9 of viewport height */
  border: 0;
  pointer-events: none;
}
.hero-video-slot .hero-video-thumb {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(2px);
}
.hero-video-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.hero-video-controls button {
  background: rgba(10, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: inherit;
}
.hero-video-controls button:hover {
  background: rgba(99, 102, 241, 0.8);
  border-color: rgba(99, 102, 241, 0.8);
}
.hero-video-popout {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  height: 203px;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  pointer-events: auto;
}
.hero-video-popout iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}
.hero-video-popout .hero-video-controls {
  right: 6px;
  bottom: 6px;
}
@media (max-width: 600px) {
  .hero-video-popout {
    width: 200px;
    height: 113px;
    right: 10px;
    bottom: 10px;
  }
}

/* ----------------------------------------
   Category Navigation
   ---------------------------------------- */
.category-nav {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.category-pill-icon {
  font-size: 1rem;
}

/* ----------------------------------------
   Section Headers
   ---------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title-icon {
  color: var(--color-accent-primary);
}

.section-link {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-accent-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-hover);
}

/* ----------------------------------------
   Forms & Inputs
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.search-box {
  position: relative;
}

.search-box .form-input {
  padding-left: 2.5rem;
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent-primary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */
@media (max-width: 767px) {
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .stat-value {
    font-size: var(--text-2xl);
  }
}

/* ----------------------------------------
   Pagination Styles
   ---------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  flex-wrap: wrap;
}

.pagination button {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
  background: var(--color-accent-primary);
  color: white;
}

/* =============================================================
   HOME PAGE EXTRAS - Live Stats, Hot Topics, Timeline, Map
   ============================================================= */

/* Live Stats card */
.live-stats-card {
  background: var(--color-bg-card, #111122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-xl);
}
.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
}
.live-stat {
  text-align: center;
  padding: var(--space-md);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.live-stat:hover { transform: translateY(-2px); }
.live-stat-value {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-primary, #6366f1);
  line-height: 1;
}
.live-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #a0a0b8);
  margin-top: 6px;
}
.live-stats-footer {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--color-text-muted, #6b6b80);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hot Topics grid */
.hot-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg-card, #111122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.hot-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  color: var(--color-text, #e5e7eb);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.hot-topic-pill:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--color-accent-primary, #6366f1);
  transform: translateY(-1px);
}
.hot-topic-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted, #6b6b80);
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 999px;
}

/* Disclosure Timeline */
.disclosure-timeline {
  position: relative;
  padding: var(--space-md) 0 var(--space-sm);
}
.timeline-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: var(--space-md);
  padding: var(--space-md) calc(var(--space-xl) + 40px) var(--space-lg);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.timeline-track::-webkit-scrollbar { display: none; }
.timeline-card {
  flex: 0 0 260px;
  background: var(--color-bg-card, #111122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-md);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 12px 12px 0 0;
}
.timeline-card:hover {
  border-color: var(--color-accent-primary, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
}
.timeline-year {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-primary, #6366f1);
  line-height: 1;
}
.timeline-icon { font-size: 1.4rem; }
.timeline-title {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 2px;
}
.timeline-text {
  font-size: 0.82rem;
  color: var(--color-text-secondary, #a0a0b8);
  line-height: 1.5;
  flex: 1;
}
.timeline-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  color: var(--color-text-muted, #6b6b80);
  align-self: flex-start;
}
.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(17, 17, 34, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #c7c7e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.timeline-nav:hover:not(:disabled) {
  background: var(--color-accent-primary, #6366f1);
  color: #fff;
  border-color: var(--color-accent-primary, #6366f1);
  transform: translateY(-50%) scale(1.05);
}
.timeline-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.timeline-nav-prev { left: 4px; }
.timeline-nav-next { right: 4px; }
.timeline-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: var(--space-sm) 0 var(--space-md);
}
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.timeline-dot:hover { background: rgba(99, 102, 241, 0.5); }
.timeline-dot.active {
  background: var(--color-accent-primary, #6366f1);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}
@media (max-width: 640px) {
  .timeline-card { flex: 0 0 82vw; }
  .timeline-track { padding-left: 20px; padding-right: 20px; }
  .timeline-nav { width: 36px; height: 36px; }
  .timeline-nav-prev { left: 2px; }
  .timeline-nav-next { right: 2px; }
}

/* Sightings Map */
.sightings-map-card {
  background: var(--color-bg-card, #111122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-lg);
  position: relative;
}
.sightings-map-svg-wrap {
  position: relative;
  width: 100%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 8px;
  overflow: hidden;
}
.sightings-map-svg { display: block; width: 100%; height: auto; }
.map-pin {
  fill: #ef4444;
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.15s ease;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}
.map-pin:hover {
  fill: #fbbf24;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.9));
}
.sightings-map-tooltip {
  position: absolute;
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid var(--color-accent-primary, #6366f1);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 240px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.sightings-map-tooltip strong { color: var(--color-accent-primary, #6366f1); }
.sightings-map-legend { margin-top: var(--space-md); text-align: center; }

/* How We Score (stacked bar) */
.how-we-score-card {
  background: var(--color-bg-card, #111122);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-xl);
}
.how-we-score-stacked-bar {
  display: flex;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.how-we-score-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  transition: filter 0.2s;
}
.how-we-score-segment:hover { filter: brightness(1.2); }
.how-we-score-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.how-we-score-legend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.how-we-score-legend-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 4px;
  flex-shrink: 0;
}
.how-we-score-cta {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Trending item link */
.trending-item-link { cursor: pointer; }
.trending-item-link:hover { background: rgba(99, 102, 241, 0.08); }

/* New home-page sections (Disclosure Timeline, Live Stats, Hot Topics,
   Sightings Map, Field Investigator, How We Score) need to layer ABOVE
   the .hero-video-slot (z-index: -1) so their text isn't hidden by the
   video slot's dark background. Without this, position: static sections
   with z-index: auto can be painted under an absolute-positioned sibling
   when its z-index is 0 in a positioned ancestor. */
#timeline-section,
#live-stats-section,
#hot-topics-section,
#sightings-map-section,
#field-investigator-section,
#how-we-score-section {
  position: relative;
  z-index: 1;
}

