/* =========================================
   BASE.CSS — Gedeelde styles voor ALLE pagina's
   Nav, footer, theme toggle, hamburger, CSS variabelen
   ========================================= */

/* --- CSS VARIABELEN --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #f8f9fa;
    --primary-color: #007bff;
    --card-bg: #f4f4f4;
    --border-color: #ddd;
    --transition-speed: 0.3s;
    --hero-overlay: rgba(255, 255, 255, 0.85);
    --header-height: 70px;
}

[data-theme="dark"] {
    --bg-color: #0c0c0c;
    --text-color: #d4d4d4;
    --nav-bg: #111111;
    --primary-color: #3b9eff;
    --card-bg: #161616;
    --border-color: #222222;
    --hero-overlay: rgba(0, 0, 0, 0.8);
}

/* --- RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* =========================================
   NAVIGATIE
   ========================================= */
nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* =========================================
   THEME TOGGLE SWITCH
   ========================================= */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 18px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 18px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--nav-bg);
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.secret-terminal {
    color: var(--text-color);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
    font-size: 1.1rem;
    padding: 0 5px;
}

.secret-terminal:hover {
    opacity: 1;
    color: #33ff00;
}

#cookie-banner {
    display: none;
}

/* =========================================
   MOBILE NAVIGATIE (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.9rem; }
}

/* =========================================
   MOBILE NAVIGATIE (≤ 900px)
   Hamburger menu + nav collapse
   ========================================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 40px 0;
        border-bottom: 1px solid var(--border-color);
        transform: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        justify-content: flex-start;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 16px 20px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links a::after { content: none; }

    .hamburger { display: flex; margin-left: auto; margin-right: 20px; }
    .nav-icons { margin-left: 0; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================
   KLEINE MOBIEL (≤ 480px)
   Nav + footer aanpassingen
   ========================================= */
@media (max-width: 480px) {
    nav { padding: 0 12px; }
    .logo { font-size: 1.3rem; }

    footer { padding: 20px 15px; }
    footer .footer-links { gap: 10px; }
    footer a { font-size: 0.8rem; }

    #weather-widget { display: none !important; }
}

/* =========================================
   MATERIAL SYMBOLS HELPERS
   ========================================= */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.material-symbols-outlined.icon-sm { font-size: 18px; }
.material-symbols-outlined.icon-lg { font-size: 32px; }
.material-symbols-outlined.icon-xl { font-size: 48px; }
