/* MicroPod Studio — custom styles on top of Tailwind CDN */

.btn-primary {
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 0.9rem;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  box-shadow: 0 6px 20px -6px rgba(16, 185, 129, .6);
}
.btn-primary:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-primary:disabled { box-shadow: none; }

.btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #e2e8f0;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 0.9rem;
  transition: background .12s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,.14); }

.btn-ghost {
  color: #94a3b8;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}
.btn-ghost:hover { color: #e2e8f0; background: rgba(255,255,255,.06); }

/* Stepper states (set via JS by adding .step-active / .step-done) */
.step { color: #64748b; }
.step.step-active { background: #10b981; color: #04231a; }
.step.step-done { color: #6ee7b7; }

/* Member inputs / question cards */
.member-input {
  width: 100%;
  border-radius: 0.75rem;
  background: rgba(11,16,32,.6);
  border: 1px solid rgba(255,255,255,.1);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}
.member-input:focus { outline: none; box-shadow: 0 0 0 2px #10b981; }

.age-btn {
  padding: 0.4rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
}
.age-btn.active { background: #10b981; color: #04231a; }

.question-card {
  text-align: right;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.question-card:hover { border-color: #6ee7b7; }
.question-card.selected { border-color: #10b981; background: rgba(16,185,129,.12); }
.question-card .concepts { color: #94a3b8; font-size: .78rem; margin-top: .4rem; }

/* Chat bubbles */
.bubble { max-width: 85%; padding: .6rem .85rem; border-radius: 1rem; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; }
.bubble-bot  { background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3); align-self: flex-start; border-bottom-right-radius: .25rem; }
.bubble-user { background: rgba(255,255,255,.1); align-self: flex-end; border-bottom-left-radius: .25rem; }
.bubble-row { display: flex; }
.bubble-row.user { justify-content: flex-end; }

/* Record button */
.record-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem; border-radius: 999px; font-size: 1.1rem;
  background: rgba(244,63,94,.15); border: 2px solid rgba(244,63,94,.5);
  color: #fecdd3; transition: transform .12s ease;
}
.record-btn:hover { transform: scale(1.03); }
.record-btn.recording { background: rgba(244,63,94,.3); border-color: #f43f5e; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,.5); } 50% { box-shadow: 0 0 0 14px rgba(244,63,94,0); } }

#timer.warning { color: #fbbf24; }
#timer.danger  { color: #f43f5e; }

/* Soundboard pads */
.pad {
  padding: 1rem .5rem; border-radius: 1rem; font-weight: 700; font-size: .9rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: transform .08s ease, background .12s ease; display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.pad:hover { background: rgba(255,255,255,.12); }
.pad:active, .pad.playing { transform: scale(.95); background: rgba(16,185,129,.25); border-color: #10b981; }
.pad .emoji { font-size: 1.6rem; }

.screen { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Script builder (research screen) ---- */
.speaker-add {
  --sp: #10b981;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 700; color: var(--sp);
  border: 1px solid color-mix(in srgb, var(--sp) 45%, transparent);
  background: color-mix(in srgb, var(--sp) 12%, transparent);
  padding: .35rem .7rem; border-radius: 999px; transition: background .12s ease;
}
.speaker-add:hover { background: color-mix(in srgb, var(--sp) 22%, transparent); }

.script-block {
  --sp: #10b981;
  border: 1px solid rgba(255,255,255,.1);
  border-right: 3px solid var(--sp);
  background: rgba(11,16,32,.45);
  border-radius: .75rem; padding: .55rem .7rem;
}
.script-block-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.sp-dot { width: .6rem; height: .6rem; border-radius: 999px; background: var(--sp); }
.sp-name { font-size: .82rem; font-weight: 700; color: var(--sp); }
.sp-del { margin-inline-start: auto; color: #64748b; font-size: .8rem; line-height: 1; padding: .15rem .35rem; border-radius: .4rem; }
.sp-del:hover { color: #f43f5e; background: rgba(244,63,94,.1); }
.script-block-text {
  width: 100%; resize: vertical; min-height: 2.6rem;
  background: transparent; border: none; color: #e2e8f0;
  font-size: .9rem; line-height: 1.6;
}
.script-block-text:focus { outline: none; }

/* ---- Read-along script (studio screen) ---- */
.read-block {
  --sp: #10b981;
  border-right: 3px solid var(--sp);
  background: rgba(255,255,255,.04);
  border-radius: .6rem; padding: .5rem .75rem;
}
.read-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; }
.read-check { font-size: 1.05rem; line-height: 1; padding: .1rem; border-radius: .35rem; }
.read-check:hover { background: rgba(255,255,255,.08); }
.read-speaker { font-weight: 800; color: var(--sp); font-size: .85rem; }
.read-edit {
  width: 100%; background: transparent; border: none; color: #e2e8f0;
  font-size: .95rem; line-height: 1.6; resize: vertical; white-space: pre-wrap;
}
.read-edit:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp) 50%, transparent); border-radius: .4rem; }
.read-block.done { opacity: .55; }
.read-block.done .read-speaker { text-decoration: line-through; }

.pad-music { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }

/* ---- Voice effect buttons ---- */
.voice-btn {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .55rem .3rem; border-radius: .8rem; font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #cbd5e1;
  transition: background .12s ease, transform .08s ease;
}
.voice-btn .emoji { font-size: 1.3rem; }
.voice-btn:hover { background: rgba(255,255,255,.12); }
.voice-btn.active { background: rgba(56,189,248,.2); border-color: #38bdf8; color: #e0f2fe; }
