/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
    --primary:      #2563eb;
    --primary-dark: #1d4ed8;
    --dark:         #111827;
    --dark-2:       #1f2937;
    --text:         #374151;
    --text-muted:   #6b7280;
    --bg:           #f3f4f6;
    --white:        #ffffff;
    --border:       #e5e7eb;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.05);

    --radius:    8px;
    --radius-lg: 14px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.03em;
    flex-shrink: 0;
}
.site-logo svg { width: 26px; height: 26px; color: var(--primary); }

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.site-nav a {
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

/* Lang switcher */
.header-actions { margin-left: auto; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 3px;
}
.lang-switcher a {
    color: rgba(255,255,255,.55);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 16px;
    transition: color .15s, background .15s;
}
.lang-switcher a:hover  { color: var(--white); background: rgba(255,255,255,.1); }
.lang-switcher a.active { color: var(--white); background: var(--primary); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, #162c52 100%);
    padding: 72px 24px 64px;
    text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37,99,235,.18);
    color: #93c5fd;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37,99,235,.3);
    margin-bottom: 20px;
}
.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.85); }
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    margin-bottom: 18px;
}
.hero p {
    color: rgba(255,255,255,.6);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Main Content ──────────────────────────────────────────────── */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 24px 72px;
}

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

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.025em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── News Grid ─────────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Card image / gradient header */
.card-image {
    height: 156px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 14px 16px;
}
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}

.card-category {
    position: relative;
    z-index: 1;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--white);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(6px);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Card body */
.card-body {
    padding: 18px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-title {
    font-size: .975rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    letter-spacing: -.015em;
}
.card-excerpt {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.card-footer {
    padding: 10px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.card-meta {
    font-size: .72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.read-more {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}
.read-more:hover { gap: 8px; }

/* Category gradient backgrounds */
.cat-macro       .card-image { background: linear-gradient(135deg, #3b0764, #7c3aed); }
.cat-crypto      .card-image { background: linear-gradient(135deg, #78350f, #d97706); }
.cat-forex       .card-image { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.cat-stocks      .card-image { background: linear-gradient(135deg, #064e3b, #059669); }
.cat-commodities .card-image { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.cat-options     .card-image { background: linear-gradient(135deg, #831843, #db2777); }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.55);
    padding: 52px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .site-logo  { margin-bottom: 14px; font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; line-height: 1.65; max-width: 230px; }

.footer-col h4 {
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .news-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .site-header { position: relative; }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 16px;
        gap: 2px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        box-shadow: var(--shadow-lg);
    }
    .site-nav.open { display: flex; }
    .nav-toggle    { display: flex; }

    .header-actions { display: none; }

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

    .hero { padding: 48px 20px; }

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

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
}
