/*
Theme Name: KR Live Theme
Author: Raymond / KontaktRadio
Description: Modern 'Broadcast' thema met donkere modus.
Version: 2.0
*/

/* --- 1. VARIABELEN & RESET --- */
:root {
  --kr-blue: #103E66;
  --kr-blue-2: #2D6399;
  --kr-gold: #BA922D;
  --kr-gray: #CBCBC3;
  
  /* Layout kleuren */
  --bg: #0b1522;
  --card: #0f1f33;
  --text: #ffffff;
  --muted: #cfd6df;
  --border: #1f3350;
  
  /* Afmetingen */
  --container-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body.kr-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: var(--kr-gold); text-decoration: none; }
a:hover { color: #ffce66; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-main { padding: 16px 0 24px; min-height: 60vh; }

/* Grid voor Livestream Page */
.live-wrap { margin-top: 8px; }
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: flex-start;
}

/* Grid voor Content Pages */
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* --- 3. HEADER --- */
.site-header {
  border-bottom: 4px solid var(--kr-gold);
  background: linear-gradient(90deg, var(--kr-blue) 0%, var(--kr-blue-2) 100%);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand-logo img { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-title { font-size: 1.35rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.site-tagline { margin: 0; font-size: 0.8rem; color: var(--kr-gray); }

/* Navigatie */
.site-nav .menu { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.site-nav .menu li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f8fbff;
  transition: background 0.2s ease;
}
.site-nav .menu li a:hover, .site-nav .menu li.current-menu-item > a {
  background: rgba(255,255,255,0.15);
}

.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius:6px; cursor:pointer; width:40px; height:40px; padding:8px; flex-direction:column; justify-content:center; gap:5px;}
.nav-toggle-bar { display:block; width:100%; height:3px; background:#fff; border-radius:2px; }

/* --- 4. PLAYER & CONTENT --- */
.player {
  background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); position: relative;
}
.responsive-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.responsive-video-container video, .responsive-video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.player-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px; background: rgba(11, 21, 34, 0.9); border-top: 1px solid rgba(255,255,255,0.05);
}
.live-badge { color: var(--kr-gold); font-size: 12px; font-weight: bold; display:flex; align-items:center; gap:5px; }
.cast-btn {
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.2); color: #fff;
  padding: 6px 12px; cursor: pointer; display:inline-flex; align-items:center; gap:5px;
}
.cast-btn.is-active { background: var(--kr-gold); color: #000; border-color: var(--kr-gold); }

.live-guard-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; text-align: center;
}

/* --- 5. CHAT UI --- */
.chat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; min-height: 400px; overflow: hidden;
}
.chat-header { background: rgba(0,0,0,0.2); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-title { margin: 0; font-size: 1rem; color: var(--kr-gold); text-transform: uppercase; }
.chat-body { padding: 10px; flex: 1; }

/* --- 6. FOOTER --- */
.site-footer { margin-top: 40px; border-top: 4px solid var(--kr-gold); background: var(--kr-blue); color: #fff; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 30px 16px; }
.footer-widgets h2 { font-size:1.2rem; margin-bottom:15px; color: var(--kr-gold); }
.footer-meta { text-align: center; padding: 15px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #a3b3c2; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
  .chat-col { display: none; } /* Op mobiel chat weg, fab knop aan */
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--kr-blue); z-index: 999; padding:20px; border-bottom:4px solid var(--kr-gold); }
  .site-nav.is-open { display: block; }
  .site-nav .menu { flex-direction: column; text-align: center; }
  .site-nav .menu li a { display: block; }
}

/* --- 8. CHAT STYLING (Override Plugin voor dark mode integratie) --- */
.kr-chat { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.kr-chat-messages { background: rgba(0,0,0,0.2) !important; border: 1px solid var(--border); }
.kr-chat-message { background: rgba(16,62,102,0.4) !important; }
.kr-chat-message.me { background: rgba(45,99,153,0.4) !important; }
.kr-chat-form textarea { background: #050a12 !important; border-color: var(--border) !important; color: #fff !important; }