/* ═══════════════════════════════════════════════════════════════════════════
   media-prefs.css — Pre-Session Mic + Camera Toggle Card

   Rendered inside both the interviewer's "Create Interview" dashboard and
   the candidate's "Join Interview" preview page. Uses the same compact
   icon-button style as the in-session toolbar so the affordance is
   consistent across the whole flow: hover a button to reveal its label
   via the native tooltip, click to toggle on/off.
   ═══════════════════════════════════════════════════════════════════════════ */

.li-mp-card {
  margin: 18px 0 8px;
  padding: 14px 16px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2e8f0;
  align-items: center;
  text-align: center;
}
.li-mp-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.li-mp-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #38bdf8;
}
.li-mp-card-hint {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.4;
}

/* Compact icon-button row — matches the in-session toolbar's mic/video
   buttons so the interaction model carries over from pre-session to
   in-session without any relearning. */
.li-mp-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.li-mp-icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.12s ease;
  font-family: inherit;
}
.li-mp-icon-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  color: #f1f5f9;
  transform: translateY(-1px);
}
.li-mp-icon-btn:active {
  transform: translateY(0);
}
.li-mp-icon-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.li-mp-icon-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.li-mp-icon-btn-icon svg { width: 18px; height: 18px; }

/* ── ON state — subtle accent ring, icon in accent colour ─────────── */
.li-mp-icon-btn-on {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18) inset;
}
.li-mp-icon-btn-on:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.75);
  color: #7dd3fc;
}

/* ── OFF state — warning-tinted so it's obvious the device is muted ─ */
.li-mp-icon-btn-off {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}
.li-mp-icon-btn-off:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

.li-mp-note {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 32ch;
}

/* ── Variant tweaks ─────────────────────────────────────────────────── */
.li-mp-card[data-mp-variant="interviewer"] {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .li-mp-icon-btn { transition: none; }
  .li-mp-icon-btn:hover { transform: none; }
}
