/* ═══════════════════════════════════════════
   PORTAL MIEJSKI DZIERŻONIÓW — DESIGN SYSTEM v2
   Premium Dark Theme with Glassmorphism
   ═══════════════════════════════════════════ */

:root {
    /* ── Brand Palette (Elegant Minimalist) ── */
    --primary: #0f172a;
    --primary-light: #334155;
    --primary-dark: #020617;
    --primary-vivid: #1e293b;
    --accent: #c5a059;
    --accent-light: #d4af37;
    --accent-dark: #b08d45;
    --accent-glow: rgba(197, 160, 89, 0.2);

    /* ── Gradient accents ── */
    --gradient-primary: linear-gradient(135deg, #0f172a, #334155);
    --gradient-accent: linear-gradient(135deg, #d4af37, #c5a059);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-warm: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --gradient-cool: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
                     radial-gradient(ellipse at 40% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);

    /* ── Surfaces ── */
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-solid: #ffffff;
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-strong: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(15, 23, 42, 0.04);

    /* ── Borders ── */
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --border-accent: rgba(197, 160, 89, 0.4);
    --border-glass: rgba(255, 255, 255, 0.5);

    /* ── Text ── */
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-accent: #c5a059;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.05);
    --shadow-lg: 0 12px 32px rgba(15,23,42,0.08);
    --shadow-xl: 0 20px 48px rgba(15,23,42,0.1);
    --shadow-glow: 0 0 20px rgba(197, 160, 89, 0.15);
    --shadow-glow-accent: 0 0 30px rgba(197, 160, 89, 0.2);
    --shadow-card: 0 2px 10px rgba(15,23,42,0.04), 0 0 0 1px rgba(15,23,42,0.03);
    --shadow-card-hover: 0 8px 30px rgba(15,23,42,0.08), 0 0 0 1px rgba(197, 160, 89, 0.2);

    /* ── Typography ── */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* ── Spacing ── */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s var(--ease);
    --transition-fast: all 0.15s var(--ease);
    --transition-smooth: all 0.5s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: pointer; }
ul { list-style: none; }

.hidden { display: none !important; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Utility ── */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-glass);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89,0.1);
    color: var(--accent-light);
    border: 1px solid rgba(197, 160, 89,0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ═══ BG MESH ═══ */
.bg-mesh {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
    animation: meshFloat 30s ease-in-out infinite alternate;
}

@keyframes meshFloat {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ═══ BG PARTICLES ═══ */
.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ═══ TOP BAR ═══ */
.top-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    z-index: 200;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-left i { color: var(--accent); }
.divider { opacity: 0.3; }

#weatherWidget {
    display: flex;
    align-items: center;
    gap: 6px;
}

#weatherWidget i {
    color: var(--accent-light);
}

.weather-desc {
    opacity: 0.7;
    font-size: 11px;
}

.top-bar-right {
    display: flex;
    gap: 16px;
}

.top-bar-right a {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.top-bar-right a:hover {
    color: var(--accent-light);
    background: rgba(197, 160, 89,0.08);
}

.top-bar-right a i { font-size: 9px; margin-left: 3px; }

/* ═══ HEADER ═══ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md), 0 0 60px rgba(15, 23, 42,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    gap: 24px;
}

/* Logo */
.logo-link { text-decoration: none; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem {
    width: 46px; height: 46px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15, 23, 42,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: var(--transition);
    position: relative;
}

.logo-emblem::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    filter: blur(8px);
}

.logo:hover .logo-emblem::after { opacity: 0.5; }

.logo-emblem.small {
    width: 36px; height: 36px;
    font-size: 16px;
    border-radius: 10px;
}

.logo:hover .logo-emblem { transform: scale(1.05); }

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 600;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
}

.nav-link i { font-size: 12px; }

.nav-link:hover {
    color: var(--text);
    background: var(--bg-input);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(197, 160, 89,0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-wrapper { position: relative; }

.search-toggle {
    width: 38px; height: 38px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition-fast);
}

.search-toggle:hover {
    color: var(--text);
    background: rgba(255,255,255,0.1);
}

.search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    width: 360px;
    display: flex;
    align-items: center;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    padding: 8px 14px;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.search-box.active {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}

.search-box .search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 14px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    width: 100%;
    font-family: var(--font-main);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px;
}

.search-close:hover { color: var(--text); }

.btn-refresh {
    width: 38px; height: 38px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition-fast);
}

.btn-refresh:hover {
    color: var(--accent);
    background: rgba(197, 160, 89,0.1);
}

.btn-refresh.spinning i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.mobile-menu-btn {
    display: none;
    width: 38px; height: 38px;
    border: none;
    background: var(--bg-input);
    color: var(--text);
    border-radius: 10px;
    font-size: 18px;
}

/* ═══ HERO SECTION ═══ */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
    filter: brightness(0.7);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255,0.7) 40%, rgba(255, 255, 255,0.3) 100%),
        linear-gradient(90deg, var(--bg) 0%, transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 80px;
    padding-bottom: 56px;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89,0.12);
    color: var(--accent-light);
    border: 1px solid rgba(197, 160, 89,0.2);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.6s var(--ease-out);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    color: var(--primary-dark);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 520px;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i { font-size: 12px; color: var(--accent); }

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: var(--transition);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before { left: 100%; }

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px var(--accent-glow);
}

.btn-hero i {
    transition: transform 0.2s;
}

.btn-hero:hover i { transform: translateX(4px); }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.stat-card {
    border-radius: var(--radius-md);
    padding: 22px 28px;
    text-align: center;
    min-width: 110px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89,0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before { opacity: 1; }

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-accent);
}

.stat-icon {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0.7;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-light);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* ═══ QUICK LINKS ═══ */
.quick-links-section {
    position: relative;
    z-index: 5;
    margin-top: -28px;
    padding-bottom: 20px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-glass-strong);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.ql-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-dark);
    background: var(--ql-color, var(--primary));
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-link-card:hover .ql-icon {
    transform: scale(1.1);
}

.ql-info { flex: 1; }

.ql-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ql-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.ql-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition-fast);
}

.quick-link-card:hover .ql-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ═══ TICKER BAR ═══ */
.ticker-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 36px;
    margin-top: 24px;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.ticker-label {
    background: var(--gradient-primary);
    color: var(--primary-dark);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    padding: 0 16px;
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-item .ticker-dot {
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
}

.ticker-item a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.ticker-item a:hover { color: var(--accent-light); }

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

/* ═══ FILTER SECTION ═══ */
.filter-section {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 80px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.pill.active {
    background: var(--gradient-primary);
    color: var(--primary-dark);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(15, 23, 42,0.3);
}

.pill i { font-size: 11px; }

.pill .pill-count {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 2px;
}

/* ═══ ARTICLES SECTION ═══ */
.articles-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent);
    font-size: 20px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Article Card */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    height: 100%;
    backdrop-filter: blur(10px);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(197, 160, 89,0.05), transparent, rgba(15, 23, 42,0.05));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.article-card:hover::before { opacity: 1; }

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.article-image-wrap {
    height: 210px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), #111);
}

.article-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

.article-source-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.08);
}

.article-category-tag {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    padding: 5px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top-left-radius: 12px;
    z-index: 2;
}

.article-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    transition: var(--transition-fast);
}

.article-card:hover .article-title {
    color: var(--accent-light);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-stats {
    display: flex;
    gap: 12px;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══ LOADING STATE ═══ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    color: var(--text-muted);
}

.loader {
    position: relative;
    width: 64px; height: 64px;
    margin-bottom: 24px;
}

.loader-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loader-ring:nth-child(1) {
    inset: 0;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 8px;
    border-right-color: var(--primary-light);
    animation: spin 1.5s linear infinite reverse;
}

.loader-ring:nth-child(3) {
    inset: 16px;
    border-bottom-color: var(--accent-light);
    animation: spin 2s linear infinite;
}

.loading-state p {
    font-size: 14px;
    font-weight: 500;
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.empty-state > i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-secondary {
    padding: 10px 22px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

/* ═══ ABOUT SECTION ═══ */
.about-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 48px;
}

.about-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89,0.08), transparent);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover::before { opacity: 1; }

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow-accent);
}

.about-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89,0.1);
    color: var(--accent-light);
    font-size: 24px;
    transition: var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.1);
    background: rgba(197, 160, 89,0.15);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ FOOTER ═══ */
.main-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.footer-logo h3 span { color: var(--accent); }

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(197, 160, 89,0.1);
    border-color: var(--border-accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    padding: 4px 0;
}

.footer-col a i { font-size: 13px; color: var(--primary-light); width: 16px; text-align: center; }
.footer-col a:hover { color: var(--accent-light); transform: translateX(4px); }

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.footer-tech {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.6;
}

.footer-tech i { color: #ef4444; }

/* ═══ BACK TO TOP ═══ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: var(--primary-dark);
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), 0 0 20px rgba(15, 23, 42,0.2);
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(15, 23, 42,0.3);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-glass-strong);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        animation: fadeInUp 0.3s var(--ease-out);
    }

    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero-stats { width: 100%; }
    .hero-title { font-size: 34px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 768px) {
    .top-bar-right { display: none; }

    .header-inner { padding: 10px 16px; }
    .logo-text h1 { font-size: 18px; }
    .logo-emblem { width: 38px; height: 38px; font-size: 18px; }

    .hero-section { min-height: 420px; }
    .hero-inner { padding-bottom: 36px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 14px; }
    .hero-stats { flex-wrap: wrap; }

    .stat-card { padding: 16px 20px; min-width: 80px; }
    .stat-number { font-size: 24px; }

    .quick-links-grid { grid-template-columns: 1fr; gap: 10px; }
    .quick-link-card { padding: 14px 16px; }

    .ticker-bar { flex-direction: column; align-items: stretch; }
    .ticker-label { justify-content: center; }

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

    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .container { padding: 0 16px; }

    .main-content { padding: 0 0 40px; }
    .main-content > .container { padding-top: 8px; }

    .about-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about-card { padding: 20px 16px; }
    .about-card h3 { font-size: 22px; }
    .about-header h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 22px; }
    .search-box { width: 260px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-card { padding: 16px 12px; }
}

/* ═══ ARTICLE MODAL ═══ */
.article-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.article-modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.article-modal.open .modal-container {
    transform: translateY(0);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-glass-strong);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 16px;
}

.modal-close {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.modal-source-info {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-external-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-accent);
    background: rgba(197, 160, 89,0.08);
    color: var(--accent-light);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.modal-external-link:hover {
    background: rgba(197, 160, 89,0.15);
    transform: translateY(-1px);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    color: var(--text-muted);
}

.modal-hero-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), #111);
}

.modal-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.modal-article {
    padding: 40px 48px 60px;
    max-width: 100%;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.modal-meta-item i {
    color: var(--accent);
    font-size: 11px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.modal-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-article-body p {
    margin-bottom: 18px;
}

.modal-article-body h2,
.modal-article-body h3,
.modal-article-body h4 {
    color: var(--text);
    margin: 28px 0 12px;
    font-weight: 700;
}

.modal-article-body h2 { font-size: 24px; }
.modal-article-body h3 { font-size: 20px; }

.modal-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.modal-article-body a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(243, 156, 18, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.modal-article-body a:hover {
    text-decoration-color: var(--accent-light);
}

.modal-article-body ul,
.modal-article-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.modal-article-body li {
    margin-bottom: 8px;
    list-style: disc;
}

.modal-article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(197, 160, 89,0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text);
}

.modal-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.modal-article-body th,
.modal-article-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.modal-article-body th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text);
}

.modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.modal-error > i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-error h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 20px;
}

.modal-error p {
    margin-bottom: 28px;
    max-width: 400px;
}

/* Modal body scrollbar */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* Lock body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-article {
        padding: 24px 20px 40px;
    }
    .modal-title {
        font-size: 24px;
    }
    .modal-article-body {
        font-size: 15px;
    }
    .modal-nav {
        padding: 10px 16px;
    }
    .modal-external-link span {
        display: none;
    }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* ═══ SELECTION ═══ */
::selection {
    background: rgba(197, 160, 89,0.3);
    color: var(--primary-dark);
}
