/* ==========================================================================
   NUSANTARAKINI — DESIGN SYSTEM & STYLESHEET
   Indonesian Editorial Aesthetics, Mobile-First, Vercel Edge Optimized
   ========================================================================== */

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #FAFAF9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F4F4F5;
  --bg-muted: #E4E4E7;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Brand Accents (Dominan Biru Editorial / Royal Blue & Sapphire) */
  --brand-primary: #1D4ED8;
  --brand-primary-hover: #1E40AF;
  --brand-primary-subtle: #EFF6FF;
  --brand-primary-border: #BFDBFE;

  --brand-red: #1D4ED8;
  --brand-red-hover: #1E40AF;
  --brand-red-subtle: #EFF6FF;
  --brand-red-border: #BFDBFE;

  --badge-breaking: #DC2626; /* Khusus kilas berita / alert penting */

  --accent-blue: #0284C7;
  --accent-blue-subtle: #E0F2FE;
  --accent-green: #16A34A;
  --accent-green-subtle: #DCFCE7;
  --accent-amber: #D97706;

  /* Borders & Shadows */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-subtle: #E2E8F0;
  --border-focus: #1D4ED8;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.2);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Dimensions */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 72px;
}

/* ==========================================================================
   Dark Theme Tokens
   ========================================================================== */
[data-theme="dark"] {
  --bg-primary: #090D16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-subtle: #192231;
  --bg-muted: #273549;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  --brand-primary: #3B82F6;
  --brand-primary-hover: #60A5FA;
  --brand-primary-subtle: rgba(59, 130, 246, 0.15);
  --brand-primary-border: rgba(59, 130, 246, 0.35);

  --brand-red: #3B82F6;
  --brand-red-hover: #60A5FA;
  --brand-red-subtle: rgba(59, 130, 246, 0.15);
  --brand-red-border: rgba(59, 130, 246, 0.35);

  --badge-breaking: #EF4444;

  --accent-blue-subtle: rgba(2, 132, 199, 0.15);
  --accent-green-subtle: rgba(22, 163, 74, 0.15);

  --border-light: rgba(51, 65, 85, 0.5);
  --border-subtle: #334155;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 24px 50px -12px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Reusable SVG Icon Sizes */
.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.divider-dot {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Pulse / Live indicators */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulseAnimation 1.8s infinite;
  margin-right: 4px;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* ==========================================================================
   1. TOP UTILITY BAR (Live Date, Clock, Weather, Currency Ticker)
   ========================================================================== */
.top-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 40;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-date {
  font-weight: 500;
}

.live-clock {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.weather-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.finance-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.ticker-name {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 3px;
}

.trend.up {
  color: #10B981;
  font-weight: 600;
}

.trend.down {
  color: #EF4444;
  font-weight: 600;
}

.top-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  transition: all var(--transition-fast);
}

.top-action-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

/* Hide sun in light mode, hide moon in dark mode */
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: inline-block;
  color: #FBBF24;
}

@media (max-width: 860px) {
  .top-bar-left .weather-pill,
  .top-bar-left .divider-dot:last-of-type {
    display: none;
  }
}

@media (max-width: 680px) {
  .finance-ticker {
    display: none;
  }
  .top-bar-left .live-date {
    display: none;
  }
}

/* ==========================================================================
   2. MAIN HEADER (Logo, Desktop Nav, Quick Actions)
   Clean, Neat, Symmetrical Architecture for Desktop & Mobile
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: background-color var(--transition-normal), height var(--transition-fast);
}

[data-theme="dark"] .main-header {
  background-color: rgba(17, 24, 39, 0.92);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

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

/* Header Left Group (Mobile Toggle + Logo) */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger button for mobile */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0;
  transition: all var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: var(--bg-muted);
  color: var(--brand-primary);
}

.menu-toggle-btn .bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Brand Identity / Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.22);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo-mark.sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.flag-stripe {
  flex: 1;
  width: 100%;
}

.flag-stripe.blue,
.flag-stripe.red {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.flag-stripe.white {
  background-color: #FFFFFF;
}

.garuda-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  color: #1E293B;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-accent {
  color: var(--brand-primary, #1D4ED8);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary, #1D4ED8);
  background-color: var(--brand-primary-subtle, #EFF6FF);
}

.badge-pill {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-pill.blue-pill {
  background-color: var(--brand-primary-subtle, #EFF6FF);
  color: var(--brand-primary, #1D4ED8);
  border: 1px solid var(--brand-primary-border, #BFDBFE);
}

.badge-pill.red {
  background-color: var(--badge-breaking, #DC2626);
  color: #FFFFFF;
}

.badge-pill.blue {
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.badge-pill.green {
  background-color: var(--accent-green-subtle);
  color: var(--accent-green);
}

.badge-pill.white {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  border-color: var(--brand-primary, #1D4ED8);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.shortcut-badge {
  font-size: 0.675rem;
  font-weight: 600;
  background-color: var(--bg-muted);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
}

.bookmark-trigger-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.bookmark-trigger-btn:hover {
  background: var(--brand-primary-subtle, #EFF6FF);
  color: var(--brand-primary, #1D4ED8);
  border-color: var(--brand-primary-border, #BFDBFE);
}

.bookmark-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--brand-primary, #1D4ED8);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.btn-sub-header {
  background: var(--brand-primary, #1D4ED8);
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sub-header:hover {
  background: var(--brand-primary-hover, #1E40AF);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

/* Responsive Header Breakpoints */
@media (max-width: 1200px) and (min-width: 1025px) {
  .header-inner {
    gap: 10px;
  }
  .nav-link {
    padding: 6px 9px;
    font-size: 0.82rem;
  }
  .search-label, .shortcut-badge {
    display: none;
  }
  .search-trigger-btn {
    padding: 8px;
    border-radius: 50%;
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .main-header {
    background-color: rgba(255, 255, 255, 0.96);
  }
  .header-inner {
    height: 58px;
    gap: 12px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-tagline {
    display: none; /* Hide tagline on mobile for clean symmetry */
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .search-label, .shortcut-badge {
    display: none;
  }
  .search-trigger-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .bookmark-trigger-btn {
    width: 36px;
    height: 36px;
  }
  .btn-sub-header {
    display: none; /* Hide subscribe CTA from mobile header */
  }
}

@media (max-width: 480px) {
  .bookmark-trigger-btn {
    display: none; /* Hide bookmark button from mobile header (already in dedicated bottom nav bar) */
  }
  .header-actions {
    gap: 6px;
  }
}

/* ==========================================================================
   3. BREAKING NEWS TICKER
   ========================================================================== */
.breaking-news-section {
  background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
  color: #F8FAFC;
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.breaking-badge {
  background: var(--badge-breaking, #DC2626);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: blinkAnim 1s infinite alternate;
}

@keyframes blinkAnim {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.breaking-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.breaking-marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 36s linear infinite;
}

.breaking-marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-block;
  margin-right: 48px;
  color: #E2E8F0;
}

.marquee-item strong {
  color: #F8FAFC;
}

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

/* ==========================================================================
   4. HERO HEADLINE SECTION (EDITORIAL HIGH-IMPACT)
   ========================================================================== */
.hero-headline-section {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 28px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured Major Article Card */
.featured-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
}

.featured-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

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

.featured-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.featured-tags {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tag-badge.primary {
  background: var(--brand-red);
  color: #FFFFFF;
}

.tag-badge.live {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.featured-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-meta strong {
  color: var(--text-secondary);
}

.meta-dot {
  color: var(--text-muted);
  opacity: 0.5;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.featured-title a:hover {
  color: var(--brand-red);
}

.featured-excerpt {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.featured-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.btn-read-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-read-primary:hover {
  background: var(--brand-red-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
}

.icon-btn.saved {
  background: var(--brand-red);
  color: #FFFFFF;
}

/* Secondary Headline Stack (Sidebar) */
.hero-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--brand-red);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.fire-icon {
  color: var(--brand-red);
}

.live-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sub-headline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-card:hover {
  border-color: var(--brand-red-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.sub-card-thumb {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sub-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.sub-cat-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.sub-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sub-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sub-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-card:hover .sub-title {
  color: var(--brand-red);
}

.sub-footer-mini {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   5. FILTER CATEGORY & SEARCH ROW
   ========================================================================== */
.filter-category-section {
  padding: 30px 0 16px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

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

.filter-search-inline {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.filter-search-inline:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-subtle);
}

.filter-search-inline input {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.clear-search-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
  display: none;
  padding: 0 4px;
}

.clear-search-btn.show {
  display: block;
}

/* Horizontally scrollable chips with affordance fade */
.category-chips-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  mask-image: linear-gradient(to right, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
}

.category-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.category-chips {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--brand-red-border);
  color: var(--brand-red);
}

.chip.active {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==========================================================================
   6. DYNAMIC NEWS FEED GRID
   ========================================================================== */
.news-feed-section {
  padding: 16px 0 48px;
}

.results-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.status-indicator {
  color: var(--accent-green);
  font-weight: 600;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Individual News Card */
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-red-border);
}

.news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

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

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

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--brand-red);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.news-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title {
  color: var(--brand-red);
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.author-chip {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-btn-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Load more container */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover .refresh-icon {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

/* ==========================================================================
   7. MULTIMEDIA / SPOTLIGHT SECTION: LENSA NUSANTARA
   ========================================================================== */
.multimedia-section {
  background: linear-gradient(135deg, #090D16 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 60px 0;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.section-badge-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.white-text {
  color: #FFFFFF !important;
  margin-top: 10px;
}

.muted-light {
  color: #94A3B8 !important;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }
}

.spotlight-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

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

.spotlight-play-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

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

.spotlight-rubrik {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.spotlight-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 20px;
}

.spotlight-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: #F8FAFC;
  border-left: 3px solid var(--brand-red);
  padding-left: 14px;
  margin-bottom: 24px;
}

/* ==========================================================================
   8. INTERACTIVE DUAL SECTION: POLL & CEK FAKTA
   ========================================================================== */
.interactive-dual-section {
  padding: 24px 0 40px;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
}

.card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.box-header {
  margin-bottom: 20px;
}

.box-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.box-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Poll styling */
.poll-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.poll-option-label:hover {
  border-color: var(--brand-red);
  background: var(--bg-subtle);
}

.poll-option-label input[type="radio"] {
  margin-right: 12px;
  accent-color: var(--brand-red);
  flex-shrink: 0;
  z-index: 2;
}

.option-content {
  flex-grow: 1;
  position: relative;
  z-index: 2;
  margin-right: 12px;
}

.option-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.poll-bar-fill {
  position: absolute;
  top: -12px;
  left: -28px;
  bottom: -12px;
  background: var(--brand-red-subtle);
  z-index: -1;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-percentage {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  z-index: 2;
}

.poll-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.btn-poll-vote {
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-poll-vote:hover {
  background: var(--brand-red-hover);
}

.poll-total {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.poll-voted-msg {
  background: var(--accent-green-subtle);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

/* Cek Fakta styling */
.factcheck-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.factcheck-item {
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-blue);
}

.fact-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.fact-tag.hoaks {
  color: #EF4444;
}

.fact-tag.benar {
  color: #10B981;
}

.fact-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.fact-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.factcheck-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.link-verify {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.link-verify:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. EDITORIAL DESK & REDAKSI PROFILE
   ========================================================================== */
.editorial-desk-section {
  padding: 20px 0 40px;
}

.desk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .desk-card {
    grid-template-columns: 1fr;
  }
}

.desk-image-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #000;
}

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

.desk-reporter-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.desk-info-col {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.desk-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 10px 0 14px;
}

.desk-paragraph {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.desk-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .desk-features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 10px;
}

.feat-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   10. NEWSLETTER SUBSCRIPTION
   ========================================================================== */
.newsletter-section {
  padding: 20px 0 50px;
}

.newsletter-inner {
  background: linear-gradient(135deg, #1E40AF 0%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: 0 16px 36px rgba(30, 64, 175, 0.25);
  text-align: center;
}

.newsletter-content {
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 14px 0 12px;
  line-height: 1.25;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group {
  display: flex;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.input-group input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  font-size: 0.925rem;
  border-radius: var(--radius-full);
  outline: none;
  color: #0F172A;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-subscribe:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.form-microcopy {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-success {
  background: #FFFFFF;
  color: #16A34A;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.main-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 24px;
  margin-top: 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

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

.editorial-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-circle svg {
  width: 18px;
  height: 18px;
}

.social-circle:hover {
  background: var(--brand-red);
  color: #FFFFFF;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

.footer-links-col a:hover {
  color: var(--brand-red);
}

.vercel-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.vercel-badge-icon {
  width: 32px;
  height: 32px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vercel-badge-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.vercel-badge-text span {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.vercel-note {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 24px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a:hover {
  color: var(--brand-red);
}

/* ==========================================================================
   12. MOBILE BOTTOM NAVIGATION (APP-LIKE EXPERIENCE)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 6px);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: color var(--transition-fast);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--brand-red);
}

.b-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   13. INTERACTIVE MODALS & DRAWERS (SEARCH, BOOKMARKS, READER)
   ========================================================================== */
/* Generic Modal Base */
.modal-overlay,
.drawer-overlay,
.reader-modal-overlay,
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active,
.drawer-overlay.active,
.reader-modal-overlay.active,
.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
}

/* Search Modal */
.search-modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .search-modal-container {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.search-input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--text-secondary);
}

.search-input-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
}

.search-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.quick-tag-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-tag-btn {
  font-size: 0.775rem;
  background: var(--bg-subtle);
  color: var(--brand-red);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.quick-tag-btn:hover {
  background: var(--brand-red-subtle);
}

.search-modal-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-subtle);
}

.search-thumb {
  width: 60px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-item-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.search-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Bookmark Drawer (Right sliding panel) */
.drawer-overlay {
  justify-content: flex-end;
}

.drawer-panel {
  background: var(--bg-surface);
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

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

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

.btn-clear-bookmarks {
  width: 100%;
  padding: 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-clear-bookmarks:hover {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
}

.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Reader Modal (Instant Article Reading View) */
.reader-modal-box {
  background: var(--bg-surface);
  width: 92%;
  max-width: 780px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .reader-modal-box {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

.reader-modal-overlay.active .reader-modal-box {
  transform: translateY(0) scale(1);
}

.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.reader-tools-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-cat-tag {
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.reader-pub-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reader-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.font-sizer-group {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.font-btn {
  padding: 4px 10px;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.font-btn:hover,
.font-btn.active {
  background: var(--brand-red);
  color: #FFFFFF;
}

.reader-tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.reader-tool-btn:hover,
.reader-tool-btn.active {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.reader-content-scroll {
  padding: 28px 36px 36px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 600px) {
  .reader-content-scroll {
    padding: 20px 18px 24px;
  }
}

.reader-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.reader-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.author-meta-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.editor-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reader-share-actions {
  display: flex;
  gap: 8px;
}

.share-pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.share-pill-btn:hover {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

.reader-featured-media {
  margin-bottom: 24px;
}

.reader-featured-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  max-height: 420px;
  object-fit: cover;
}

.reader-caption {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.reader-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.reader-article-body.font-small {
  font-size: 0.95rem;
  line-height: 1.7;
}

.reader-article-body.font-large {
  font-size: 1.25rem;
  line-height: 1.9;
}

.reader-article-body p {
  margin-bottom: 18px;
}

.reader-article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.reader-article-body blockquote {
  border-left: 4px solid var(--brand-red);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

.feedback-banner {
  background: var(--bg-subtle);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  justify-content: flex-start;
}

.mobile-drawer-content {
  background: var(--bg-surface);
  width: 290px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.m-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.m-link:hover,
.m-link.active {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn-mobile-theme {
  width: 100%;
  padding: 10px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.m-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   14. TOAST NOTIFICATIONS & BACK TO TOP
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 74px;
    right: 16px;
    left: 16px;
  }
}

.toast {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards ease;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 76px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}
