/* ==========================================================================
   BASIS INSTELLINGEN
   ========================================================================== */
:root {
    --primary: #ffd700;
    --primary-glow: rgba(255, 215, 0, 0.3);
    /* AANGEPAST: Diep paars i.p.v. zwart voor de basis */
    --bg-dark: #1a1025; 
    /* AANGEPAST: Iets lichter paars voor kaarten voor diepte */
    --card-bg: #251835; 
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg-dark); 
    /* Subtiele gloed bovenin voor meer paars-gevoel */
    background-image: radial-gradient(circle at top right, rgba(93, 0, 255, 0.12), transparent);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; 
    color: #fff; 
    line-height: 1.6; 
    overflow-x: hidden;
}

.site-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   HEADER & NAVIGATIE
   ========================================================================== */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.logo { font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; }
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }

.nav-menu a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 25px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    transition: 0.3s; 
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }

/* ==========================================================================
   TICKER (NIEUWSBALK)
   ========================================================================== */
.ticker-bar { 
    background: var(--primary); 
    color: #000; 
    padding: 14px; 
    margin: 20px 0 40px 0; 
    border-radius: 12px; 
    display: flex; 
    font-weight: 800; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ticker-label { padding: 0 20px; border-right: 2px solid rgba(0,0,0,0.1); margin-right: 15px; text-transform: uppercase; font-size: 0.75rem; }
.ticker-wrap { overflow: hidden; white-space: nowrap; flex-grow: 1; }
.ticker-move { display: inline-block; animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ==========================================================================
   BLOG SECTIE
   ========================================================================== */
.blog-section { margin-bottom: 60px; }
.section-title-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 25px; 
    border-bottom: 1px solid rgba(255,215,0,0.1); 
    padding-bottom: 10px; 
}
.section-title { font-weight: 800; font-size: 1.5rem; }
.section-title span { color: var(--primary); }
.btn-all-blogs-link { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 0.8rem; }

.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.blog-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); transition: 0.3s; }
.blog-card a { text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--primary); background: #2d1e3d; }
.blog-img { height: 220px; background-size: cover; background-position: center; }
.blog-content { padding: 25px; }
.blog-meta { font-size: 0.7rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.blog-content h3 { margin: 10px 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.blog-content p { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; margin-bottom: 20px; }
.read-more { font-weight: 800; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

/* ==========================================================================
   LIVE HUB (STREAM, CHAT, LEDEN)
   ========================================================================== */
.main-chat-layout { display: grid; grid-template-columns: 1.7fr 1.2fr 230px; gap: 20px; height: 580px; margin-bottom: 30px; }

.hub-box { 
    background: var(--card-bg); 
    border-radius: 18px; 
    border: 1px solid var(--glass-border); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    transition: 0.3s;
}

.sidebar-header { 
    padding: 15px; 
    background: rgba(255,215,0,0.08); 
    text-align: center; 
    font-weight: 900; 
    font-size: 0.7rem; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 2px;
    border-bottom: 1px solid var(--glass-border);
}

.iframe-wrapper { flex: 1; position: relative; background: #000; }
.iframe-wrapper iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:none; }

/* Chat Window */
.chat-window { flex: 1; overflow-y: auto; padding: 20px; background: rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 12px; }
.chat-msg-item { display: flex; gap: 12px; background: rgba(255,255,255,0.04); padding: 12px; border-radius: 12px; border-left: 3px solid var(--primary); }

.chat-input-area { padding: 20px; background: rgba(0,0,0,0.35); border-top: 1px solid var(--glass-border); }
.chat-input-wrapper input { 
    flex: 1; background: #1a1025; border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px; border-radius: 10px; outline: none; 
}

/* Ledenlijst */
.user-list { padding: 15px; overflow-y: auto; flex: 1; }
.user-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.85rem; padding: 8px; border-radius: 8px; transition: 0.2s; }
.user-item:hover { background: rgba(255,255,255,0.05); }

/* ==========================================================================
   KNOPPEN ONDERAAN
   ========================================================================== */
.action-buttons { display: flex; gap: 20px; margin-top: 40px; padding-bottom: 60px; }
.action-btn { 
    flex: 1; padding: 22px; text-align: center; border-radius: 15px; text-decoration: none; 
    font-weight: 900; font-size: 1rem; transition: 0.3s; 
}
.action-btn.primary { background: var(--primary); color: #000; box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2); }
.action-btn.secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--glass-border); }

/* ==========================================================================
   DASHBOARD ISOLATIE
   ========================================================================== */
#db-site-root .db-card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--glass-border); margin-bottom: 20px; }
#db-site-root .db-card-title { padding: 15px; background: rgba(255,215,0,0.15); color: var(--primary); }

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .main-chat-layout { grid-template-columns: 1fr; height: auto; }
    .hub-box { height: 450px; }
    .blog-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
}