/* ==========================================================================
   1. Modern & Levendig Dark Gaming Theme (Basis)
   ========================================================================== */
:root {
    --bg-color: #0a0c10;
    --card-bg: #131722;
    --accent-color: #ffcc00;
    --accent-glow: rgba(255, 204, 0, 0.15);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --twitch-purple: #9146ff;
    --discord-blue: #5865F2;
    --danger-red: #ef4444;
    --success-green: #22c55e;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 50% 0%, rgba(255, 204, 0, 0.05) 0px, transparent 50%),
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ==========================================================================
   2. Header & Navigatie
   ========================================================================== */
header {
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    margin: 0;
}

.logo-text span {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.stream-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 5px 0 0 0;
}

nav {
    background-color: var(--card-bg);
    border-top: 1px solid #1e2538;
    border-bottom: 1px solid #1e2538;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 20px;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    background-color: rgba(255, 204, 0, 0.05);
}

/* ==========================================================================
   3. Layout & Content (Cards, Grid, Knoppen)
   ========================================================================== */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid #1e2538;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

h1, h2, h3 {
    color: #ffffff;
    margin-top: 0;
    font-weight: 800;
}

h2 { font-size: 1.8rem; margin-bottom: 15px; }

p { color: var(--text-muted); font-size: 1.05rem; }

/* Statistieken */
.stats-grid { display: flex; gap: 15px; margin: 20px 0; }
.stat-box {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid #1e2538;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.stat-box h5 { margin: 0; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }
.stat-box p { margin: 5px 0 0 0; font-size: 1.4rem; font-weight: bold; color: #fff; }

/* Live Badge */
.badge-live {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dot { width: 8px; height: 8px; background-color: var(--success-green); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* Knoppen */
.btn-container { display: flex; gap: 15px; margin-top: 30px; }
.btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn-twitch { background-color: var(--twitch-purple); color: white; }
.btn-twitch:hover { background-color: #a366ff; }
.btn-discord { background-color: var(--discord-blue); color: white; }
.btn-discord:hover { background-color: #6a77f3; }

/* Alerts & Lijsten */
.alert-box {
    background: radial-gradient(circle at top left, rgba(255,204,0,0.1), transparent);
    border: 1px solid #1e2538;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}
.alert-box h4 { margin: 0 0 8px 0; color: var(--accent-color); font-size: 1.1rem; }

ul { list-style: none; padding: 0; }
li { padding: 15px 0; border-bottom: 1px solid #1e2538; color: var(--text-color); display: flex; justify-content: space-between; }
li span { color: var(--accent-color); font-weight: bold; }
li:last-child { border-bottom: none; }

/* Schema Vrije Dagen Elementen */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.cancel-badge {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================================================
   4. Twitch Banner & Partner Footer
   ========================================================================== */
.twitch-banner-container {
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
}

.twitch-banner-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #1e2538;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s, border-color 0.2s;
}

.twitch-banner-link:hover {
    transform: scale(1.01);
    border-color: var(--twitch-purple);
}

.twitch-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    background-color: #0b0e14;
    border-top: 1px solid #1e2538;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.partner-section h4 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logo {
    max-height: 90px;
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #475569;
}

/* ==========================================================================
   5. Responsive Design (Mobiel & Tablet Optimalisatie)
   ========================================================================== */

/* Tablets en kleinere schermen (onder 768px) */
@media (max-width: 768px) {
    .container, .twitch-banner-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    nav {
        padding: 10px 5px;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    .stats-grid, .btn-container {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Smartphones (onder 480px) */
@media (max-width: 480px) {
    header {
        padding: 20px 10px 5px 10px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .stream-tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    nav a {
        margin: 2px;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }

    .cancel-badge {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin: 3px 0;
    }
}

/* ==========================================================================
   6. Centrale Partner Popup (Echte Modal)
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.popup-box {
    background-color: #0b111e;
    border: 2px solid #00f2fe;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    animation: popupSnoepje 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSnoepje {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #fff;
}

.popup-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.popup-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-action-btn {
    display: inline-block;
    background-color: #5865F2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.popup-action-btn:hover {
    background-color: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

@media (max-width: 480px) {
    .popup-box {
        padding: 30px 20px;
    }
    .popup-box h3 {
        font-size: 1.3rem;
    }
    .popup-action-btn {
        width: 100%;
        box-sizing: border-box;
    }
}