/* ============================================================
   EU-Data.org — Layout: header, nav, hero, sections, footer
   ============================================================ */

/* ---------- Header ---------- */
header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--eu-blue);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.logo-icon img { width: 36px; height: 36px; display: block; border-radius: var(--radius-md); }

/* ---------- Nav ---------- */
.nav { display: flex; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-list a:hover { background: var(--bg-subtle); color: var(--eu-blue); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-badge {
    background: var(--eu-yellow);
    color: #1a1a2e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 80px;
    background: linear-gradient(140deg, #001f6b 0%, #003399 45%, #1e3a8a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,204,0,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero h1 span { color: var(--eu-yellow); }
.hero-subtitle { font-size: 1.125rem; opacity: .88; max-width: 580px; margin: 0 auto 36px; }
.hero-cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 56px; padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--eu-yellow); line-height: 1; }
.stat-label { font-size: 0.8125rem; opacity: .75; margin-top: 6px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1rem; }

.section-alt    { background: var(--bg-surface); }
.section-danger { background: color-mix(in srgb, var(--accent-red) 5%, var(--bg-page)); }
[data-theme="dark"] .section-danger { background: #1a0a0a; }

.section-blue {
    background: linear-gradient(140deg, #001f6b 0%, #003399 45%, #1e3a8a 100%);
    color: white;
}
.section-blue .section-header h2 { color: white; }
.section-blue .section-header p  { color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
footer {
    background: #080d18;
    color: white;
    padding: 56px 0 28px;
}
[data-theme="dark"] footer { background: #050810; border-top: 1px solid var(--border); }

.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { font-size: 1.125rem; margin-bottom: 12px; }
.footer-brand p  { color: rgba(255,255,255,.55); font-size: 0.875rem; line-height: 1.6; }

.footer-links h4 {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 16px; color: var(--eu-yellow);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }

.footer-footnotes {
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; flex-wrap: wrap; gap: 6px 24px;
    font-size: 0.75rem; color: rgba(255,255,255,.3);
}
.footer-footnotes a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-footnotes a:hover { color: rgba(255,255,255,.75); text-decoration: underline; }
.footer-footnotes span::before { content: '* '; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    font-size: 0.8125rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: white; }
.footer-legal { color: rgba(255,255,255,.35); }
.footer-legal a { color: rgba(255,255,255,.5); }

.footer-theme-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.8125rem; color: rgba(255,255,255,.5);
}
