/*
Theme Name: RechtsGeluid
Theme URI: https://rechtsgeluid.com
Author: RechtsGeluid
Author URI: https://RechtsGeluid.com
Description: Een modern, strak en krachtig nieuwsportaal thema.
Version: 1.0
Text Domain: rechtsgeluid
*/

        /* === Moderne Variabelen === */
        :root {
            --primary: #1A365D;     
            --accent: #E53E3E;      
            --bg-color: #F7FAFC;    
            --card-bg: #FFFFFF;
            --text-main: #2D3748;
            --text-muted: #718096;
            --border-radius: 16px;  
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

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

        /* === Header & Scrollbare Navigatie === */
        header {
            background-color: var(--card-bg);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
        }

        .header-top {
            padding: 20px 0 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: -0.5px;
        }

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

        .nav-wrapper {
            border-top: 1px solid #E2E8F0;
            padding: 12px 0;
        }

        nav ul {
            display: flex;
            gap: 10px;
            list-style: none;
            
            /* Essentieel voor horizontaal scrollen */
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch; /* Voor soepel scrollen op iOS */
            
            /* Verberg de scrollbar voor een strakker uiterlijk */
            scrollbar-width: none; /* Firefox */
        }
        
        nav ul::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        nav a {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 99px; /* Pil-vorm */
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-main);
            background-color: var(--bg-color);
            transition: var(--transition);
            border: 1px solid transparent;
        }

        nav a:hover {
            border-color: #E2E8F0;
            background-color: #EDF2F7;
        }

        nav a.active {
            background-color: var(--primary);
            color: #fff;
        }

        /* === Layout === */
        .layout-grid {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 32px;
            margin: 40px auto;
        }

        /* === Sectie Koppen === */
        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 24px;
            margin-top: 40px;
        }

        .section-header h2 {
            font-size: 1.5rem;
            color: var(--primary);
            font-weight: 800;
            margin-right: 16px;
        }

        .section-header .line {
            flex-grow: 1;
            height: 2px;
            background-color: #E2E8F0;
            position: relative;
        }

        .section-header .line::after {
            content: '';
            position: absolute;
            left: 0;
            top: -1px;
            height: 4px;
            width: 40px;
            background-color: var(--accent);
            border-radius: 2px;
        }

        .section-header.first { margin-top: 0; }

        /* === Grids === */
        .grid-magazine { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

        /* === Kaart Styling === */
        .card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .img-wrapper {
            background-color: #E2E8F0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #A0AEC0;
            font-weight: 500;
            width: 100%;
            height: 200px; 
        }

        .card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }

        .tag {
            align-self: flex-start;
            background-color: rgba(229, 62, 62, 0.1);
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .tag.opinie { background-color: rgba(26, 54, 93, 0.1); color: var(--primary); }
        .tag.economie { background-color: rgba(47, 133, 90, 0.1); color: #2F855A; }

        h3.title { font-size: 1.15rem; line-height: 1.4; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
        .meta { font-size: 0.85rem; color: var(--text-muted); margin-top: auto; padding-top: 16px; }

        .hero-card { grid-column: 1 / -1; }
        .hero-card .img-wrapper { height: 360px; }
        .hero-card h3.title { font-size: 2rem; }
        .hero-card p.excerpt { color: var(--text-muted); margin-bottom: 16px; font-size: 1.1rem; }

        /* === Sidebar (Sticky) === */
        aside { position: sticky; top: 140px; align-self: start; }

        .widget {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .widget-title { font-size: 1.1rem; color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .widget-title::before { content: ''; display: block; width: 12px; height: 12px; background-color: var(--accent); border-radius: 50%; }

/* === Verbeterde Trending List (Geen overlap meer) === */
.trending-list {
    list-style: none;
    counter-reset: trending-counter;
}

.trending-list li {
    display: flex; /* Gebruik flexbox in plaats van absolute positionering */
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.trending-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-list li::before {
    counter-increment: trending-counter;
    content: counter(trending-counter);
    flex-shrink: 0; /* Zorgt dat het cijfer niet wordt platgedrukt */
    font-size: 1.8rem;
    font-weight: 800;
    color: #E2E8F0; /* Lichtgrijs voor een moderne look */
    line-height: 1;
    width: 30px; /* Vaste breedte voor uitlijning */
    text-align: center;
}

.trending-list a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
}

.trending-list a:hover {
    color: var(--accent);
}
        .newsletter { background: linear-gradient(135deg, var(--primary) 0%, #2A4A7F 100%); color: white; }
        .newsletter .widget-title { color: white; }
        .newsletter .widget-title::before { background-color: white; }
        .newsletter p { font-size: 0.9rem; margin-bottom: 16px; opacity: 0.9; }

        .input-group { display: flex; flex-direction: column; gap: 10px; }
        .input-group input { padding: 12px 16px; border-radius: 8px; border: none; font-family: inherit; }
        .input-group button { padding: 12px; border-radius: 8px; border: none; background-color: var(--accent); color: white; font-weight: bold; cursor: pointer; transition: var(--transition); }
        .input-group button:hover { background-color: #C53030; }

        /* === Responsiveness === */
        @media (max-width: 992px) {
            .layout-grid { grid-template-columns: 1fr; }
            aside { position: static; } 
            .hero-card .img-wrapper { height: 250px; }
        }

        @media (max-width: 768px) {
            .grid-magazine, .grid-3, .grid-2 { grid-template-columns: 1fr; }
        }
