/* ============================================================
   KampsjaakFM v3 — app.css (clean)
   ============================================================ */

:root { --maxw: 1280px; }
* { box-sizing: border-box; }
a { color: inherit; }

/* =========================
   BODY / BACKGROUND
========================= */
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.35;

  /* gebruik RELATIEF pad als je v3/v99test wil kunnen kopiëren */
  background-image: url('../assets/bg.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  background-attachment: fixed; /* desktop */
  background-color: #2a1d4f;    /* fallback */
}

@media (max-width: 900px){
  body{
    background-attachment: scroll;
    background-position: center top;
  }
}

/* =========================
   TOPBAR (PLAYER)
========================= */
.topbar{
  position: sticky;
  top: 10px;
  z-index: 1000;
  background: transparent;
  color: #fff;
}

.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 12px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;

  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.dj-badge {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
}
/* Play + volume naast elkaar, badge eronder */
.topbar .controls.left{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* DJ badge altijd op nieuwe regel */
#djBadge{
  flex: 0 0 100% !important;
  margin-top: 4px;
}

/* controls helemaal rechts in de topbar */
.topbar .controls.left{
  margin-left: auto !important;
  justify-content: flex-end !important;

  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;

  gap: 6px !important;          /* minder ruimte tussen play/volume */
  padding: 0 !important;        /* minder hoogte */
  line-height: 1 !important;
}

/* volume slider iets compacter (optioneel) */
#volume{
  height: 18px;
}

/* badge strak onder controls, geen extra hoogte */
#djBadge{
  flex: 0 0 100% !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  text-align: right;
}





/* Logo */
.brand{
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.brand .logo{
  height: 60px;
  display: block;
}

/* Now playing */
#nowPlaying{
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 18px;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;

  padding: 0;
  margin: 0;
}

#nowPlaying .text{
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

#nowPlaying .note{
  color: #b36bff;
  font-size: 22px;
  text-shadow:
    0 0 4px rgba(179,107,255,0.8),
    0 0 8px rgba(179,107,255,0.6),
    0 0 14px rgba(179,107,255,0.4);
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse{
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Controls */
.controls{
  display: flex;
  gap: 8px;
  align-items: center;
}

.controls.left{
  justify-content: flex-start;
}

.controls input[type="range"]{
  width: 120px;
  height: 6px;
  cursor: pointer;
}

/* Buttons (globaal) */
button{
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

button:active{ transform: translateY(1px); }

/* Play button accent + pulse */
#btnPlay{
  background: #0b2a6f;
  border: 1px solid rgba(255,255,255,.25);
}

#btnPlay.pulse{
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse{
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(11,42,111,.7); }
  70%  { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(11,42,111,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(11,42,111,0); }
}

@media (prefers-reduced-motion: reduce){
  #btnPlay.pulse{ animation: none; }
}

/* =========================
   MENUBAR
========================= */
.menubar{
  position: sticky;
  top: 90px;
  z-index: 999;
  background: transparent;
}

.menubar-inner{
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 6px 10px;

  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.menu-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 5px 9px;
  line-height: 1;

  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;

  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);

  font-weight: 600;
  font-size: 14px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.menu-icon{
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 0;

  transition: filter 0.2s ease;
}

.menu-item:hover{
  background: rgba(95, 20, 160, 0.85);
  border-color: rgba(200, 140, 255, 1);
  color: #fff;
}

.menu-item:hover .menu-icon{
  filter:
    drop-shadow(0 0 10px rgba(200,140,255,1))
    drop-shadow(0 0 20px rgba(160,90,255,0.9))
    brightness(1.35)
    saturate(1.4);
}

.menu-item.active{
  background: rgba(75, 10, 130, 0.9);
  border-color: rgba(220, 170, 255, 1);
}

/* =========================
   LAYOUT / VIEWS
========================= */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 12px;
}

.view{ display: none; }
.view.active{ display: block; }

/* Base card (dark glass) */
.card{
  margin-top: 14px;
  padding: 14px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
}

/* =========================
   HOME
========================= */
.home-hero-full{
  width: 100%;
  padding: 24px 0 18px;
}

.home-hero-inner {
  max-width: 100%;
  padding: 0 12px;
}



/* grote hero card */
.home-hero-card{
	max-width: var(--maxw);
  margin: 0 auto;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.28);

  box-shadow:
    0 25px 70px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.55);

  padding: 18px;
}


.home-hero-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.home-hero-text{ color: #111; }

.home-hero-text h1,
.home-hero-text h2{ color: #111; }

.home-hero-text p,
.home-hero-text li{ color: rgba(0,0,0,0.88); }

 

.home-hero-text h2{
  margin: 18px 0 8px;
  color: #fff;
}

.home-hero-text p,
.home-hero-text li{
  color: rgba(255,255,255,0.95);
}

.home-hero-text ul{
  margin: 10px 0 0 20px;
}

/* grote foto */
.home-hero-image{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);

  height: 520px;
}

.home-hero-image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-cta{
  margin-top: 14px;

  background: rgba(0,0,0,0.60) !important;
  color: #fff !important;

  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 22px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.home-cta {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.25);
}

.home-cta .home-cta-title,
.home-cta .home-cta-sub{
  color: #fff !important;
}

.home-cta .home-cta-sub{ opacity: 0.85; }


.home-cta .home-cta-title,
.home-cta .home-cta-sub{
  color: #111 !important;
}

.home-cta .home-cta-sub{ opacity: 0.85; }

.home-cta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Home – Direct luisteren balk: tekst wit */
.home-cta-row,
.home-cta-row * {
  color: #ffffff;
}
.home-cta {
  color: #ffffff;
}

.home-cta * {
  color: #ffffff;
}



.home-cta-title{
  font-weight: 800;
  font-size: 16px;
}

.home-cta-sub{
  font-size: 13px;
  margin-top: 2px;
}

/* CTA button */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(220,170,255,1);
  background: rgba(75, 10, 130, 0.9);
  white-space: nowrap;
}

.btn:hover{
  background: rgba(95, 20, 160, 0.95);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 520px){
  .topbar-inner{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand .logo{ height: 28px; }

  #nowPlaying{ font-size: 12px; }
  #nowPlaying .note{ font-size: 18px; }

  .controls{ justify-content: space-between; }

  button{ width: 100%; }
  .controls{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .controls.left{
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .controls input[type="range"]{ width: 100%; }

  .menubar{ top: 64px; }
  .menu-item{ font-size: 13px; padding: 8px 9px; }
  .menu-icon{ width: 16px; height: 16px; }
}

@media (max-width: 900px){
  .home-hero-grid{ grid-template-columns: 1fr; }
  .home-hero-image{ height: 360px; }

  /* hero iets lichter op mobiel */
  .home-hero-card{
    background: linear-gradient(
      135deg,
      rgba(70, 35, 110, 0.78),
      rgba(45, 22, 80, 0.78)
    );
    border-color: rgba(255,255,255,0.22);
  }

  .home-cta-row{
    flex-direction: column;
    align-items: stretch;
  }

  .btn{ width: 100%; }
}

/* FORCEER home hero tekstkleuren */
.home-hero-card,
.home-hero-card * {
  color: #111 !important;
}

.home-hero-card h1,
.home-hero-card h2 {
  color: #111 !important;
}

.home-hero-card p,
.home-hero-card li {
  color: rgba(0,0,0,0.9) !important;
}

/* FIX: Home CTA tekst altijd wit */
.home-cta,
.home-cta * {
  color: #ffffff !important;
}

.home-cta .muted {
  opacity: 0.85;
}


/* Home CTA: altijd wit, ongeacht card overrides */
.home-cta {
  color: #ffffff;
}

.home-cta *,
.home-cta .home-cta-title,
.home-cta .home-cta-sub {
  color: #ffffff !important;
}

.home-cta .home-cta-sub {
  opacity: 0.85;
}




/* ============================
   PLAYLIST VIEW (v3)
   ============================ */

/* Basis tekstkleur + consistentie */
#view-playlist {
  color: #fff; /* past bij je theme; haal weg als je site geen witte tekst gebruikt */
}

#view-playlist table,
#view-playlist th,
#view-playlist td {
  color: inherit;
}

/* Header tekst (niet home-cta classes gebruiken) */
#view-playlist .playlist-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

#view-playlist .playlist-sub {
  opacity: 0.85;
}

/* Tabel layout */
#view-playlist .playlist-table {
  width: 100%;
  table-layout: fixed;         /* vaste kolombreedtes */
  border-collapse: collapse;   /* borders netjes */
}

/* Kopjes: altijd links */
#view-playlist .playlist-table th {
  text-align: left !important;
  font-weight: 700;
}

/* Cellen: afbreken toegestaan */
#view-playlist .playlist-table td,
#view-playlist .playlist-table th {
  white-space: normal;
  overflow-wrap: anywhere;     /* lange woorden/namen breken */
}

/* DJ-kolom (1e) en Tijd-kolom (optioneel) */
#view-playlist .playlist-table td.time,
#view-playlist .playlist-table th.time {
  white-space: nowrap;
}

#view-playlist .playlist-table td.dj,
#view-playlist .playlist-table th.dj {
  white-space: nowrap;
}

/* Dunne paarse lijntjes tussen rijen */
#view-playlist .playlist-table tbody td {
  border-bottom: 1px solid rgba(200, 150, 255, 0.35);
}

/* Kleine padding als jouw theme dat niet al doet */
#view-playlist .playlist-table th,
#view-playlist .playlist-table td {
  padding: 8px 10px;
}
