/* ==========================================================================
   The Bong Voice - 5 Theme Presets (CSS Variable Definitions)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme 1: Classic Editorial Red (Default)
   -------------------------------------------------------------------------- */
body[data-theme="classic-red"],
.theme-classic-red {
  --tbv-primary: #C8102E;
  --tbv-primary-dark: #960C22;
  --tbv-primary-light: #FF4D6D;
  --tbv-accent: #FFB703;
  --tbv-bg: #FFFFFF;
  --tbv-bg-alt: #F4F5F7;
  --tbv-bg-card: #FFFFFF;
  --tbv-border: #E2E8F0;
  --tbv-text-main: #1E293B;
  --tbv-text-muted: #64748B;
  --tbv-text-heading: #0F172A;
  --tbv-topbar-bg: #111111;
  --tbv-topbar-text: #FFFFFF;
  --tbv-header-bg: #FFFFFF;
  --tbv-nav-bg: #C8102E;
  --tbv-nav-text: #FFFFFF;
  --tbv-footer-bg: #0F172A;
  --tbv-footer-text: #E2E8F0;
  --tbv-card-radius: 4px;
  --tbv-badge-radius: 2px;
}

/* --------------------------------------------------------------------------
   Theme 2: Modern Digital Magazine
   -------------------------------------------------------------------------- */
body[data-theme="modern-magazine"],
.theme-modern-magazine {
  --tbv-primary: #E6193C;
  --tbv-primary-dark: #B90F2E;
  --tbv-primary-light: #FF758F;
  --tbv-accent: #2563EB;
  --tbv-bg: #F8FAFC;
  --tbv-bg-alt: #FFFFFF;
  --tbv-bg-card: #FFFFFF;
  --tbv-border: #E2E8F0;
  --tbv-text-main: #334155;
  --tbv-text-muted: #64748B;
  --tbv-text-heading: #0F172A;
  --tbv-topbar-bg: #FFFFFF;
  --tbv-topbar-text: #334155;
  --tbv-header-bg: #FFFFFF;
  --tbv-nav-bg: #FFFFFF;
  --tbv-nav-text: #0F172A;
  --tbv-footer-bg: #1E293B;
  --tbv-footer-text: #F1F5F9;
  --tbv-card-radius: 12px;
  --tbv-badge-radius: 9999px;
  --tbv-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

body[data-theme="modern-magazine"] .main-nav,
.theme-modern-magazine .main-nav {
  border-bottom: 2px solid var(--tbv-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

body[data-theme="modern-magazine"] .nav-link,
.theme-modern-magazine .nav-link {
  color: #1E293B !important;
  font-weight: 600;
}

body[data-theme="modern-magazine"] .nav-link:hover,
.theme-modern-magazine .nav-link:hover {
  color: var(--tbv-primary) !important;
}

/* --------------------------------------------------------------------------
   Theme 3: Dark Broadcast Cyber
   -------------------------------------------------------------------------- */
body[data-theme="dark-broadcast"],
.theme-dark-broadcast {
  --tbv-primary: #FF2E4D;
  --tbv-primary-dark: #D90429;
  --tbv-primary-light: #FF758F;
  --tbv-accent: #FFD166;
  --tbv-bg: #0D0E12;
  --tbv-bg-alt: #161820;
  --tbv-bg-card: #181A22;
  --tbv-border: #262938;
  --tbv-text-main: #E2E8F0;
  --tbv-text-muted: #94A3B8;
  --tbv-text-heading: #FFFFFF;
  --tbv-topbar-bg: #07080A;
  --tbv-topbar-text: #94A3B8;
  --tbv-header-bg: #101218;
  --tbv-nav-bg: #161820;
  --tbv-nav-text: #F8FAFC;
  --tbv-footer-bg: #07080A;
  --tbv-footer-text: #CBD5E1;
  --tbv-card-radius: 8px;
  --tbv-badge-radius: 4px;
  --tbv-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark-broadcast"] .news-card,
.theme-dark-broadcast .news-card {
  border: 1px solid var(--tbv-border);
}

body[data-theme="dark-broadcast"] .header-masthead,
.theme-dark-broadcast .header-masthead {
  border-bottom: 1px solid var(--tbv-border);
}

/* Dark Broadcast Typography & Link Visibility Guarantees */
body[data-theme="dark-broadcast"] a,
body[data-theme="dark-broadcast"] a:link,
body[data-theme="dark-broadcast"] a:visited {
  color: inherit;
  text-decoration: none !important;
}

body[data-theme="dark-broadcast"] h1 a,
body[data-theme="dark-broadcast"] h2 a,
body[data-theme="dark-broadcast"] h3 a,
body[data-theme="dark-broadcast"] h4 a,
body[data-theme="dark-broadcast"] .hero-title a,
body[data-theme="dark-broadcast"] .second-lead-title a,
body[data-theme="dark-broadcast"] .chrono-title a,
body[data-theme="dark-broadcast"] .cat-card-title a,
body[data-theme="dark-broadcast"] .story-title a,
body[data-theme="dark-broadcast"] .trending-item-title a,
body[data-theme="dark-broadcast"] .article-headline a,
body[data-theme="dark-broadcast"] .news-headline-link {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

body[data-theme="dark-broadcast"] h1 a:hover,
body[data-theme="dark-broadcast"] h2 a:hover,
body[data-theme="dark-broadcast"] h3 a:hover,
body[data-theme="dark-broadcast"] h4 a:hover,
body[data-theme="dark-broadcast"] .hero-title a:hover,
body[data-theme="dark-broadcast"] .second-lead-title a:hover,
body[data-theme="dark-broadcast"] .chrono-title a:hover,
body[data-theme="dark-broadcast"] .cat-card-title a:hover,
body[data-theme="dark-broadcast"] .story-title a:hover,
body[data-theme="dark-broadcast"] .trending-item-title a:hover,
body[data-theme="dark-broadcast"] .article-headline a:hover,
body[data-theme="dark-broadcast"] .news-headline-link:hover {
  color: #FF2E4D !important;
}

body[data-theme="dark-broadcast"] .site-footer a,
body[data-theme="dark-broadcast"] .site-footer a:link,
body[data-theme="dark-broadcast"] .site-footer a:visited,
body[data-theme="dark-broadcast"] .footer-menu-list a,
body[data-theme="dark-broadcast"] .footer-menu-list a:link,
body[data-theme="dark-broadcast"] .footer-menu-list a:visited {
  color: #CBD5E1 !important;
  text-decoration: none !important;
}

body[data-theme="dark-broadcast"] .site-footer a:hover,
body[data-theme="dark-broadcast"] .footer-menu-list a:hover {
  color: #FF2E4D !important;
}

body[data-theme="dark-broadcast"] .chrono-card-item,
body[data-theme="dark-broadcast"] .hero-major-card,
body[data-theme="dark-broadcast"] .second-lead-card,
body[data-theme="dark-broadcast"] .cat-card-item,
body[data-theme="dark-broadcast"] .social-media-hub {
  background-color: #181A22 !important;
  border-color: #262938 !important;
}

body[data-theme="dark-broadcast"] .hero-excerpt,
body[data-theme="dark-broadcast"] .second-lead-body p,
body[data-theme="dark-broadcast"] .news-desc-text,
body[data-theme="dark-broadcast"] .news-timestamp {
  color: #CBD5E1 !important;
}

body[data-theme="dark-broadcast"] .hero-takeaways-list {
  background-color: #12141A !important;
  color: #E2E8F0 !important;
  border-left-color: #FF2E4D !important;
}

/* --------------------------------------------------------------------------
   Theme 4: Metro Vibrant Media
   -------------------------------------------------------------------------- */
body[data-theme="metro-vibrant"],
.theme-metro-vibrant {
  --tbv-primary: #D00000;
  --tbv-primary-dark: #9D0208;
  --tbv-primary-light: #DC2F02;
  --tbv-accent: #FAA307;
  --tbv-bg: #FDFDFD;
  --tbv-bg-alt: #FFF1F2;
  --tbv-bg-card: #FFFFFF;
  --tbv-border: #FCE7F3;
  --tbv-text-main: #2B2D42;
  --tbv-text-muted: #6C757D;
  --tbv-text-heading: #1B1B1B;
  --tbv-topbar-bg: linear-gradient(90deg, #9D0208 0%, #D00000 100%);
  --tbv-topbar-text: #FFFFFF;
  --tbv-header-bg: #FFFFFF;
  --tbv-nav-bg: linear-gradient(90deg, #D00000 0%, #E85D04 100%);
  --tbv-nav-text: #FFFFFF;
  --tbv-footer-bg: #1A1A1A;
  --tbv-footer-text: #E5E5E5;
  --tbv-card-radius: 6px;
  --tbv-badge-radius: 4px;
}

/* --------------------------------------------------------------------------
   Theme 5: Minimalist Reader Pro
   -------------------------------------------------------------------------- */
body[data-theme="minimalist-reader"],
.theme-minimalist-reader {
  --tbv-primary: #991B1B;
  --tbv-primary-dark: #7F1D1D;
  --tbv-primary-light: #B91C1C;
  --tbv-accent: #475569;
  --tbv-bg: #FCFCFA;
  --tbv-bg-alt: #F4F4F0;
  --tbv-bg-card: #FCFCFA;
  --tbv-border: #E5E5E0;
  --tbv-text-main: #27272A;
  --tbv-text-muted: #71717A;
  --tbv-text-heading: #18181B;
  --tbv-topbar-bg: #F4F4F0;
  --tbv-topbar-text: #52525B;
  --tbv-header-bg: #FCFCFA;
  --tbv-nav-bg: #FFFFFF;
  --tbv-nav-text: #18181B;
  --tbv-footer-bg: #F4F4F0;
  --tbv-footer-text: #3F3F46;
  --tbv-card-radius: 0px;
  --tbv-badge-radius: 0px;
  --tbv-shadow: none;
}

body[data-theme="minimalist-reader"] .main-nav,
.theme-minimalist-reader .main-nav {
  border-top: 1px solid var(--tbv-border);
  border-bottom: 3px double var(--tbv-border);
}

body[data-theme="minimalist-reader"] .nav-link,
.theme-minimalist-reader .nav-link {
  color: #18181B !important;
  font-weight: 500;
}

body[data-theme="minimalist-reader"] .site-footer a,
body[data-theme="minimalist-reader"] .site-footer a:link,
body[data-theme="minimalist-reader"] .site-footer a:visited,
/* Removed dark link override */
  text-decoration: none !important;
}

body[data-theme="minimalist-reader"] .site-footer a:hover,
body[data-theme="minimalist-reader"] .footer-menu-list a:hover {
  color: #991B1B !important;
}
