/**
 * SPNS — Frontend Stylesheet
 * v1.0.0 — May 2026 — YrSite
 * Editorial Modern aesthetic with bold typography
 */

/* ════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.7; color: var(--ink); background: var(--canvas); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--theme-accent); }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════ */
:root {
    /* Theme colors (override per-language from header) */
    --theme-primary: #1a1a2e;
    --theme-secondary: #0f3460;
    --theme-accent: #e94560;

    /* Editorial palette */
    --ink: #14181f;
    --ink-soft: #36404a;
    --ink-muted: #6b7280;
    --ink-faded: #9ca3af;
    --canvas: #ffffff;
    --canvas-warm: #faf8f5;
    --canvas-cool: #f5f7fb;
    --line: #e5e7eb;
    --line-soft: #f0f1f4;

    /* Semantic */
    --breaking: #dc2626;
    --success: #059669;
    --warning: #d97706;

    /* Typography */
    --font-display: 'Playfair Display', 'Tajawal', Georgia, serif;
    --font-body: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic-display: 'Tajawal', 'Amiri', serif;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Layout */
    --container: 1280px;
    --gutter: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05);
    --shadow-md: 0 4px 12px rgba(20, 24, 31, 0.08);
    --shadow-lg: 0 12px 32px rgba(20, 24, 31, 0.12);
    --shadow-xl: 0 24px 60px rgba(20, 24, 31, 0.18);

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-bounce: cubic-bezier(.68, -.55, .27, 1.55);
}

/* Lang-specific font tweaks */
.lang-ar, .lang-fa { --font-body: 'Tajawal', system-ui, sans-serif; --font-display: 'Tajawal', 'Amiri', serif; }
.lang-ar h1, .lang-fa h1, .lang-ar h2, .lang-fa h2 { letter-spacing: -0.01em; }

/* ════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { min-height: 60vh; padding: var(--space-6) 0 var(--space-8); }

/* ════════════════════════════════════════
   TOP STRIP
   ════════════════════════════════════════ */
.top-strip { background: var(--theme-primary); color: rgba(255,255,255,.85); font-size: 12px; }
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.top-strip-date { display: flex; align-items: center; gap: 6px; }
.top-strip-actions { display: flex; align-items: center; gap: 4px; }
.top-strip-link { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; transition: background .15s; }
.top-strip-link:hover { background: rgba(255,255,255,.1); color: white; }

.lang-switcher { position: relative; }
.lang-current { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; color: inherit; transition: background .15s; }
.lang-current:hover { background: rgba(255,255,255,.1); }
.lang-menu { display: none; position: absolute; top: calc(100% + 4px); inset-inline-end: 0; background: white; color: var(--ink); border-radius: 6px; box-shadow: var(--shadow-lg); min-width: 180px; max-height: 350px; overflow-y: auto; padding: 6px; z-index: 200; }
.lang-switcher.open .lang-menu { display: block; animation: fadeUp .2s var(--ease-out); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 13px; transition: background .1s; }
.lang-menu a:hover { background: var(--canvas-cool); }
.lang-menu a.active { background: var(--theme-primary); color: white; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ════════════════════════════════════════
   SITE HEADER
   ════════════════════════════════════════ */
.site-header { background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(255,255,255,.96); }
.site-header-inner { display: flex; align-items: center; gap: 32px; height: 80px; }

.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.site-logo:hover { color: var(--theme-accent); }
.logo-img { height: 48px; width: auto; }
.logo-mark {
    width: 44px; height: 44px;
    background: var(--theme-primary);
    border-radius: 4px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.logo-mark::before {
    content: ''; position: absolute; inset: 6px;
    background: var(--theme-accent); border-radius: 2px;
    transform: rotate(45deg) scale(0.7);
}
.logo-text {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.header-search { flex: 1; max-width: 480px; display: flex; height: 44px; border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; transition: border-color .15s; background: var(--canvas-warm); }
.header-search:focus-within { border-color: var(--theme-primary); background: white; }
.header-search input { flex: 1; padding: 0 16px; border: none; outline: none; font-size: 14px; background: transparent; color: var(--ink); }
.header-search input::placeholder { color: var(--ink-faded); }
.header-search button { padding: 0 16px; background: transparent; color: var(--ink-muted); transition: color .15s; }
.header-search button:hover { color: var(--theme-primary); }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; background: transparent; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s; }

/* ════════════════════════════════════════
   MAIN NAV
   ════════════════════════════════════════ */
.site-nav { background: var(--theme-primary); color: white; border-bottom: 3px solid var(--theme-accent); }
.nav-list { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 20px; color: rgba(255,255,255,.85);
    font-size: 14px; font-weight: 500;
    white-space: nowrap; position: relative;
    transition: color .15s;
}
.nav-link:hover { color: white; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0;
    inset-inline-start: 50%; width: 0; height: 3px;
    background: var(--theme-accent);
    transition: width .25s var(--ease-out), inset-inline-start .25s var(--ease-out);
}
.nav-link:hover::after { width: 100%; inset-inline-start: 0; }
.nav-home { font-size: 16px; }

/* ════════════════════════════════════════
   BREAKING TICKER
   ════════════════════════════════════════ */
.ticker-bar { background: white; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; height: 44px; }
.ticker-label {
    display: flex; align-items: center; gap: 8px;
    background: var(--breaking); color: white;
    padding: 0 18px; font-weight: 700; font-size: 13px;
    flex-shrink: 0; letter-spacing: 0.02em;
    position: relative;
}
.ticker-label::after {
    content: ''; position: absolute;
    inset-inline-end: -10px; top: 50%;
    width: 0; height: 0;
    border-style: solid;
    transform: translateY(-50%);
}
.dir-rtl .ticker-label::after { border-width: 22px 10px 22px 0; border-color: transparent var(--breaking) transparent transparent; inset-inline-end: auto; left: -10px; transform: translateY(-50%); }
.dir-ltr .ticker-label::after { border-width: 22px 0 22px 10px; border-color: transparent transparent transparent var(--breaking); }
.ticker-label .fa-bolt { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.ticker-content { flex: 1; overflow: hidden; padding-inline-start: 18px; }
.ticker-track {
    display: flex; gap: 40px;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
    height: 100%;
    align-items: center;
}
.dir-ltr .ticker-track { animation: tickerLtr 60s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes tickerLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-content:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 14px; font-weight: 500; color: var(--ink); transition: color .15s; }
.ticker-item:hover { color: var(--theme-accent); }
.ticker-item::before { content: '●'; color: var(--theme-accent); margin-inline-end: 8px; font-size: 8px; vertical-align: middle; }

/* ════════════════════════════════════════
   HOMEPAGE — HERO
   ════════════════════════════════════════ */
.hero-section { padding: var(--space-7) 0 var(--space-6); }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
}

.hero-main {
    position: relative; overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: var(--canvas-cool);
    box-shadow: var(--shadow-md);
}
.hero-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.hero-main:hover img { transform: scale(1.04); }
.hero-main-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,24,31,.92) 0%, rgba(20,24,31,.5) 40%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-6);
    color: white;
}
.hero-category {
    display: inline-flex; align-items: center;
    background: var(--theme-accent); color: white;
    padding: 4px 12px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    width: fit-content; margin-bottom: var(--space-3);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    color: white;
}
.hero-summary { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 640px; }
.hero-meta { display: flex; gap: 16px; margin-top: var(--space-3); font-size: 13px; color: rgba(255,255,255,.7); }

/* Hero side cards */
.hero-side { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-side-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item img {
    width: 100px; height: 80px; object-fit: cover;
    border-radius: 2px;
}
.hero-side-content { display: flex; flex-direction: column; gap: 6px; }
.hero-side-cat { font-size: 11px; font-weight: 700; color: var(--theme-accent); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-side-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    line-height: 1.3; color: var(--ink);
    transition: color .15s;
}
.hero-side-item:hover .hero-side-title { color: var(--theme-accent); }
.hero-side-time { font-size: 11px; color: var(--ink-muted); margin-top: auto; }

/* ════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════ */
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: var(--space-5); padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--ink);
    position: relative;
}
.section-header::before {
    content: ''; position: absolute; bottom: -2px;
    inset-inline-start: 0; width: 80px; height: 4px;
    background: var(--theme-accent);
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 900;
    letter-spacing: -0.02em; color: var(--ink);
}
.section-link { font-size: 13px; font-weight: 600; color: var(--theme-accent); display: flex; align-items: center; gap: 4px; }
.section-link:hover { gap: 8px; }
.dir-rtl .section-link i.fa-arrow-right { transform: scaleX(-1); }

/* ════════════════════════════════════════
   NEWS GRID & CARDS
   ════════════════════════════════════════ */
.news-section { margin-bottom: var(--space-7); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}
.news-grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Article Card — main variant */
.article-card {
    background: white;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); }
.article-card-image {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--canvas-cool);
}
.article-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.article-card:hover .article-card-image img { transform: scale(1.06); }
.article-card-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,.15));
    pointer-events: none; opacity: 0; transition: opacity .25s;
}
.article-card:hover .article-card-image::after { opacity: 1; }

.article-card-cat {
    position: absolute; top: 12px; inset-inline-start: 12px;
    background: var(--theme-primary); color: white;
    padding: 4px 10px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.article-card-cat.urgent { background: var(--breaking); }

.article-card-body { padding: var(--space-3) 0 0; }
.article-card-title {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700;
    line-height: 1.35; color: var(--ink);
    margin-bottom: var(--space-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.article-card:hover .article-card-title { color: var(--theme-accent); }
.article-card-summary {
    font-size: 14px; color: var(--ink-muted);
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex; align-items: center; gap: 12px;
    margin-top: var(--space-3); padding-top: var(--space-3);
    border-top: 1px solid var(--line-soft);
    font-size: 12px; color: var(--ink-faded);
}
.article-card-meta .meta-views { display: flex; align-items: center; gap: 4px; }

/* Card variants */
.article-card-large .article-card-title { font-size: 26px; }
.article-card-small .article-card-title { font-size: 15px; }
.article-card-small .article-card-image { aspect-ratio: 16 / 9; }

/* Horizontal card */
.article-card-horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-4);
}
.article-card-horizontal .article-card-image { aspect-ratio: 4 / 3; }
.article-card-horizontal .article-card-body { padding: 0; }

/* Video badge */
.article-has-video { position: relative; }
.article-has-video::before {
    content: '\f04b'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; background: rgba(0,0,0,.7); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 2; pointer-events: none;
    transition: transform .2s, background .2s;
}
.article-has-video:hover::before { transform: translate(-50%, -50%) scale(1.1); background: var(--theme-accent); }

/* ════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════ */
.article-page { background: white; }
.article-hero {
    background: var(--theme-primary); color: white;
    padding: var(--space-7) 0 var(--space-8);
    position: relative; overflow: hidden;
}
.article-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 30%, var(--theme-secondary) 0%, transparent 50%);
    opacity: 0.6;
}
.article-hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }

.article-breadcrumb { font-size: 13px; opacity: 0.7; margin-bottom: var(--space-4); }
.article-breadcrumb a:hover { color: var(--theme-accent); }
.article-breadcrumb span { margin: 0 8px; }

.article-cat-badge {
    display: inline-block;
    background: var(--theme-accent); color: white;
    padding: 6px 16px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-4);
}
.article-subtitle {
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.5; color: rgba(255,255,255,.85);
    font-weight: 400; max-width: 720px; margin: 0 auto var(--space-5);
}

.article-meta-bar {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-5); flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,.75);
}
.article-meta-bar > span { display: flex; align-items: center; gap: 6px; }

.article-image-hero {
    margin: -60px auto 0;
    max-width: 1100px; padding: 0 var(--gutter);
    position: relative; z-index: 5;
}
.article-image-hero img { width: 100%; box-shadow: var(--shadow-xl); }

.article-content-wrap {
    max-width: 760px; margin: 0 auto;
    padding: var(--space-7) var(--gutter);
}

.article-content {
    font-size: 18px; line-height: 1.85; color: var(--ink-soft);
}
.article-content p { margin-bottom: var(--space-4); }
.article-content p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4em; font-weight: 900;
    float: inline-start; line-height: 0.85;
    margin-inline-end: 8px; margin-top: 6px;
    color: var(--theme-primary);
}
.article-content h2, .article-content h3 {
    font-family: var(--font-display);
    color: var(--ink); margin: var(--space-5) 0 var(--space-3);
    line-height: 1.3;
}
.article-content h2 { font-size: 28px; font-weight: 900; }
.article-content h3 { font-size: 22px; font-weight: 700; }
.article-content blockquote {
    border-inline-start: 4px solid var(--theme-accent);
    padding: var(--space-3) var(--space-5);
    margin: var(--space-5) 0;
    font-family: var(--font-display);
    font-size: 22px; font-style: italic;
    color: var(--ink); background: var(--canvas-warm);
}
.article-content img { margin: var(--space-5) 0; box-shadow: var(--shadow-md); }
.article-content a { color: var(--theme-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content ul, .article-content ol { margin: var(--space-3) 0 var(--space-4); padding-inline-start: 24px; }
.article-content li { margin-bottom: 8px; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content iframe { width: 100%; aspect-ratio: 16 / 9; margin: var(--space-5) 0; }

.article-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: var(--space-5) 0; border-top: 1px solid var(--line); margin-top: var(--space-5);
}
.article-tag {
    background: var(--canvas-warm); color: var(--ink-soft);
    padding: 6px 14px; font-size: 12px; font-weight: 500;
    transition: all .15s;
}
.article-tag:hover { background: var(--theme-primary); color: white; }

.article-share {
    display: flex; align-items: center; gap: 12px;
    padding: var(--space-5) 0; border-top: 1px solid var(--line);
}
.article-share-label { font-weight: 700; color: var(--ink); }
.share-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--canvas-warm); color: var(--ink-soft);
    transition: all .15s; border-radius: 4px;
}
.share-btn:hover { background: var(--theme-accent); color: white; transform: translateY(-2px); }

/* TTS Listen button */
.article-tts {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--canvas-warm); color: var(--ink-soft);
    padding: 10px 18px; border-radius: 30px;
    font-size: 13px; font-weight: 500;
    transition: all .15s; margin-bottom: var(--space-5);
}
.article-tts:hover { background: var(--theme-primary); color: white; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer { background: var(--theme-primary); color: rgba(255,255,255,.85); margin-top: var(--space-8); }
.footer-main { padding: var(--space-7) 0 var(--space-6); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}
.footer-col h4.footer-title {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 900;
    color: white;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--theme-accent);
    display: inline-block;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); color: white; }
.footer-logo .logo-mark { background: white; }
.footer-logo .logo-mark::before { background: var(--theme-accent); }
.footer-logo .logo-text { color: white; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.7); margin-bottom: var(--space-4); }

.footer-social { display: flex; gap: 8px; }
.social-link {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2); color: white;
    transition: all .15s; font-size: 14px;
}
.social-link:hover { background: var(--theme-accent); border-color: var(--theme-accent); transform: translateY(-2px); }

.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.7); transition: color .15s, padding .15s; }
.footer-links a:hover { color: white; padding-inline-start: 4px; }

.footer-newsletter { display: flex; gap: 0; margin-top: var(--space-3); }
.footer-newsletter input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: white; outline: none; font-size: 13px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter input:focus { border-color: var(--theme-accent); background: rgba(255,255,255,.15); }
.footer-newsletter button { padding: 10px 18px; background: var(--theme-accent); color: white; font-weight: 600; font-size: 13px; transition: background .15s; }
.footer-newsletter button:hover { background: white; color: var(--theme-primary); }

.footer-friendly { padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.1); }
.friendly-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }
.friendly-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,.05); font-size: 12px; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.1); transition: all .15s; }
.friendly-link:hover { background: rgba(255,255,255,.12); color: white; }
.friendly-link img { width: 16px; height: 16px; }

.footer-bottom { background: rgba(0,0,0,.25); padding: var(--space-4) 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }
.footer-credits a { color: white; }
.footer-credits a:hover { color: var(--theme-accent); }

/* ════════════════════════════════════════
   VISITOR AGENT
   ════════════════════════════════════════ */
.visitor-agent { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 200; font-family: var(--font-body); }
.va-bubble {
    width: 56px; height: 56px;
    background: var(--theme-accent); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); cursor: pointer;
    font-size: 22px; transition: transform .2s var(--ease-bounce);
    animation: vaPulse 2.5s infinite;
}
@keyframes vaPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--theme-accent), var(--shadow-lg); }
    50% { box-shadow: 0 0 0 12px transparent, var(--shadow-lg); }
}
.va-bubble:hover { transform: scale(1.1); }
.va-panel { display: none; position: absolute; bottom: 76px; inset-inline-end: 0; width: 360px; max-width: calc(100vw - 48px); background: white; border-radius: 12px; box-shadow: var(--shadow-xl); overflow: hidden; }
.visitor-agent.open .va-panel { display: block; animation: vaSlide .3s var(--ease-out); }
@keyframes vaSlide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.va-header { background: var(--theme-primary); color: white; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.va-header button { color: white; font-size: 24px; line-height: 1; opacity: 0.8; }
.va-messages { height: 280px; overflow-y: auto; padding: 16px; background: var(--canvas-warm); }
.va-msg { padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.5; max-width: 85%; }
.va-msg-bot { background: white; color: var(--ink); }
.va-msg-user { background: var(--theme-accent); color: white; margin-inline-start: auto; }
.va-quick { display: flex; gap: 6px; padding: 8px 12px; background: var(--canvas-warm); flex-wrap: wrap; }
.va-quick button { padding: 6px 12px; background: white; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 14px; font-size: 12px; }
.va-quick button:hover { background: var(--theme-primary); color: white; border-color: var(--theme-primary); }
.va-input { display: flex; padding: 10px; gap: 8px; background: white; border-top: 1px solid var(--line); }
.va-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; outline: none; font-size: 13px; }
.va-input input:focus { border-color: var(--theme-accent); }
.va-input button { width: 40px; height: 40px; background: var(--theme-accent); color: white; border-radius: 50%; }

/* ════════════════════════════════════════
   READING PROGRESS & SCROLL TOP
   ════════════════════════════════════════ */
.reading-progress {
    position: fixed; top: 0; inset-inline-start: 0;
    height: 3px; background: var(--theme-accent);
    width: 0%; z-index: 60; transition: width .1s;
}
.scroll-top {
    position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 100;
    width: 44px; height: 44px; background: var(--theme-primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px);
    transition: opacity .25s, transform .25s; pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--theme-accent); }

/* ════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 4px; padding: var(--space-6) 0; }
.pagination a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; font-size: 14px; transition: all .15s; }
.pagination a:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.pagination a.active { background: var(--theme-primary); color: white; border-color: var(--theme-primary); }

/* ════════════════════════════════════════
   FORMS (subscribe, contact)
   ════════════════════════════════════════ */
.page-card { background: white; padding: var(--space-7); max-width: 700px; margin: 0 auto; box-shadow: var(--shadow-md); }
.page-title { font-family: var(--font-display); font-size: 36px; font-weight: 900; margin-bottom: var(--space-4); color: var(--ink); letter-spacing: -0.02em; }
.form-row { margin-bottom: var(--space-4); }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); font-size: 14px; transition: border-color .15s; outline: none; background: white; color: var(--ink); }
.form-row input:focus, .form-row textarea:focus { border-color: var(--theme-primary); }
.form-submit { padding: 14px 32px; background: var(--theme-primary); color: white; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; transition: all .15s; }
.form-submit:hover { background: var(--theme-accent); }

/* Alert */
.alert { padding: 14px 18px; margin-bottom: var(--space-4); border-radius: 4px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: var(--success); border-inline-start: 4px solid var(--success); }
.alert-danger { background: #fef2f2; color: var(--breaking); border-inline-start: 4px solid var(--breaking); }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --gutter: 16px; }
    .top-strip-date span { display: none; }
    .top-strip-link span { display: none; }
    .lang-current span { display: none; }

    .header-search { display: none; }
    .mobile-menu-toggle { display: flex; }
    .site-nav { display: none; }
    body.nav-open .site-nav { display: block; }
    .nav-list { flex-direction: column; }
    .nav-link { width: 100%; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }

    .article-title { font-size: 32px; }
    .article-content { font-size: 16px; }
    .article-image-hero { margin-top: -30px; padding: 0; }

    .news-grid, .news-grid-2, .news-grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .article-card-horizontal { grid-template-columns: 120px 1fr; }
    .ticker-label span { display: none; }
}

@media (max-width: 480px) {
    .site-header-inner { height: 64px; }
    .logo-text { font-size: 18px; }
    .section-title { font-size: 22px; }
    .visitor-agent { bottom: 16px; inset-inline-end: 16px; }
}

/* ════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .ticker-track { animation: none !important; }
}

/* High contrast mode for accessibility */
.a11y-mode { font-size: 18px; }
.a11y-mode .article-content { font-size: 22px; line-height: 2; }
.a11y-mode .nav-link { font-size: 17px; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 3px; }

/* Print */
@media print {
    .top-strip, .site-nav, .ticker-bar, .visitor-agent, .scroll-top, .reading-progress, .article-share, .site-footer { display: none !important; }
}