/* ═══════════════════════════════════════════════════════════
   VERBATIM — The Booth  ·  Styles
═══════════════════════════════════════════════════════════ */

/* ── Ensure [hidden] always wins over display rules ─────── */
[hidden] { display: none !important; }

/* ── Card container ─────────────────────────────────────── */
.hero-booth {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 460px;
  min-width: 0;
}

.booth-card {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* ── Header row ─────────────────────────────────────────── */
.booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.booth-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.booth-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.booth-rec-dot.live {
  background: #EF4444;
  animation: booth-pulse 1s ease infinite;
}
@keyframes booth-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.booth-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.booth-mode {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Scenario chips ─────────────────────────────────────── */
.booth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.booth-chip {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-fast);
  white-space: nowrap;
}
.booth-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.booth-chip.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.booth-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Waveform well ──────────────────────────────────────── */
.booth-wave-well {
  position: relative;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  height: 80px;
  overflow: hidden;
}
.booth-wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.booth-wave-idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* ── Transcript ─────────────────────────────────────────── */
.booth-transcript-area {
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 8px 0;
}
.booth-cue {
  color: var(--text-muted);
  font-style: italic;
}
.booth-filler {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.booth-filler-cut {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.55;
}
.booth-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: booth-blink 0.8s step-start infinite;
}
@keyframes booth-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.booth-listening {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Metrics row ────────────────────────────────────────── */
.booth-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.booth-metric {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.booth-metric-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}
.booth-metric-val.accent { color: var(--gold); }
.booth-metric-label {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ── Footer ─────────────────────────────────────────────── */
.booth-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.booth-ring-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.booth-ring-svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
  overflow: visible;
}
.booth-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booth-ring-score {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}
.booth-btns {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.booth-btn-play,
.booth-btn-mic {
  font-size: 12px;
  padding: 8px 14px;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ── Raw / Refined toggle ───────────────────────────────── */
.booth-refinement {
  display: flex;
  align-items: center;
  gap: 10px;
}
.booth-toggle-seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.booth-seg-btn {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans-fast);
}
.booth-seg-btn + .booth-seg-btn {
  border-left: 1px solid var(--border);
}
.booth-seg-btn.active {
  background: var(--gold);
  color: #fff;
}
.booth-seg-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.booth-hint {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Coaching note ──────────────────────────────────────── */
.booth-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  background: var(--gold-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Focus rings ────────────────────────────────────────── */
.booth-chip:focus-visible,
.booth-btn-play:focus-visible,
.booth-btn-mic:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-booth { flex: 0 0 100%; max-width: 100%; margin-top: 32px; }
  .booth-card { max-width: 100%; }
}
@media (max-width: 500px) {
  .booth-metrics { grid-template-columns: repeat(2, 1fr); }
  .booth-btns { flex-direction: row; }
}

/* ── Private mode overrides ─────────────────────────────── */
html[data-mode="private"] .booth-card {
  background: #1E293B;
  border-color: rgba(255,255,255,0.08);
}
html[data-mode="private"] .booth-wave-well,
html[data-mode="private"] .booth-metric {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.06);
}
