/* ══════════════════════════════════════════════════════════════════
   iDaily News Portal — Design System
   Inspired by: The Hindu, DailyHunt, The Real News Network
   ══════════════════════════════════════════════════════════════════ */

/* ── Typography ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Source+Sans+3:wght@400;600;700&family=Outfit:wght@400;500;600;700&display=swap');

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

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
    /* Palette */
    --red:          #c0392b;
    --red-dark:     #922b21;
    --red-light:    #f9ebea;
    --orange:       #e67e22;
    --navy:         #1a2332;
    --navy-mid:     #2c3e50;
    --slate:        #5d6d7e;
    --ash:          #f0f2f5;
    --white:        #ffffff;
    --border:       #dee2e8;

    /* Semantic tokens */
    --body-bg:      #f0f2f5;
    --card-bg:      #ffffff;
    --text-h:       #1a2332;      /* heading */
    --text-b:       #2c3e50;      /* body */
    --text-muted:   #5d6d7e;
    --accent:       #c0392b;      /* primary accent — The Hindu red */
    --accent-dark:  #922b21;
    --border-color: #dee2e8;
    --navbar-bg:    #ffffff;

    /* Bootstrap token overrides */
    --bs-primary:       #c0392b;
    --bs-primary-rgb:   192, 57, 43;
    --bs-link-color:    #c0392b;
    --bs-link-hover-color: #922b21;

    /* Font stacks */
    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-ui:   'Outfit', 'Segoe UI', sans-serif;
}

[data-bs-theme="dark"] {
    --body-bg:      #0d1117;
    --card-bg:      #161b22;
    --text-h:       #e6eaf0;
    --text-b:       #c9d1d9;
    --text-muted:   #8b949e;
    --border-color: #21262d;
    --navbar-bg:    #0d1117;
    --ash:          #161b22;
    --bs-primary:   #e74c3c;
    --bs-primary-rgb: 231,76,60;
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--body-bg);
    color: var(--text-b);
    font-size: 0.9rem;
    line-height: 1.6;
    transition: background .3s, color .3s;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--text-h);
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   TOP UTILITY BAR
   ══════════════════════════════════════════════════════════════════ */
.topbar-utility {
    background: var(--navy);
    color: #9fb3c8;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.topbar-date {
    letter-spacing: .03em;
    color: #9fb3c8;
}

.topbar-social-link {
    color: #9fb3c8;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color .2s;
}
.topbar-social-link:hover { color: #fff; }

.topbar-theme-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    color: #9fb3c8;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.topbar-theme-btn:hover { background: rgba(255,255,255,.1); color:#fff; }

/* ══════════════════════════════════════════════════════════════════
   MASTHEAD — Newspaper-style centered logo header
   ══════════════════════════════════════════════════════════════════ */
.site-masthead {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    padding: 16px 0;
    transition: background .3s;
}

[data-bs-theme="dark"] .site-masthead { background: var(--navbar-bg); }

/* Center logo */
.masthead-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.masthead-logo-img {
    height: 48px;
    object-fit: contain;
}

.masthead-logo-text {
    height: 40px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

[data-bs-theme="dark"] .masthead-logo-text { mix-blend-mode: screen; }

/* Search in masthead */
.masthead-search {
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    max-width: 260px;
    background: var(--ash);
    transition: border-color .2s;
}
.masthead-search:focus-within { border-color: var(--accent); }

.masthead-search-input {
    border: none;
    background: transparent;
    padding: 5px 14px;
    font-size: 0.78rem;
    color: var(--text-b);
    outline: none;
    width: 200px;
}

.masthead-search-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background .2s;
}
.masthead-search-btn:hover { background: var(--accent-dark); }

/* App get button */
.masthead-app-btn {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: .04em;
    transition: background .2s, transform .15s;
}
.masthead-app-btn:hover { background: var(--accent-dark); color:#fff; transform:scale(1.03); }

.masthead-icon-btn {
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 0.8rem;
    padding: 0;
}
.masthead-icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   CATEGORY NAV BAR — Horizontal scrollable, The Hindu inspired
   ══════════════════════════════════════════════════════════════════ */
.category-nav {
    background: var(--navy);
    z-index: 1030;
    top: 0;
    border-bottom: 2px solid rgba(255,255,255,.07);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

[data-bs-theme="dark"] .category-nav { background: #0d1117; }

.cat-nav-inner {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-link {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    padding: 9px 16px;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .18s, border-color .18s, background .18s;
    flex-shrink: 0;
}

.cat-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-bottom-color: rgba(255,255,255,.3);
}

.cat-nav-link.active {
    color: #fff;
    border-bottom-color: var(--accent);
    background: rgba(192,57,43,.18);
}

/* ══════════════════════════════════════════════════════════════════
   FIXED BREAKING NEWS BAR
   ══════════════════════════════════════════════════════════════════ */
.breaking-bar {
    background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 100%);
    height: 36px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    border-radius: 6px;
    margin-top: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(192,57,43,0.25);
}

.breaking-bar-spacer {
    display: none;
}

.breaking-bar-inner {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.breaking-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--red-dark);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 14px;
    height: 36px;
    flex-shrink: 0;
    margin-right: 12px;
}

.breaking-dot {
    width: 7px; height: 7px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.breaking-marquee-wrap {
    flex: 1;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.breaking-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollTicker 38s linear infinite;
    flex-shrink: 0;
    width: max-content;
}

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

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

.breaking-item {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0 28px;
    flex-shrink: 0;
    transition: color .2s;
}
.breaking-item:hover { color: #ffd700; }

.breaking-chevron { font-size: 0.65rem; margin-right: 7px; opacity: .7; }

.breaking-all-link {
    color: #fde68a;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0 12px 0 8px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,.3);
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    height: 20px;
    transition: color .2s;
}
.breaking-all-link:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   PAGE CONTENT WRAPPER
   ══════════════════════════════════════════════════════════════════ */
.page-content-wrap {
    padding: 20px 0 40px;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION DIVIDERS — The Hindu accent lines
   ══════════════════════════════════════════════════════════════════ */
.sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.sec-head-title {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 4px 12px 4px 10px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    padding-right: 20px;
}

.sec-head-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Category pills */
.cat-pill {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    text-decoration: none;
}

.cat-pill-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(192,57,43,.35);
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 2px;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION — DailyHunt big story style
   ══════════════════════════════════════════════════════════════════ */
.hero-wrap {
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    height: 420px;
    background: var(--navy);
    text-decoration: none;
}

.hero-img-wrap { position: absolute; inset: 0; }

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    will-change: transform;
}

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

.hero-img-placeholder {
    width: 100%; height: 100%;
    background: #1a2332;
    display: flex; align-items: center; justify-content: center;
    color: #4a5568; font-size: 2rem;
}

/* Gradient overlay — magazine style */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,20,.92) 0%,
        rgba(10,10,20,.55) 40%,
        rgba(10,10,20,.0)  75%
    );
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 22px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.22;
    margin: 7px 0 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.hero-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .03em;
}

/* ── Top Story cards (thumbnail-row beside hero) ──────────── */
.story-card {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    color: var(--text-b);
    transition: box-shadow .2s, transform .2s;
    align-items: stretch;
}
.story-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.1);
    transform: translateX(2px);
    color: var(--text-b);
}

.story-card-img-wrap {
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--ash);
}

.story-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.story-card:hover .story-card-img { transform: scale(1.06); }

.story-card-img-placeholder {
    width: 100%; height: 100%;
    min-height: 80px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.2rem;
}

.story-card-body {
    padding: 10px 12px 10px 0;
    display: flex; flex-direction: column; justify-content: center;
    flex: 1; min-width: 0;
}

.story-card-title {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.35;
    margin: 4px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card:hover .story-card-title { color: var(--accent); }

.story-card-time {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════════════════
   FEED CARDS — 3-column grid
   ══════════════════════════════════════════════════════════════════ */
.feed-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--text-b);
    transition: box-shadow .22s, transform .22s;
    height: 100%;
}
.feed-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
    color: var(--text-b);
}

.feed-card-img-wrap {
    position: relative;
    padding-top: 58%;
    overflow: hidden;
    background: var(--ash);
}

.feed-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.feed-card:hover .feed-card-img { transform: scale(1.06); }

.feed-card-img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.4rem;
}

.feed-video-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(192,57,43,.9);
    color: #fff; font-size: .9rem;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

.feed-card-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; flex: 1;
}

.feed-card-title {
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.35;
    margin: 5px 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-card:hover .feed-card-title { color: var(--accent); }

.feed-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

.feed-card-meta {
    font-family: var(--font-ui);
    font-size: 0.63rem;
    color: var(--text-muted);
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 7px; margin-top: auto;
    letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
   ══════════════════════════════════════════════════════════════════ */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-widget-head {
    background: var(--navy);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 8px 14px;
}

[data-bs-theme="dark"] .sidebar-widget-head { background: #21262d; }

/* Video list in sidebar */
.vid-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-b);
    transition: background .18s;
    align-items: center;
}
.vid-item:last-child { border-bottom: none; }
.vid-item:hover { background: var(--ash); }

.vid-thumb-wrap {
    position: relative;
    width: 80px; flex-shrink: 0;
    height: 54px; overflow: hidden;
    background: var(--navy); border-radius: 3px;
}

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

.vid-thumb-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.4);
    color: #fff; font-size: 1.3rem;
}

.vid-title {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vid-item:hover .vid-title { color: var(--accent); }

.vid-cat {
    font-family: var(--font-ui);
    font-size: 0.6rem; color: var(--text-muted);
}

/* Trending / must-read list widget */
.trending-item {
    display: flex; align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-b);
    transition: background .18s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--ash); }

.trending-num {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--red-light);
    -webkit-text-stroke: 1px var(--accent);
    line-height: 1;
    width: 22px; flex-shrink: 0;
    margin-top: 1px;
}
[data-bs-theme="dark"] .trending-num { -webkit-text-stroke: 1px rgba(192,57,43,.6); }

.trending-title {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-h);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-item:hover .trending-title { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ══════════════════════════════════════════════════════════════════ */
.article-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-h);
}

.article-meta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.article-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-b);
}

.article-body p { margin-bottom: 1.4rem; }

.video-container {
    position: relative; padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.video-container iframe {
    position: absolute; top:0; left:0;
    width:100%; height:100%;
}

/* ══════════════════════════════════════════════════════════════════
   LEGACY CLASSES (keep for news.php & other pages)
   ══════════════════════════════════════════════════════════════════ */
.news-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 4px; overflow: hidden;
    transition: transform .22s, box-shadow .22s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.news-card-img-wrapper { position:relative; padding-top:56.25%; overflow:hidden; background:var(--ash); }
.news-card-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.news-card:hover .news-card-img { transform:scale(1.05); }
.news-card-body { padding:14px; display:flex; flex-direction:column; }
.news-card-title { font-family:var(--font-head); font-size:0.95rem; font-weight:700; color:var(--text-h); line-height:1.3; margin-bottom:8px; }
.news-card-text { font-size:.8rem; color:var(--text-muted); line-height:1.5; margin-bottom:10px; flex-grow:1; }
.news-card-meta { font-family:var(--font-ui); font-size:.65rem; color:var(--text-muted); display:flex; justify-content:space-between; border-top:1px solid var(--border-color); padding-top:8px; margin-top:auto; }
.video-play-overlay { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:42px; height:42px; background:rgba(192,57,43,.9); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.1rem; }

.badge-category {
    display: inline-block;
    background: rgba(192,57,43,.1);
    color: var(--accent);
    border: 1px solid rgba(192,57,43,.25);
    font-family: var(--font-ui);
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 2px; text-decoration: none;
    transition: background .2s, color .2s;
}
.badge-category:hover { background: var(--accent); color:#fff; }

/* ══════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════ */
.page-link {
    font-family: var(--font-ui);
    font-size: .75rem; font-weight: 600;
    border-radius: 3px !important;
}

/* ══════════════════════════════════════════════════════════════════
   PWA INSTALL CARD
   ══════════════════════════════════════════════════════════════════ */
.pwa-install-card {
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
}

/* Theme toggle (topbar) */
.btn-theme-toggle { transition: transform .3s; }
.btn-theme-toggle:hover { transform: rotate(20deg) scale(1.05); }

/* ══════════════════════════════════════════════════════════════════
   PREMIUM FOOTER — Dark navy, newspaper style
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #0d1117;
    color: #8b949e;
    font-family: var(--font-body);
    font-size: .82rem;
}

.footer-top {
    padding: 3rem 0 2.5rem;
    border-top: 3px solid var(--accent);
}

.footer-brand {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255,255,255,0.15);
}
.footer-logo-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-logo-text {
    height: 22px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    color: #8b949e; line-height: 1.7;
    font-size: .78rem; max-width: 300px;
}

.footer-heading {
    font-family: var(--font-ui);
    font-size: .68rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: #e6edf3;
    margin-bottom: .9rem; padding-bottom: .35rem;
    border-bottom: 1px solid rgba(192,57,43,.4);
    display: inline-block;
}

.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom: .38rem; }
.footer-links a { color:#8b949e; text-decoration:none; font-size:.76rem; transition:color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 3px; }

.footer-social-btn {
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border-radius:50%;
    background:rgba(255,255,255,.06); color:#8b949e; font-size:.82rem;
    text-decoration:none; border:1px solid rgba(255,255,255,.1);
    transition: background .22s, color .22s, transform .18s;
}
.footer-social-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); transform:translateY(-2px); }
.footer-social-btn.youtube:hover { background:#ff0000; border-color:#ff0000; }

.footer-bottom {
    background: #010409;
    padding: .8rem 0; font-family: var(--font-ui);
    font-size: .7rem; color: #484f58;
    border-top: 1px solid rgba(255,255,255,.04);
}
.footer-bottom span { color:#484f58; }
.footer-bottom-link { color:#484f58; text-decoration:none; transition:color .2s; }
.footer-bottom-link:hover { color:var(--accent); }

[data-bs-theme="dark"] .site-footer { background: #010409; }
[data-bs-theme="dark"] .footer-bottom { background: #000; }
