/* WILDFM Radio Studio — donker studio-thema, touch geschikt, leesbaar op afstand. */

:root {
  --bg: #07090d;
  --panel: #0d1117;
  --panel-2: #11161f;
  --line: #1d2634;
  --text: #e8edf4;
  --muted: #8b98a9;
  --accent: #4fcef3;
  --onair: #e74c3c;
  --ok: #2ecc71;
  --warn: #f39c12;
  --layer-0: #f39c12;
  --layer-1: #4fcef3;
  --layer-2: #9b8cff;
  --layer-3: #e67e22;
  --radius: 14px;
  --touch: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth screen ────────────────────────────────────────────────────────── */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.auth-brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.auth-brand em {
  color: var(--accent);
  font-style: normal;
}

.auth-sub {
  color: var(--muted);
  margin: 12px 0 28px;
}

/* ── App shell ──────────────────────────────────────────────────────────── */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid var(--onair);
  display: inline-block;
}

.brand-name em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.onair-label {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--muted);
}

.onair-label.is-onair { color: var(--onair); }

.studio-clock {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name { color: var(--muted); }

.role-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
}

/* ── Navigatie ──────────────────────────────────────────────────────────── */

.studio-nav {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  overflow-x: auto;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.studio-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 10px;
  white-space: nowrap;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.studio-nav a:hover { background: var(--panel-2); color: var(--text); }

.studio-nav a.is-active {
  background: var(--accent-dim, rgba(79, 206, 243, 0.12));
  color: var(--accent);
}

.studio-nav a.nav-hidden { display: none; }

/* ── Main ───────────────────────────────────────────────────────────────── */

.studio-main {
  flex: 1;
  padding: 22px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.hz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* ── Kaarten ────────────────────────────────────────────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-deny { border-color: var(--warn); }

/* ── Now Playing ────────────────────────────────────────────────────────── */

.np-grid {
  display: flex;
  gap: 22px;
  align-items: center;
}

.np-cover {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.np-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--muted);
}

.np-artist {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.np-title {
  font-size: 22px;
  color: var(--text);
  opacity: 0.9;
  margin-top: 4px;
}

.np-times {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.np-remain strong {
  color: var(--text);
  font-size: 20px;
}

.np-progress {
  height: 10px;
  border-radius: 6px;
  background: var(--panel-2);
  margin-top: 14px;
  overflow: hidden;
}

.np-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--layer-1), var(--layer-2));
  transition: width 1s linear;
}

/* ── Chips ──────────────────────────────────────────────────────────────── */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chip-ok { border-color: rgba(46, 204, 113, 0.5); color: var(--ok); }
.chip-warn { border-color: rgba(243, 156, 18, 0.6); color: var(--warn); }

.chip-layer-0 { border-color: var(--layer-0); color: var(--layer-0); }
.chip-layer-1 { border-color: var(--layer-1); color: var(--layer-1); }
.chip-layer-2 { border-color: var(--layer-2); color: var(--layer-2); }
.chip-layer-3 { border-color: var(--layer-3); color: var(--layer-3); }

/* ── LED's ──────────────────────────────────────────────────────────────── */

.led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background: #2a3444;
  flex: 0 0 auto;
}

.led-onair {
  background: var(--onair);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

.led-off { background: #3a4656; }

.led-ok { background: var(--ok); }
.led-warn { background: var(--warn); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Queue / historie lijsten ───────────────────────────────────────────── */

.queue-list, .hist-list, .nw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.queue-list { counter-reset: q; }

.queue-list li, .hist-list li, .nw-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 17px;
}

.hist-list li, .nw-list li { list-style: none; }

.q-pos {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-dim, rgba(79, 206, 243, 0.12));
  color: var(--accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.q-main, .hist-main { flex: 1; }

.q-dur, .hist-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}

/* ── Jingle wall ────────────────────────────────────────────────────────── */

.jw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.jw-btn {
  min-height: 96px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
}

.jw-btn:hover { border-color: var(--accent); }

.jw-btn:active, .jw-btn.jw-firing {
  transform: scale(0.97);
  box-shadow: 0 0 0 4px rgba(79, 206, 243, 0.25);
}

.jw-emergency {
  border-color: rgba(231, 76, 60, 0.6);
  color: var(--onair);
}

.jw-falcon { border-color: rgba(243, 156, 18, 0.6); color: var(--warn); }

/* ── Monitoring ─────────────────────────────────────────────────────────── */

.big-num {
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Notes ──────────────────────────────────────────────────────────────── */

.notes-area {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}

.notes-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

/* ── Knoppen ────────────────────────────────────────────────────────────── */

.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04121a;
  font-weight: 800;
}

.btn-ghost { background: transparent; }

/* ── Statusbar ──────────────────────────────────────────────────────────── */

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

/* ── Toasts ─────────────────────────────────────────────────────────────── */

.toast-region {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.toast {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.toast-error { border-color: rgba(231, 76, 60, 0.6); }

.toast-out { opacity: 0; transition: opacity 0.6s; }

.muted { color: var(--muted); }

/* ── Focus (toetsenbord) ────────────────────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .np-grid { flex-direction: column; align-items: flex-start; }
  .np-cover { width: 112px; height: 112px; }
  .np-artist { font-size: 26px; }
  .studio-main { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .led-onair { animation: none; }
  .np-bar { transition: none; }
  .jw-btn { transition: none; }
}

/* ── Aanvullende componenten ────────────────────────────────────────────── */

.auth-error {
  color: var(--onair);
  margin-top: 14px;
  font-size: 15px;
}

.auth-foot {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.btn-small { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.btn-large { min-height: 64px; font-size: 18px; width: 100%; }

.statusbar-item { display: inline-flex; align-items: center; gap: 8px; }
.statusbar-right { font-variant-numeric: tabular-nums; }

.empty-state {
  color: var(--muted);
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 16px;
}

.state-error {
  color: var(--onair);
  padding: 14px 16px;
  border: 1px solid rgba(231, 76, 60, 0.5);
  border-radius: 10px;
  background: rgba(231, 76, 60, 0.08);
}

.np-meta { flex: 1; min-width: 0; }

.jw-label { display: block; letter-spacing: 0.1em; }

.jw-last { font-size: 16px; }

.hz-card { display: flex; flex-direction: column; gap: 10px; }
.hz-now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.empty-state { color: var(--muted); }
.state-error { font-weight: 600; }

/* np-meta / np-art / jw-label / hz-card / hz-now / empty-state / state-error
   zijn gedefinieerd in de eerdere secties van dit bestand. */
