/* --- Architecture Theme --- */
.typo-architecture h2,
.typo-architecture h3,
.typo-architecture span {
    font-family: 'Amiri', serif;
}

.typo-architecture h2 {
    color: #d3b879;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 4rem;
}

.typo-architecture h3 a {
    color: #fdfdfd;
    font-size: 1.8rem;
}

.typo-architecture .blg-page-num {
    border-color: #d3b879;
    color: #d3b879;
}

.typo-architecture .sub {
    color: #e1c699;
}

.blg-demo-card[data-theme="architecture"] .blg-demo-card__name {
    color: #d3b879;
    font-family: 'Amiri', serif;
}

/* --- Modest Theme --- */
.typo-modest h2,
.typo-modest h3,
.typo-modest span {
    font-family: var(--blg-font-heading);
}

.typo-modest h2 {
    color: #4a3b32;
    font-size: 4.2rem;
    font-style: italic;
    font-weight: 500;
}

.typo-modest h3 a {
    color: #6f5f55;
    font-size: 2rem;
}

.typo-modest .blg-page-num {
    background: #e8dbd1;
    color: #4a3b32;
    border: none;
}

.typo-modest .sub {
    color: #8e7f75;
    letter-spacing: 4px;
}

.blg-demo-card[data-theme="modest"] .blg-demo-card__name {
    color: #4a3b32;
    font-family: var(--blg-font-heading);
}

/* --- Halal Food Theme --- */
.typo-food h2 {
    font-family: 'Oswald', sans-serif;
    color: #d35400;
    font-size: 5rem;
    text-transform: uppercase;
}

.typo-food h3,
.typo-food span {
    font-family: 'Jost', sans-serif;
}

.typo-food h3 a {
    color: #e67e22;
    font-size: 1.8rem;
    font-weight: 600;
}

.typo-food .blg-page-num {
    background: #f39c12;
    color: #fff;
    border-radius: 4px;
}

.typo-food .sub {
    color: #c0392b;
    font-weight: 700;
}

.blg-demo-card[data-theme="halal-food"] .blg-demo-card__name {
    color: #d35400;
    font-family: 'Oswald', sans-serif;
}

/* --- Eco Theme --- */
.typo-eco h2 {
    font-family: 'Outfit', sans-serif;
    color: #27ae60;
    font-size: 4.5rem;
    font-weight: 800;
}

.typo-eco h3,
.typo-eco span {
    font-family: 'Outfit', sans-serif;
}

.typo-eco h3 a {
    color: #2ecc71;
    font-size: 1.6rem;
    font-weight: 600;
}

.typo-eco .blg-page-num {
    border: 2px solid #2ecc71;
    color: #27ae60;
    font-weight: 700;
    border-radius: 20px;
}

.typo-eco .sub {
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blg-demo-card[data-theme="eco"] .blg-demo-card__name {
    color: #27ae60;
    font-family: 'Outfit', sans-serif;
}

/* --- Heritage Theme --- */
.typo-heritage h2,
.typo-heritage h3,
.typo-heritage span {
    font-family: 'Cinzel', serif;
}

.typo-heritage h2 {
    color: #5c4033;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.typo-heritage h3 a {
    color: #8b5a2b;
    font-size: 1.8rem;
}

.typo-heritage .blg-page-num {
    background: #cd853f;
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.typo-heritage .sub {
    color: #a0522d;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.blg-demo-card[data-theme="heritage"] .blg-demo-card__name {
    color: #8b5a2b;
    font-family: 'Cinzel', serif;
}

/* --- Calligraphy Theme --- */
.typo-calligraphy h2 {
    font-family: 'Amiri', serif;
    color: #1a1a1a;
    font-size: 5rem;
    line-height: 1;
}

.typo-calligraphy h3,
.typo-calligraphy span {
    font-family: 'Cinzel Decorative', cursive;
}

.typo-calligraphy h3 a {
    color: #333;
    font-size: 1.6rem;
}

.typo-calligraphy .blg-page-num {
    border-bottom: 2px solid #000;
    color: #000;
    border-radius: 0;
    padding: 2px 5px;
}

.typo-calligraphy .sub {
    color: #555;
}

.blg-demo-card[data-theme="calligraphy"] .blg-demo-card__name {
    color: #1a1a1a;
    font-family: 'Amiri', serif;
}


/* --- Health Theme --- */
.typo-health h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #004d40;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.typo-health h3 a {
    color: #004d40;
    font-family: var(--blg-font-heading);
    font-size: 2rem;
    font-weight: 600;
}

.typo-health .blg-page-num {
    background: #e0f2f1;
    color: #00695c;
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.typo-health .sub {
    color: #00796b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.blg-demo-card[data-theme="health"] .blg-demo-card__name {
    color: #00796b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}


/* --- Astronomy Theme --- */
.typo-astro h2 {
    font-family: 'Michroma', sans-serif;
    color: #f8fafc;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.typo-astro h3 a {
    color: #f8fafc;
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.typo-astro .blg-page-num {
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 4px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.typo-astro .sub {
    color: #60a5fa;
    font-family: 'Michroma', sans-serif;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.blg-demo-card[data-theme="astronomy"] .blg-demo-card__name {
    color: #60a5fa;
    font-family: 'Michroma', sans-serif;
}

/* ====================================================
   SOVEREIGN ELITE: THEME-SPECIFIC LEGIBILITY (2026)
   ==================================================== */

/* ACID SKIN: Force black text on neon backgrounds */
body[data-theme='acid'] .tft-single-hero__category,
body[data-theme='acid'] .blg-nav-subscribe-btn,
body[data-theme='acid'] .blg-nav-subscribe-btn:hover,
body[data-theme='acid'] .blg-hero-brief__label,
body[data-theme='acid'] .blg-brief-cta-link {
    color: #000000 !important;
}

/* DARK SKIN: Back to Top Contrast */
body[data-theme='dark'] .tft-back-to-top,
body[data-theme='dark'] #tft-back-to-top {
    background-color: #ffffff !important;
}
body[data-theme='dark'] .tft-back-to-top svg,
body[data-theme='dark'] #tft-back-to-top svg {
    stroke: #000000 !important;
    color: #000000 !important;
}

/* FORCE BLACK TEXT ON LIGHT ACCENTS */
body[data-theme='acid'] .tft-single-hero__category,
body[data-theme='acid'] .blg-nav-subscribe-btn,
body[data-theme='acid'] .blg-hero-brief__label,
body[data-theme='solar'] .tft-single-hero__category,
body[data-theme='saffron'] .tft-single-hero__category {
    color: #000000 !important;
}

/* ====================================================
   IMPACT SKIN (ATHLETIC): ULTRA-NUCLEAR LEGIBILITY
   Force white text on dark athletic backgrounds
   ==================================================== */

body[data-theme='athletic'] {
    --blg-text-main: #ffffff !important;
    --blg-text-muted: rgba(255, 255, 255, 0.7) !important;
    --blg-border-color: rgba(255, 255, 255, 0.15) !important;
}

body[data-theme='athletic'] .blg-post-title,
body[data-theme='athletic'] .blg-post-title a,
body[data-theme='athletic'] .blg-hero-brief__title,
body[data-theme='athletic'] .blg-nav-links li a,
body[data-theme='athletic'] .tft-single-hero__category,
body[data-theme='athletic'] .blg-section-header h2,
body[data-theme='athletic'] .blg-widget-title,
body[data-theme='athletic'] .blg-list-content .blg-post-title,
body[data-theme='athletic'] .tft-menu-link,
body[data-theme='athletic'] .blg-brand-logo,
body[data-theme='athletic'] .tft-popular-item h4,
body[data-theme='athletic'] .blg-archive-title,
body[data-theme='athletic'] .blg-page-title,
body[data-theme='athletic'] .blg-search-result-title a {
    color: #ffffff !important;
    -webkit-text-stroke: 0 !important;
}

body[data-theme='athletic'] .blg-post-excerpt,
body[data-theme='athletic'] .blg-post-date,
body[data-theme='athletic'] .blg-hero-brief__label,
body[data-theme='athletic'] .blg-meta-slot__label,
body[data-theme='athletic'] .tft-menu-copyright,
body[data-theme='athletic'] .blg-breadcrumb,
body[data-theme='athletic'] .blg-breadcrumb a {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Force social share icons to be visible and have solid hover states */
body[data-theme='athletic'] .blg-share-btn svg,
body[data-theme='athletic'] .blg-share-btn i {
    fill: #ffffff !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

body[data-theme='athletic'] .blg-share-btn:hover {
    background: #ffffff !important;
}

body[data-theme='athletic'] .blg-share-btn:hover svg,
body[data-theme='athletic'] .blg-share-btn:hover i {
    fill: #000000 !important;
    color: #000000 !important;
}

/* Ensure single post content is readable */
body[data-theme='athletic'] .tft-content-inner,
body[data-theme='athletic'] .tft-content-inner p,
body[data-theme='athletic'] .tft-content-inner li,
body[data-theme='athletic'] .entry-content,
body[data-theme='athletic'] .entry-content p {
    color: #ffffff !important;
}

/* News Ticker Legibility */
body[data-theme='athletic'] .tft-ticker__item,
body[data-theme='athletic'] .tft-ticker__item strong {
    color: #ffffff !important;
}

/* DARK SKIN BACK TO TOP ICON */
body[data-theme='dark'] #tft-back-to-top svg,
body[data-theme='dark'] .tft-back-to-top svg {
    stroke: #000000 !important;
    color: #000000 !important;
}
