/* =============================================================================
   PLANCKEON NEWS — DESIGN SYSTEM & STYLESHEET
   Platform: planckeon.news | Optimized for Cloudflare Pages
   ============================================================================= */

:root {
  /* Color Palette — Dark Obsidian Theme */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: #131d31;
  --bg-card-hover: #18243c;
  --bg-glass: rgba(19, 29, 49, 0.75);
  
  --border-color: #1e293b;
  --border-highlight: #334155;
  --border-teal: #14b8a6;
  
  --accent-teal: #2dd4bf;
  --accent-teal-dark: #0d9488;
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-terracota: #f97316;
  --accent-amber: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Shadows */
  --radius-sm: 6pt;
  --radius-md: 10pt;
  --radius-lg: 14pt;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(45, 212, 191, 0.15);
  
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;
  --border-teal: #0d9488;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-group {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

body.light-theme .brand-name {
  background: linear-gradient(135deg, #0f172a 30%, var(--accent-teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-teal);
  letter-spacing: 0.02em;
}

/* Edition Selector */
.edition-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edition-select {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.edition-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Nav Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.btn-icon:hover {
  transform: scale(1.05);
  border-color: var(--accent-teal);
}

/* =============================================================================
   HERO / EDITION BANNER
   ============================================================================= */

.hero-section {
  position: relative;
  padding: 4rem 1.5rem 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, var(--bg-primary) 100%);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hero 1080p Master Animated Video */
.hero-brand-banner-wrap {
  max-width: 980px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 45px rgba(45, 212, 191, 0.18);
  background: #040810;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.hero-brand-banner-wrap:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 60px rgba(45, 212, 191, 0.28);
}

.hero-brand-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-brand-banner-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-pulse {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-pulse::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-teal);
}

.badge-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge-tag {
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-terracota);
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-teal);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* =============================================================================
   BUTTON STYLES
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal-dark) 0%, var(--accent-teal) 100%);
  color: #080c14;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-teal);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.btn-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pill.active, .btn-pill:hover {
  background: var(--accent-teal);
  color: #080c14;
  border-color: var(--accent-teal);
}

/* =============================================================================
   SECTIONS & LAYOUT
   ============================================================================= */

.main-content {
  flex: 1;
}

.section-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* =============================================================================
   SECTION 1: VIDEO MASTER SUITE
   ============================================================================= */

.video-player-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-viewport {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-embed-wrapper iframe,
.video-native-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info-bar {
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.video-tag {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.video-res, .video-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =============================================================================
   SECTION 2: AUDIO PODCAST HUB
   ============================================================================= */

.audio-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.audio-hub-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.audio-cover-col {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.audio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-cover-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-terracota);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.audio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.audio-track-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.audio-track-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Timeline */
.timeline-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-current, .time-total {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 45px;
}

.progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal-dark), var(--accent-teal));
  border-radius: var(--radius-full);
}

/* Buttons Row */
.audio-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.btn-audio-cmd {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-audio-cmd:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.btn-audio-play-master {
  background: linear-gradient(135deg, var(--accent-teal-dark) 0%, var(--accent-teal) 100%);
  color: #080c14;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-audio-play-master:hover {
  transform: scale(1.06);
  filter: brightness(1.15);
}

.speed-selector-group {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  padding: 2px;
}

.btn-speed {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-speed.active, .btn-speed:hover {
  background: var(--accent-teal);
  color: #080c14;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.volume-range {
  width: 75px;
  accent-color: var(--accent-teal);
}

/* =============================================================================
   SECTION 3: PDF DOCUMENT HUB
   ============================================================================= */

.pdf-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pdf-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pdf-tab-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.pdf-tab-btn:last-child {
  border-right: none;
}

.pdf-tab-btn.active {
  background: var(--bg-card);
  border-bottom: 3px solid var(--accent-teal);
}

.tab-code {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.tab-meta {
  display: flex;
  flex-direction: column;
}

.tab-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tab-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pdf-view-wrapper {
  display: flex;
  flex-direction: column;
}

.pdf-actions-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdf-current-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-badge-pages, .pdf-badge-size {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.pdf-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-frame-container {
  height: 680px;
  width: 100%;
  background: #2b2b2b;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================================================
   SECTION 4: 4K INFOGRAPHICS GALLERY
   ============================================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-glow);
}

.gallery-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.08);
}

.gallery-card-info {
  padding: 1rem 1.25rem;
}

.gallery-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* =============================================================================
   SECTION 5: TOPIC BREAKDOWN
   ============================================================================= */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.topic-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.15);
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.topic-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.topic-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.btn-topic-jump {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-topic-jump:hover {
  text-decoration: underline;
}

/* =============================================================================
   MODAL LIGHTBOX
   ============================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  position: relative;
  max-width: 1080px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 1.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
}

.modal-caption {
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.modal-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-caption p {
  font-size: 0.85rem;
  color: var(--accent-teal);
}

/* =============================================================================
   SITE FOOTER
   ============================================================================= */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 56px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.75rem 0 1rem;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col-links h4, .footer-col-tech h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col-links a:hover {
  color: var(--accent-teal);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.domain-badge {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-primary);
  display: inline-block;
}

.domain-badge span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-teal);
}

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 1024px) {
  .header-nav {
    display: none; /* Can be toggled with mobile menu */
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .pdf-tabs-nav {
    grid-template-columns: 1fr;
  }
  
  .pdf-tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .audio-hub-grid {
    grid-template-columns: 1fr;
  }
  
  .audio-cover-col {
    max-width: 260px;
    margin: 0 auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pdf-frame-container {
    height: 480px;
  }
}
