/*
Theme Name: HindiBaat ZeeNews
Theme URI: https://hindibaat.com
Author: Atul
Description: Professional Hindi news theme v2 — ad-ready, PWA-compatible, breaking ticker, mobile-first
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: hindibaat-zeenews
*/

/* ═══════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-light: #fef2f2;
    --orange: #f97316;
    --green: #16a34a;
    --blue: #2563eb;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --max-w: 1280px;
    --header-h: 60px;
    --font: 'Noto Sans Devanagari', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════════════ */
.top-bar {
    background: var(--dark);
    color: #d1d5db;
    font-size: .8rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 12px;
}
.top-bar-left { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.lang-link { color: #9ca3af; font-size: .78rem; transition: color .2s; }
.lang-link:hover { color: #fff; }

.top-social { display: flex; gap: 6px; }
.top-social a {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #d1d5db;
    transition: background .2s;
}
.top-social a:hover { background: var(--red); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--red);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
    z-index: 110;
}
.hamburger-line {
    width: 24px; height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-hindi {
    font-size: 2rem; font-weight: 800; color: var(--red);
    letter-spacing: -1px; line-height: 1;
}
.logo-baat {
    font-size: 2rem; font-weight: 800; color: var(--dark);
    letter-spacing: -1px; line-height: 1;
}

/* Primary nav */
.primary-menu {
    display: flex; list-style: none; gap: 2px;
}
.primary-menu li a {
    padding: 8px 14px; font-weight: 600; font-size: .95rem;
    color: var(--text); border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
}
.primary-menu li a:hover,
.primary-menu li a.active {
    background: var(--red); color: #fff;
}

/* Search */
.search-form {
    display: flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: 28px;
    overflow: hidden; background: var(--bg);
    transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--red); }
.search-field {
    border: none; background: transparent;
    padding: 8px 14px; min-width: 160px; outline: none;
    font-size: .9rem; color: var(--text);
}
.search-form button {
    border: none; background: var(--red); color: #fff;
    padding: 8px 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.search-form button:hover { background: var(--red-dark); }

/* App button */
.app-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); color: #fff;
    padding: 8px 18px; border-radius: 28px;
    font-weight: 700; font-size: .9rem;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.app-btn:hover { background: var(--red-dark); transform: translateY(-1px); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   SECONDARY NAV (category bar)
   ═══════════════════════════════════════════════════════════════════════ */
.secondary-nav {
    background: var(--red);
    overflow: hidden;
    position: relative;
}
.secondary-nav-inner {
    display: flex; align-items: center; position: relative;
}
.secondary-menu {
    display: flex; list-style: none; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none; flex: 1;
    -ms-overflow-style: none;
}
.secondary-menu::-webkit-scrollbar { display: none; }
.secondary-menu li a {
    display: block; padding: 10px 16px;
    color: rgba(255,255,255,.9); font-weight: 600; font-size: .88rem;
    border-right: 1px solid rgba(255,255,255,.12);
    transition: background .2s;
}
.secondary-menu li a:hover { background: var(--red-dark); color: #fff; }

.nav-scroll-btn {
    display: none; /* shown via JS when overflow */
    position: absolute; right: 0; top: 0; bottom: 0;
    background: var(--red); border: none; color: #fff;
    padding: 0 10px; cursor: pointer; z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKING NEWS TICKER
   ═══════════════════════════════════════════════════════════════════════ */
.breaking-ticker {
    background: #1e1e2e;
    color: #fff;
    overflow: hidden;
}
.ticker-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0;
}
.ticker-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); color: #fff;
    padding: 4px 14px; border-radius: 4px;
    font-weight: 800; font-size: .85rem;
    white-space: nowrap; flex-shrink: 0;
    text-transform: uppercase; letter-spacing: .5px;
}
.ticker-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    animation: ticker-pulse 1.5s infinite;
}
@keyframes ticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.ticker-track {
    flex: 1; overflow: hidden; position: relative;
}
.ticker-content {
    display: flex; gap: 40px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.ticker-content a {
    color: #e5e7eb; font-size: .9rem; font-weight: 500;
    flex-shrink: 0;
}
.ticker-content a:hover { color: var(--orange); }

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

.ticker-controls { flex-shrink: 0; }
.ticker-btn {
    background: none; border: none; color: #9ca3af; cursor: pointer;
    padding: 4px; transition: color .2s;
}
.ticker-btn:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   TRENDING BAR
   ═══════════════════════════════════════════════════════════════════════ */
.trending-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow: hidden;
}
.trending-inner {
    display: flex; align-items: center; gap: 10px;
    overflow-x: auto; scrollbar-width: none;
    white-space: nowrap;
}
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label {
    font-weight: 800; color: var(--red);
    flex-shrink: 0; font-size: .9rem;
}
.trending-chip {
    padding: 5px 14px; background: var(--bg);
    border-radius: 20px; font-size: .85rem; font-weight: 500;
    color: var(--text); border: 1px solid var(--border);
    transition: all .2s; flex-shrink: 0;
}
.trending-chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════
   AD CONTAINERS
   ═══════════════════════════════════════════════════════════════════════ */
.ad-container { margin: 16px 0; }
.ad-banner {
    width: 100%; min-height: 90px;
    background: #f1f5f9; border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .85rem; font-weight: 600;
}
.ad-leaderboard { min-height: 90px; }
.ad-horizontal { min-height: 90px; }
.ad-sidebar { min-height: 250px; }

/* ═══════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════ */
.breadcrumbs {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: .82rem; color: var(--muted);
}
.breadcrumbs .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.bc-sep { color: #d1d5db; }
.bc-current { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   MAIN LAYOUT (content + sidebar)
   ═══════════════════════════════════════════════════════════════════════ */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 24px 0 60px;
    align-items: start;
}

.site-main { min-height: 60vh; }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero-article {
    display: grid; grid-template-columns: 1.3fr .7fr;
    background: var(--card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.hero-image { min-height: 380px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-article:hover .hero-image img { transform: scale(1.03); }
.hero-content { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: 2rem; line-height: 1.25; margin: 12px 0; font-weight: 800; }
.hero-title a:hover { color: var(--red); }
.hero-excerpt { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════════════
   CARD SHARED STYLES
   ═══════════════════════════════════════════════════════════════════════ */
.card-cat {
    display: inline-block;
    background: var(--red); color: #fff;
    padding: 4px 10px; border-radius: 4px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3px;
    margin-bottom: 8px;
}

.story-card {
    background: var(--card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-image { height: 180px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.story-card:hover .story-image img { transform: scale(1.06); }
.story-content { padding: 16px; }
.story-content h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; font-weight: 700; }
.story-content h3 a:hover { color: var(--red); }
.story-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

.article-meta {
    display: flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: .82rem; flex-wrap: wrap;
}
.meta-dot { color: #d1d5db; }

/* Stories grid */
.stories-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.story-card-lg { grid-column: span 1; }
.story-card-lg .story-image { height: 240px; }
.story-card-lg .story-content h3 { font-size: 1.2rem; }

/* ═══════════════════════════════════════════════════════════════════════
   SECTION BLOCKS
   ═══════════════════════════════════════════════════════════════════════ */
.section-block { margin-bottom: 36px; }
.section-heading {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
}
.section-heading h2 { font-size: 1.35rem; font-weight: 800; }
.section-heading h1 { font-size: 1.5rem; font-weight: 800; }
.section-more { color: var(--red); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   SPECIAL PAGES SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.special-pages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.special-page-card {
    display: flex; flex-direction: column; align-items: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 16px;
    text-align: center; transition: all .25s;
    box-shadow: var(--shadow-sm);
}
.special-page-card:hover {
    border-color: var(--red); box-shadow: var(--shadow);
    transform: translateY(-3px); color: inherit;
}
.sp-icon { font-size: 2rem; margin-bottom: 10px; }
.sp-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.sp-desc { color: var(--muted); font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════════════
   SINGLE ARTICLE
   ═══════════════════════════════════════════════════════════════════════ */
.single-article {
    background: var(--card); padding: 32px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 100%; position: relative;
}
.single-top-meta { margin-bottom: 12px; }
.single-title { font-size: 2.2rem; line-height: 1.25; font-weight: 800; margin-bottom: 16px; }
.single-meta-row { margin-bottom: 20px; }
.single-meta-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.meta-avatar { border-radius: 50%; vertical-align: middle; }

.single-featured-image { margin: 20px 0 28px; border-radius: var(--radius); overflow: hidden; }
.single-featured-image img { width: 100%; height: auto; }
.image-caption { font-size: .82rem; color: var(--muted); margin-top: 8px; font-style: italic; }

.single-content { font-size: 1.08rem; line-height: 1.85; }
.single-content p { margin-bottom: 18px; }
.single-content h2 { font-size: 1.5rem; margin: 28px 0 14px; font-weight: 800; }
.single-content h3 { font-size: 1.25rem; margin: 22px 0 10px; font-weight: 700; }
.single-content blockquote {
    border-left: 4px solid var(--red); padding: 14px 20px;
    background: var(--red-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0; font-style: italic; color: var(--red-dark);
}
.single-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.single-content ul, .single-content ol { margin: 16px 0 16px 24px; }
.single-content li { margin-bottom: 6px; }

/* Tags */
.single-tags { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tags-label { font-weight: 700; color: var(--muted); font-size: .88rem; }
.tag-chip {
    display: inline-block; padding: 4px 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; font-size: .82rem; font-weight: 500;
    transition: all .2s;
}
.tag-chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════
   SHARE SIDEBAR (floating on desktop)
   ═══════════════════════════════════════════════════════════════════════ */
.share-sidebar {
    position: fixed; left: 20px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px;
    z-index: 50;
}
.share-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: transform .2s, opacity .2s;
    box-shadow: var(--shadow-sm);
}
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-telegram { background: #0088cc; }
.share-linkedin { background: #0A66C2; }

/* Bottom share bar */
.share-bar-bottom {
    margin-top: 24px; padding: 16px 0;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.share-label { font-weight: 700; color: var(--muted); font-size: .88rem; }
.share-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 16px; border-radius: 20px;
    font-size: .82rem; font-weight: 700;
    color: #fff; transition: opacity .2s;
}
.share-pill:hover { opacity: .85; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════════════ */
.related-posts { margin-top: 36px; }

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════ */
.sidebar-column { position: sticky; top: 80px; }
.widget {
    background: var(--card); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.widget-title {
    font-size: 1.05rem; font-weight: 800;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

.widget-story-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.widget-story-item:last-child { border-bottom: none; }
.widget-rank {
    flex-shrink: 0; width: 28px; height: 28px;
    background: var(--red); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem;
}
.widget-story-content a { font-weight: 600; font-size: .9rem; line-height: 1.3; display: block; margin-bottom: 4px; }
.widget-story-content a:hover { color: var(--red); }

.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.widget-cat-list { list-style: none; }
.widget-cat-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a { font-weight: 500; }
.widget-cat-list a:hover { color: var(--red); }
.cat-count { color: var(--muted); font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════════════════════════════════════ */
.no-results {
    grid-column: span 3;
    text-align: center; padding: 60px 20px;
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h2 { font-size: 1.5rem; margin-bottom: 10px; }
.no-results p { color: var(--muted); margin-bottom: 8px; }
.no-results-links { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.no-results-links a {
    padding: 8px 20px; background: var(--red); color: #fff;
    border-radius: 20px; font-weight: 600; transition: background .2s;
}
.no-results-links a:hover { background: var(--red-dark); }

.search-count { font-weight: 400; font-size: .9rem; color: var(--muted); margin-left: 12px; }
.archive-description { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════════════════════ */
.newsletter-section {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff; padding: 40px 0;
}
.newsletter-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px;
}
.newsletter-text h3 { font-size: 1.4rem; margin-bottom: 6px; }
.newsletter-text p { opacity: .9; }
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form input {
    padding: 12px 18px; border: 2px solid rgba(255,255,255,.3);
    border-right: none; border-radius: 8px 0 0 8px;
    background: rgba(255,255,255,.15); color: #fff;
    font-size: .95rem; min-width: 260px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-form input:focus { border-color: #fff; background: rgba(255,255,255,.25); }
.newsletter-form button {
    padding: 12px 24px; border: none;
    background: #fff; color: var(--red-dark);
    font-weight: 800; font-size: .95rem;
    border-radius: 0 8px 8px 0; cursor: pointer;
    transition: background .2s;
}
.newsletter-form button:hover { background: #f1f5f9; }
.newsletter-msg { font-size: .85rem; margin-top: 8px; display: block; width: 100%; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark); color: #d1d5db;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-logo { display: inline-flex; margin-bottom: 12px; }
.footer-logo .logo-hindi { font-size: 1.6rem; color: var(--red); }
.footer-logo .logo-baat { font-size: 1.6rem; color: #fff; }
.footer-tagline { color: #9ca3af; font-size: .9rem; margin-bottom: 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { color: #9ca3af; font-size: .85rem; font-weight: 500; }
.footer-social a:hover { color: var(--red); }

.footer-col h4 {
    color: #fff; font-size: 1rem; font-weight: 700;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9ca3af; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--red); }

.footer-pwa-text { font-size: .88rem; color: #9ca3af; margin-bottom: 12px; }
.pwa-install-btn {
    padding: 10px 20px; background: var(--red); color: #fff;
    border: none; border-radius: 8px;
    font-weight: 700; cursor: pointer; font-size: .9rem;
    transition: background .2s;
}
.pwa-install-btn:hover { background: var(--red-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: .82rem;
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #9ca3af; }
.footer-legal a:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--red); color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 90;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════════ */
.pagination, .nav-links {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 30px; flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px; border-radius: 8px;
    font-weight: 600; font-size: .9rem;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text); transition: all .2s;
}
.page-numbers:hover { background: var(--red); color: #fff; border-color: var(--red); }
.page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════
   DAILY TASKS PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.daily-tasks-page { padding: 30px 0 60px; max-width: 900px; margin: 0 auto; }
.daily-tasks-header, .jobs-results-header {
    background: var(--card); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.daily-tasks-date, .jobs-results-label {
    display: inline-block; background: var(--red-light); color: var(--red);
    padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; margin-bottom: 12px;
}
.daily-tasks-header h1, .jobs-results-header h1 { font-size: 1.6rem; margin-bottom: 10px; }
.daily-tasks-header p, .jobs-results-header p { color: var(--muted); }

.daily-tasks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.daily-task-card {
    background: var(--card); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.daily-task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.daily-task-card.is-completed { opacity: .7; }
.daily-task-badge {
    display: inline-block; background: #e0f2fe; color: #0369a1;
    padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 10px;
}
.daily-task-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.daily-task-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }

.task-complete, .apply-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 999px;
    background: var(--red); color: #fff;
    padding: 10px 18px; font-weight: 700; font-size: .88rem;
    cursor: pointer; transition: background .2s, transform .2s;
}
.task-complete:hover, .apply-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.task-complete.is-completed { background: var(--green); cursor: default; }

.daily-tasks-note {
    background: #fff7ed; border-left: 4px solid var(--orange);
    border-radius: var(--radius-sm); padding: 14px 18px;
    margin-top: 20px; color: #9a3412; font-size: .92rem;
}

/* Jobs & Results */
.jobs-results-page { padding: 30px 0 60px; max-width: 900px; margin: 0 auto; }
.jobs-results-list { display: grid; gap: 18px; }
.job-card {
    background: var(--card); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.job-card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.job-category, .job-deadline {
    display: inline-block; border-radius: 999px; padding: 5px 12px;
    font-size: .82rem; font-weight: 700;
}
.job-category { background: #dcfce7; color: #166534; }
.job-deadline { background: #fee2e2; color: #991b1b; }
.job-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.job-info-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px;
}
.job-info-grid div { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.job-info-grid strong { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 3px; }
.job-info-grid span { display: block; font-weight: 700; font-size: .95rem; }
.apply-btn { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-column { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .share-sidebar { position: static; transform: none; flex-direction: row; justify-content: center; margin-bottom: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .special-pages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .primary-nav {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        background: var(--card); z-index: 105;
        padding: 70px 20px 30px;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        transition: left .3s ease;
    }
    .primary-nav.is-open { left: 0; }
    .primary-menu { flex-direction: column; gap: 0; }
    .primary-menu li a { padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--border); }

    .header-left { gap: 10px; }
    .search-field { min-width: 100px; }
    .app-btn span { display: none; }

    .hero-article { grid-template-columns: 1fr; }
    .hero-image { min-height: 240px; }
    .hero-title { font-size: 1.5rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .no-results { grid-column: span 1; }

    .stories-grid { grid-template-columns: 1fr; }

    .single-article { padding: 20px; }
    .single-title { font-size: 1.6rem; }

    .sidebar-column { grid-template-columns: 1fr; }

    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { min-width: 0; width: 100%; border-right: 2px solid rgba(255,255,255,.3); border-radius: 8px; }
    .newsletter-form button { border-radius: 8px; width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .daily-tasks-grid { grid-template-columns: 1fr; }
    .job-info-grid { grid-template-columns: 1fr; }

    .special-pages-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar-right .lang-link:not(:first-child):not(:nth-child(2)) { display: none; }
}

@media (max-width: 480px) {
    .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
    .top-bar-right { width: 100%; justify-content: space-between; }
    .special-pages-grid { grid-template-columns: 1fr; }
}
