/* ===================================================================
   WEBHAAL.COM - PREMIUM EDITORIAL DESIGN SYSTEM
   Theme: Obsidian Dark (Default) & Ivory Light Mode
   Typography: Rozha One (Editorial Serif), Mukta & Noto Sans Devanagari
   =================================================================== */

:root {
  /* Core Brand Colors */
  --saffron-500: #ff6200;
  --saffron-600: #e55300;
  --saffron-400: #ff7d2b;
  --vermilion: #e53935;
  --gold: #f59e0b;
  --emerald: #10b981;
  --royal-blue: #2563eb;

  /* Obsidian Dark Theme (Default) */
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #131a2b;
  --bg-card: rgba(19, 26, 43, 0.75);
  --bg-card-hover: rgba(28, 38, 62, 0.95);
  --bg-glass: rgba(13, 18, 29, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 98, 0, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-saffron: #ff8438;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-saffron: 0 8px 30px rgba(255, 98, 0, 0.25);

  --font-serif: 'Rozha One', 'Georgia', serif;
  --font-body: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Outfit', 'Mukta', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-glow: rgba(255, 98, 0, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-saffron: #d94d00;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-saffron: 0 8px 25px rgba(255, 98, 0, 0.15);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= TOP TICKER ================= */
.top-announcement {
  background: linear-gradient(90deg, #160a03 0%, #1e1105 50%, #0d121d 100%);
  border-bottom: 1px solid rgba(255, 98, 0, 0.2);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

[data-theme="light"] .top-announcement {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #f8fafc 100%);
  border-bottom: 1px solid rgba(255, 98, 0, 0.15);
  color: #7c2d12;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--saffron-500), var(--vermilion));
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #fff; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: tickerSlide 80s linear infinite;
  font-family: var(--font-body);
  font-weight: 500;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  margin-right: 40px;
  color: var(--text-primary);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-date-time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  flex-shrink: 0;
}

/* ================= HEADER & BRAND ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 98, 0, 0.35);
  border: 1px solid rgba(255, 98, 0, 0.4);
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-emblem {
  transform: rotate(-3deg) scale(1.05);
}

.brand-title {
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-part-web {
  color: var(--text-primary);
}

.brand-part-haal {
  background: linear-gradient(135deg, var(--saffron-400), var(--saffron-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-part-dot {
  color: var(--vermilion);
  font-size: 20px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Search Box */
.header-search {
  flex: 1;
  max-width: 400px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 42px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.15);
  background: var(--bg-secondary);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

/* Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.action-btn.icon-only {
  padding: 9px 11px;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--saffron-500) 0%, #d94200 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-saffron);
}

.btn-primary-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 98, 0, 0.4);
}

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

.btn-secondary-glass:hover {
  background: var(--bg-secondary);
  border-color: var(--saffron-500);
}

.badge-pill {
  background: var(--saffron-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.spin-icon.spinning {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= CATEGORY BAR ================= */
.category-nav-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  position: sticky;
  top: 77px;
  z-index: 90;
  backdrop-filter: blur(12px);
}

.category-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 98, 0, 0.4);
  background: rgba(255, 98, 0, 0.08);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--saffron-500), #e54600);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 98, 0, 0.3);
}

.source-select {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* ================= HERO SHOWCASE ================= */
.hero-showcase {
  padding: 32px 0 20px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 98, 0, 0.15);
}

.hero-media-wrapper {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.2) 60%, transparent 100%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.1) 60%, transparent 100%);
}

.hero-photo-credit {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: fit-content;
}

.hero-content {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tag-badge {
  background: rgba(255, 98, 0, 0.15);
  color: var(--saffron-400);
  border: 1px solid rgba(255, 98, 0, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.source-pill {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.time-pill {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--saffron-500);
  padding: 16px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-bullet {
  color: var(--saffron-500);
  font-weight: bold;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-link-source {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  transition: var(--transition);
}

.btn-link-source:hover {
  color: var(--saffron-400);
}

/* ================= MAIN CONTENT & NEWS GRID ================= */
.main-content {
  padding: 24px 0 60px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.view-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.view-label {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 10px;
  font-weight: 600;
}

.view-toggle-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.view-toggle-btn.active {
  background: var(--saffron-500);
  color: #fff;
}

/* Sync Banner */
.sync-banner {
  background: linear-gradient(90deg, rgba(255, 98, 0, 0.15), rgba(229, 57, 53, 0.15));
  border: 1px solid rgba(255, 98, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.sync-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 98, 0, 0.3);
  border-top-color: var(--saffron-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sync-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.sync-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* News Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* Individual News Card */
.news-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(255, 98, 0, 0.15);
}

/* Card Media Header */
.card-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-img {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 18, 29, 0.85);
  backdrop-filter: blur(8px);
  color: var(--saffron-400);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 98, 0, 0.3);
}

.card-read-time {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 18, 29, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Clear Photo Credit Bar right beneath image */
.photo-credit-bar {
  background: rgba(10, 14, 23, 0.95);
  padding: 6px 14px;
  font-size: 11px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-source-link {
  color: var(--saffron-400);
  text-decoration: none;
  font-weight: 600;
}

.credit-source-link:hover {
  text-decoration: underline;
}

/* Card Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.source-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--saffron-500);
  background: rgba(255, 98, 0, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.time-ago {
  font-size: 12px;
  color: var(--text-muted);
}

/* Card Title */
.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--saffron-400);
}

/* Card Switchable Content */
.card-snippet {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Key Points Bullets in card */
.card-bullets {
  background: var(--bg-secondary);
  border-left: 2px solid var(--saffron-500);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-bullet-item {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

.card-left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--saffron-500);
  background: rgba(255, 98, 0, 0.1);
}

.icon-btn.active {
  color: var(--saffron-500);
  border-color: var(--saffron-500);
  background: rgba(255, 98, 0, 0.15);
}

.read-more-link {
  color: var(--saffron-400);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.read-more-link:hover {
  transform: translateX(3px);
  color: var(--saffron-500);
}

/* ================= MODAL STYLES ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--vermilion);
  transform: rotate(90deg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Article Reader Specific */
.article-reader-dialog {
  max-width: 860px;
}

.reader-scroll-content {
  overflow-y: auto;
  max-height: 90vh;
  padding: 0;
}

.reader-hero-media {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

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

.reader-attribution-box {
  background: rgba(13, 18, 29, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reader-attribution-box .credit-text {
  font-size: 13px;
  color: #cbd5e1;
}

.reader-attribution-box a {
  color: var(--saffron-400);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.reader-body-content {
  padding: 32px 36px 40px;
}

.reader-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.reader-headline {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.reader-audio-bar {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.reader-takeaways-card {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--saffron-500);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
}

.takeaways-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--saffron-400);
  margin-bottom: 12px;
}

.takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaway-bullet {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

.reader-narrative-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.reader-narrative-text p {
  margin-bottom: 18px;
}

.reader-source-cta {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  text-align: center;
}

/* ================= LAB & SETTINGS FORMS ================= */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.15);
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-half {
  flex: 1;
}

.full-width {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 16px;
}

.lab-result-area {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.lab-result-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--saffron-400);
  margin-bottom: 12px;
}

.result-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-subtle);
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.settings-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.source-domain {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ================= AUDIO PLAYER DOCK ================= */
.audio-player-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: rgba(13, 18, 29, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.audio-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.audio-wave {
  width: 12px;
  height: 12px;
  background: var(--saffron-500);
  border-radius: 50%;
  animation: pulseGlow 1s infinite;
}

.audio-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-control-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}

.audio-control-btn:hover {
  background: var(--saffron-500);
}

.audio-speed-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-emblem {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.journalistic-ethics-tag {
  background: rgba(255, 98, 0, 0.1);
  border-left: 3px solid var(--saffron-500);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--saffron-400);
  padding-left: 4px;
}

.footer-disclaimer {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--saffron-400);
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(13, 18, 29, 0.95);
  backdrop-filter: blur(12px);
  border-left: 4px solid var(--saffron-500);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Empty State & Loader */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 98, 0, 0.2);
  border-top-color: var(--saffron-500);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 1024px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-media-wrapper {
    min-height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .announcement-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .audio-player-dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: var(--radius-md);
  }
  .reader-body-content {
    padding: 24px 20px;
  }
}
