/*------------------------------------*/
/*                                    */
/*      © 2026 God's Kingdom          */
/*      Author: Alex v/d Kooi         */
/*      Stable Foundation v2.0        */
/*      Default Dark (No-Flash)       */
/*                                    */
/*------------------------------------*/


/* 1. VARIABELEN & RESET */
:root {
    /* Kleuren van .nl */
    --main-blue: #2196f3;
    --dark-blue: #1565c0;
    --bible-gold: #ffd700;
    --yt-red: #ff0000;
    
    /* Dark Mode als Standaard (Voorkomt flitsen) */
    background-color: #121212;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --sidebar-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --nav-bg: #1e1e1e;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    --border-color: #333;
}

/* 2. LIGHT MODE OVERRIDE (Alleen als class aanwezig is) */
html.light-mode, body.light-mode {
    --bg-color: #f0f4f8;
    --text-color: #333;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --border-color: #eee;
    background-color: var(--bg-color);
}

/* 3. FONTS (Met swap voor snelheid) */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/webfonts/LibreBaskerville-Regular.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/webfonts/LibreBaskerville-Bold.woff2') format('woff2');
    font-weight: bold; font-style: normal; font-display: swap;
}

/* 4. BASIS LAYOUT */
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.8;
    margin: 0;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 5. HERO SECTION (Jouw specifieke gradients) */
.hero-section {
    /* Standaard Light-Mode gradient (0.12) */
    background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), url('/images/header-mobile.webp') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    text-align: center;
    color: white;
}

@media (min-width: 992px) {
    .hero-section { background-image: url('/images/header.webp'); }
}

/* Dark Mode Gradient Override (Jouw 0.4 waarde) */
html.dark-mode .hero-section, 
body:not(.light-mode) .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/header-mobile.webp') no-repeat center center;
    background-size: cover;
}

/* 6. NAVIGATIEBALK */
.nav-bar-custom {
    background-color: var(--nav-bg);
    padding: 10px 20px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* 7. CONTENT STRUCTUUR (Afstanden van .nl) */
.flex-container {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sidebar-chapters {
    width: 300px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: var(--box-shadow);
}

.content-card {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

/* 8. HOOFDSTUK BOXEN (Menu logica) */
.chapter-box {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chapter-title {
    padding: 12px 15px;
    cursor: pointer;
    background: rgba(33, 150, 243, 0.1);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-chapters {
    display: none; /* Standaard dicht */
    padding: 10px;
    background: var(--bg-color);
}

/* Openen van menu's */
.chapter-box.open .sub-chapters,
.chapter-box.active-click .sub-chapters {
    display: block;
}

.sub-chapters a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.95em;
}

.sub-chapters a:hover, .sub-chapters a.active {
    background-color: var(--main-blue);
    color: white;
}

/* 9. KNOPPEN */
.btn-primary {
    background-color: var(--main-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

/* 10. RESPONSIVE (Mobiel) */
@media (max-width: 991px) {
    .flex-container {
        flex-direction: column;
        padding: 10px;
    }
    .sidebar-chapters {
        width: auto;
    }
}
