/* ============================================================
   A Troe Nyunsu — Hoofdstylesheet
   ============================================================ */

:root {
    --primary:   #111111;
    --primary-l: #222222;
    --accent:    #16A34A;
    --accent-l:  #22c55e;
    --white:     #ffffff;
    --gray-50:   #f8f9fa;
    --gray-100:  #F1F4F7;
    --gray-200:  #EDEDED;
    --gray-400:  #aab0bb;
    --gray-600:  #666;
    --text:      #1a1a1a;
    --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.14);
    --radius:    6px;
    --radius-lg: 10px;
    --max-w:     1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--gray-100); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ── Info-balk (koersen + weer) onder de navigatie ── */
.rates-bar {
    background: #fff;
    color: #374151;
    font-size: .72rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.rates-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 36px;
    overflow-x: auto;
}
.rates-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}
.rates-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    border-right: 1px solid #e5e7eb;
    height: 36px;
}
.rates-cur {
    font-weight: 700;
    color: #111;
    letter-spacing: .04em;
    font-size: .75rem;
}
.rates-label {
    color: #6b7280;
    font-size: .68rem;
}
.rates-val {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rates-sep {
    color: #d1d5db;
    margin: 0 1px;
}
.rates-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: .67rem;
    padding: 0 14px;
    border-right: 1px solid #e5e7eb;
    height: 36px;
    white-space: nowrap;
}
.rates-meta svg { flex-shrink: 0; }
.rates-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 4px;
    margin-right: 8px;
}
.rates-indicatief {
    font-style: italic;
    font-size: .65rem;
    color: #9ca3af;
}
/* ── Weer-blok ── */
.weather-block {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    color: #374151;
    font-size: .72rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-left: 1px solid #e5e7eb;
}
.weather-icon { display: flex; align-items: center; color: #d97706; }
.weather-location { font-weight: 700; color: #111; font-size: .73rem; }
.weather-temp { font-weight: 700; color: #d97706; font-size: .78rem; }
.weather-label { color: #6b7280; }
.weather-extra {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9ca3af;
    font-size: .67rem;
}
.weather-dot {
    width: 3px; height: 3px;
    background: #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (max-width: 900px) { .weather-extra { display: none; } }
@media (max-width: 600px) {
    .rates-inner { justify-content: flex-start; overflow-x: auto; }
    .rates-meta, .rates-badge { display: none; }
    .weather-label { display: none; }
}

/* ── Breaking news ── */
.breaking-bar {
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    overflow: hidden;
    height: 34px;
}
.breaking-label {
    background: rgba(0,0,0,.25);
    padding: 0 14px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: .06em;
    flex-shrink: 0;
}
.breaking-ticker {
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    animation: ticker 30s linear infinite;
}
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── Header ── */
.site-header {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.site-logo {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 3px;
}
.site-logo-img {
    height: 40px;
    width: auto;
    display: block;
}
.site-logo-tagline {
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
}
/* fallback tekst (niet meer gebruikt maar voor de zekerheid) */
.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: -.02em;
}
.logo-sub {
    font-size: .72rem;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: 6px;
}
.footer-logo-tagline {
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.header-search {
    display: flex;
    margin-left: auto;
    background: rgba(255,255,255,.12);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .2s;
}
.header-search:focus-within { background: rgba(255,255,255,.2); }
.header-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    padding: 7px 14px;
    font-size: .88rem;
    width: 220px;
    font-family: var(--font);
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search button {
    background: none;
    border: none;
    color: var(--gray-400);
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.header-search button:hover { color: var(--white); }

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 11px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}
.lang-switch:hover { background: rgba(255,255,255,.28); color: var(--white); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s;
}

/* ── Navigation ── */
.main-nav {
    background: var(--primary-l);
    border-bottom: 3px solid var(--accent);
}
.main-nav .container { overflow-x: visible; max-width: 100%; }
.main-nav ul {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
}
.main-nav ul li a {
    display: block;
    padding: 11px 13px;
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s, background .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--white);
    background: rgba(255,255,255,.07);
    border-bottom-color: var(--accent);
}

/* ── Main ── */
.site-main { padding: 28px 0 40px; }

/* ── Hero slider ── */
.hero-section { margin-bottom: 32px; }

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slides {
    display: flex;
    transition: transform .5s ease;
}

.hero-article {
    position: relative;
    flex: 0 0 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--primary);
}
.hero-article img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.hero-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #2a3f8f 100%);
}
.hero-body {
    position: relative;
    padding: 28px 32px 52px;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 100%);
    width: 100%;
}
.hero-body .cat-badge { margin-bottom: 10px; }
.hero-body h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}
.hero-body h1 a { color: var(--white); }
.hero-body h1 a:hover { text-decoration: underline; }
.hero-body .hero-meta {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
}
.hero-body .hero-summary {
    color: rgba(255,255,255,.85);
    margin-top: 8px;
    font-size: .95rem;
}

/* Pijlknoppen */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.dot.active {
    background: var(--white);
    border-color: var(--white);
}

/* ── Content grid ── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── Section label ── */
.section-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ── Article grid ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ── Article card ── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-200);
    flex-shrink: 0;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 2.5rem;
}
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px 0;
    flex: 1;
}
.card-body h2 a:hover { color: var(--accent); }
.card-body .card-summary {
    font-size: .84rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.card-meta {
    font-size: .76rem;
    color: var(--gray-400);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ── Category badge ── */
.cat-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.widget-title {
    background: var(--primary);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 10px 16px;
}
.widget-list { padding: 4px 0; }
.widget-item {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
    transition: background .15s;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: var(--gray-50); }
.widget-item-img {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gray-200);
}
.widget-item-img img { width: 100%; height: 100%; object-fit: cover; }
.widget-item-body h4 {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 3px;
}
.widget-item-body h4 a:hover { color: var(--accent); }
.widget-item-body span {
    font-size: .72rem;
    color: var(--gray-400);
}

.cat-widget { padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat-widget a {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: .83rem;
    color: var(--primary);
    background: var(--gray-100);
    transition: background .15s, color .15s;
}
.cat-widget a:hover { background: var(--accent); color: var(--white); }

/* ── Single article ── */
.article-header { margin-bottom: 24px; }
.article-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .82rem;
    color: var(--gray-600);
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.article-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 480px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #2c2c2c;
}
.article-body p { margin-bottom: 1.2em; }
.article-body h2, .article-body h3 {
    font-weight: 700;
    margin: 1.6em 0 .6em;
    line-height: 1.3;
}
.article-body h2 { font-size: 1.35rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5em 0;
    padding: .8em 1.2em;
    background: var(--gray-50);
    font-style: italic;
    color: var(--gray-600);
}
.article-body ul, .article-body ol {
    margin: 1em 0 1em 1.5em;
}
.article-body li { margin-bottom: .4em; }
.article-body img { border-radius: var(--radius); margin: 1em 0; }
.article-body a { color: var(--accent); text-decoration: underline; }

.article-wrap { max-width: 780px; }

/* ── Gerelateerd ── */
.related-section { margin-top: 40px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* ── Categoriepagina ── */
.page-header {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }
.page-header p { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 4px; }

/* ── Zoekresultaten ── */
.search-form-large {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 10px;
}
.search-form-large input {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
}
.search-form-large input:focus { border-color: var(--primary); }
.search-form-large button {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 22px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.search-form-large button:hover { background: var(--accent-l); }

/* ── Paginering ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 600;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: background .15s, color .15s;
}
.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .active { background: var(--accent); color: var(--white); }

/* ── Leeg bericht ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}
.empty-state svg { margin: 0 auto 16px; opacity: .3; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* ── Footer ── */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 16px;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    display: block;
    margin-bottom: 8px;
}
.footer-logo::first-letter { color: #FFD700; }
.footer-inner p { font-size: .85rem; color: #ff4444; }
.footer-inner h4 {
    color: var(--white);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
}
.footer-inner ul li { margin-bottom: 6px; }
.footer-inner ul li a { font-size: .85rem; }
.footer-inner ul li a:hover { color: var(--white); }
.footer-bar {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 0;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .logo-main { font-size: 1.2rem; }
    .header-search { display: none; }
    .mobile-menu-btn { display: flex; }
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 400px; }
    .main-nav ul {
        flex-direction: column;
        min-width: 0;
    }
    .main-nav ul li a { padding: 12px 20px; }
    .hero-article { min-height: 260px; }
    .hero-body { padding: 16px 16px 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .articles-grid { grid-template-columns: 1fr; }
}
