/*
Theme Name:  RadioWave
Theme URI:   https://anp.nl
Author:      ANP
Description: Levendig radiostation thema met live player, programmering, nieuws en DJ-pagina's.
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: radiowave
*/

/* ═══════════════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --rw-red:     #FF2D55;
  --rw-orange:  #FF6B35;
  --rw-yellow:  #FFD600;
  --rw-teal:    #00C9B1;
  --rw-purple:  #7B2FFF;
  --rw-dark:    #0D0D0D;
  --rw-dark2:   #161616;
  --rw-dark3:   #1F1F1F;
  --rw-mid:     #2A2A2A;
  --rw-border:  #333;
  --rw-text:    #F0F0F0;
  --rw-muted:   #888;
  --rw-grad:    linear-gradient(135deg, var(--rw-red), var(--rw-orange), var(--rw-yellow));
  --rw-font-display: 'Bebas Neue', sans-serif;
  --rw-font-body:    'Nunito', sans-serif;
  --rw-player-h: 80px;
  --rw-nav-h:    64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rw-font-body);
  background: var(--rw-dark);
  color: var(--rw-text);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: var(--rw-player-h);
}

a { color: var(--rw-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rw-yellow); }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--rw-dark2); }
::-webkit-scrollbar-thumb { background: var(--rw-red); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════ */
.rw-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rw-section   { padding: 60px 0; }
.rw-section-title {
  font-family: var(--rw-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 2px;
  margin-bottom: 8px;
  background: var(--rw-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rw-section-subtitle { color: var(--rw-muted); font-size: 14px; margin-bottom: 40px; }
.rw-badge {
  display: inline-block;
  background: var(--rw-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.rw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.rw-btn-primary {
  background: var(--rw-grad);
  color: #fff;
}
.rw-btn-primary:hover { opacity: .85; transform: translateY(-1px); color: #fff; }
.rw-btn-outline {
  background: transparent;
  border: 2px solid var(--rw-teal);
  color: var(--rw-teal);
}
.rw-btn-outline:hover { background: var(--rw-teal); color: var(--rw-dark); }

/* ═══════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════ */
#rw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--rw-nav-h);
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rw-border);
}

#rw-header .rw-container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

#rw-logo {
  font-family: var(--rw-font-display);
  font-size: 28px;
  letter-spacing: 3px;
  background: var(--rw-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

#rw-nav { flex: 1; }

#rw-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

#rw-nav ul li a {
  display: block;
  padding: 6px 14px;
  color: var(--rw-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 4px;
  transition: all .2s;
}

#rw-nav ul li a:hover,
#rw-nav ul li.current-menu-item > a {
  color: var(--rw-text);
  background: var(--rw-mid);
}

#rw-header-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rw-red);
}

.rw-live-dot {
  width: 8px; height: 8px;
  background: var(--rw-red);
  border-radius: 50%;
  animation: rw-pulse 1.4s ease-in-out infinite;
}

@keyframes rw-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

#rw-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--rw-text);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#rw-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--rw-dark2);
}

#rw-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,45,85,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,201,177,.12) 0%, transparent 50%);
  pointer-events: none;
}

#rw-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}

#rw-hero .rw-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

#rw-hero-text .rw-badge { margin-bottom: 16px; }

#rw-hero h1 {
  font-family: var(--rw-font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

#rw-hero h1 span {
  background: var(--rw-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#rw-hero-desc {
  color: var(--rw-muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
}

#rw-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Now playing card in hero */
#rw-hero-nowplaying {
  background: var(--rw-dark3);
  border: 1px solid var(--rw-border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

#rw-hero-nowplaying::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,45,85,.3), transparent 70%);
  pointer-events: none;
}

.rw-nowplaying-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rw-red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#rw-hero-track-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--rw-mid);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

#rw-hero-track-art img { width: 100%; height: 100%; object-fit: cover; }

.rw-vinyl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
}

.rw-vinyl {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 30%, transparent 30%), conic-gradient(#333, #111, #333, #111, #333);
  animation: rw-spin 4s linear infinite;
}

@keyframes rw-spin { to { transform: rotate(360deg); } }

#rw-hero-track-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
#rw-hero-track-artist { color: var(--rw-muted); font-size: 13px; }

.rw-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 16px;
  height: 32px;
}

.rw-waveform span {
  display: block;
  width: 4px;
  background: var(--rw-red);
  border-radius: 2px;
  animation: rw-wave var(--d, .8s) ease-in-out infinite alternate;
}

@keyframes rw-wave {
  from { height: 4px; opacity: .4; }
  to   { height: var(--h, 20px); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   LIVE PLAYER (sticky bottom)
═══════════════════════════════════════════════ */
#rw-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--rw-player-h);
  background: var(--rw-dark2);
  border-top: 2px solid var(--rw-red);
  z-index: 200;
  display: flex;
  align-items: center;
}

#rw-player .rw-container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

#rw-player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

#rw-player-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--rw-mid);
  flex-shrink: 0;
  overflow: hidden;
}

#rw-player-thumb img { width: 100%; height: 100%; object-fit: cover; }

#rw-player-meta { min-width: 0; }
#rw-player-track { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rw-player-artist { color: var(--rw-muted); font-size: 12px; }

#rw-player-controls { display: flex; align-items: center; gap: 16px; }

#rw-play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rw-grad);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, opacity .2s;
  flex-shrink: 0;
}

#rw-play-btn:hover { transform: scale(1.08); opacity: .9; }

#rw-player-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rw-muted);
  font-size: 16px;
}

#rw-vol-slider {
  -webkit-appearance: none;
  width: 90px;
  height: 4px;
  background: var(--rw-border);
  border-radius: 2px;
  outline: none;
}

#rw-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rw-teal);
  cursor: pointer;
}

#rw-player-station {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rw-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════
   PROGRAMMERING
═══════════════════════════════════════════════ */
#rw-schedule { background: var(--rw-dark2); }

.rw-schedule-days {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.rw-day-btn {
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1px solid var(--rw-border);
  background: var(--rw-dark3);
  color: var(--rw-muted);
  transition: all .2s;
}

.rw-day-btn:hover { border-color: var(--rw-teal); color: var(--rw-teal); }
.rw-day-btn.active { background: var(--rw-red); border-color: var(--rw-red); color: #fff; }

.rw-schedule-grid { display: flex; flex-direction: column; gap: 2px; }

.rw-schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--rw-dark3);
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: border-color .2s, background .2s;
}

.rw-schedule-item:hover { background: var(--rw-mid); border-left-color: var(--rw-teal); }
.rw-schedule-item.live  { border-left-color: var(--rw-red); background: rgba(255,45,85,.06); }

.rw-sch-time { font-family: var(--rw-font-display); font-size: 18px; letter-spacing: 1px; color: var(--rw-teal); }
.rw-sch-title { font-weight: 800; font-size: 15px; }
.rw-sch-host  { color: var(--rw-muted); font-size: 13px; margin-top: 2px; }
.rw-sch-live  { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--rw-red); text-transform: uppercase; }

/* ═══════════════════════════════════════════════
   NIEUWS / BLOG
═══════════════════════════════════════════════ */
#rw-news { background: var(--rw-dark); }

.rw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rw-news-card {
  background: var(--rw-dark3);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rw-border);
  transition: transform .25s, border-color .25s;
}

.rw-news-card:hover { transform: translateY(-4px); border-color: var(--rw-teal); }

.rw-news-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--rw-mid);
}

.rw-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rw-news-card:hover .rw-news-thumb img { transform: scale(1.06); }

.rw-news-body { padding: 20px; }
.rw-news-cat  { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--rw-orange); text-transform: uppercase; margin-bottom: 8px; }
.rw-news-title { font-weight: 800; font-size: 16px; line-height: 1.35; margin-bottom: 10px; }
.rw-news-title a { color: var(--rw-text); }
.rw-news-title a:hover { color: var(--rw-yellow); }
.rw-news-excerpt { color: var(--rw-muted); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.rw-news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--rw-muted); }
.rw-news-meta span::before { content: '·'; margin-right: 10px; }
.rw-news-meta span:first-child::before { content: ''; margin: 0; }

/* ═══════════════════════════════════════════════
   DJ / PRESENTATOREN
═══════════════════════════════════════════════ */
#rw-djs { background: var(--rw-dark2); }

.rw-dj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rw-dj-card {
  background: var(--rw-dark3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rw-border);
  text-align: center;
  transition: transform .25s, border-color .25s;
  position: relative;
}

.rw-dj-card:hover { transform: translateY(-6px); border-color: var(--rw-purple); }

.rw-dj-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--rw-mid);
  position: relative;
}

.rw-dj-photo img { width: 100%; height: 100%; object-fit: cover; }

.rw-dj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.9) 0%, transparent 60%);
}

.rw-dj-body { padding: 16px; }
.rw-dj-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.rw-dj-show { color: var(--rw-purple); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.rw-dj-time { color: var(--rw-muted); font-size: 12px; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#rw-footer {
  background: var(--rw-dark2);
  border-top: 1px solid var(--rw-border);
  padding: 48px 0 24px;
}

.rw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.rw-footer-logo {
  font-family: var(--rw-font-display);
  font-size: 32px;
  letter-spacing: 3px;
  background: var(--rw-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.rw-footer-desc { color: var(--rw-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.rw-social-links { display: flex; gap: 10px; }
.rw-social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--rw-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--rw-muted);
  transition: all .2s;
}
.rw-social-links a:hover { background: var(--rw-red); color: #fff; }

.rw-footer-title { font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--rw-muted); margin-bottom: 16px; }
.rw-footer-links { list-style: none; }
.rw-footer-links li { margin-bottom: 8px; }
.rw-footer-links a { color: var(--rw-muted); font-size: 14px; transition: color .2s; }
.rw-footer-links a:hover { color: var(--rw-text); }

.rw-footer-bottom {
  border-top: 1px solid var(--rw-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--rw-muted);
}

/* ═══════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════ */
.rw-single { max-width: 780px; margin: 60px auto; padding: 0 20px; }
.rw-single h1 { font-family: var(--rw-font-display); font-size: clamp(2rem,5vw,3.5rem); letter-spacing: 2px; margin-bottom: 20px; }
.rw-single .rw-post-meta { color: var(--rw-muted); font-size: 13px; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.rw-single .rw-post-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; }
.rw-single .rw-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rw-post-content { font-size: 17px; line-height: 1.85; }
.rw-post-content h2,.rw-post-content h3 { font-family: var(--rw-font-display); letter-spacing: 1px; margin: 32px 0 12px; }
.rw-post-content p { margin-bottom: 20px; }
.rw-post-content a { color: var(--rw-teal); text-decoration: underline; }
.rw-post-content blockquote { border-left: 4px solid var(--rw-red); padding-left: 20px; color: var(--rw-muted); font-style: italic; margin: 24px 0; }

/* ═══════════════════════════════════════════════
   DJ SINGLE
═══════════════════════════════════════════════ */
.rw-dj-single { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.rw-dj-single-header { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.rw-dj-single-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.rw-dj-single-photo img { width: 100%; height: 100%; object-fit: cover; }
.rw-dj-single-name { font-family: var(--rw-font-display); font-size: clamp(2.5rem,5vw,4rem); letter-spacing: 3px; margin-bottom: 8px; }
.rw-dj-single-show { font-size: 18px; color: var(--rw-purple); font-weight: 700; margin-bottom: 16px; }
.rw-dj-single-bio { color: var(--rw-muted); line-height: 1.8; }

/* ═══════════════════════════════════════════════
   WIDGETS / SIDEBAR
═══════════════════════════════════════════════ */
.widget { background: var(--rw-dark3); border-radius: 10px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--rw-border); }
.widget-title { font-family: var(--rw-font-display); font-size: 20px; letter-spacing: 1px; margin-bottom: 16px; color: var(--rw-teal); }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--rw-border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .rw-dj-grid { grid-template-columns: repeat(2,1fr); }
  .rw-news-grid { grid-template-columns: repeat(2,1fr); }
  .rw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #rw-hero .rw-container { grid-template-columns: 1fr; }
  #rw-hero-nowplaying { display: none; }
  #rw-nav { display: none; }
  #rw-nav.open { display: block; position: fixed; top: var(--rw-nav-h); left: 0; right: 0; background: var(--rw-dark2); padding: 16px; z-index: 99; }
  #rw-nav.open ul { flex-direction: column; }
  #rw-hamburger { display: block; }
  .rw-dj-grid, .rw-news-grid { grid-template-columns: 1fr; }
  .rw-footer-grid { grid-template-columns: 1fr; }
  #rw-player-vol, #rw-player-station { display: none; }
  .rw-schedule-item { grid-template-columns: 80px 1fr; }
  .rw-sch-live { display: none; }
  .rw-dj-single-header { grid-template-columns: 1fr; }
}
