/* components.css — MyPod Component Styles */

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--mypod-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base),
              box-shadow var(--transition-base), opacity var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--mypod-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--mypod-primary-hover); color: #fff; }

.btn-accent {
  background: var(--mypod-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--mypod-accent-hover); color: #fff; }

.btn-secondary {
  background: var(--mypod-surface);
  color: var(--mypod-text);
  border: 1px solid var(--mypod-border);
}
.btn-secondary:hover {
  background: var(--mypod-surface-secondary);
  border-color: var(--mypod-text-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--mypod-text-secondary);
}
.btn-ghost:hover {
  background: var(--mypod-surface-secondary);
  color: var(--mypod-text);
}

.btn-danger {
  background: var(--mypod-danger);
  color: #fff;
}
.btn-danger:hover { background: #DC2626; color: #fff; }

.btn-success {
  background: var(--mypod-success);
  color: #fff;
}
.btn-success:hover { background: #10B981; color: #fff; }

.btn-lg {
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-base);
  border-radius: var(--mypod-radius-md);
}

.btn-sm {
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--text-xs);
}

.btn-icon {
  padding: var(--sp-2);
  border-radius: var(--mypod-radius-sm);
}

/* Locked button state (listen-first review) */
.btn.btn-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading state */
.btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

/* HTMX loading state — show spinner, mute button during request */
.btn.htmx-request {
  pointer-events: none;
  opacity: 0.7;
}
.btn.htmx-request .btn-label {
  visibility: hidden;
}
.btn.htmx-request .btn-spinner {
  display: inline-block;
  position: absolute;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--mypod-surface);
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--mypod-primary);
  box-shadow: var(--mypod-shadow-sm);
}

.card-clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-status-stripe {
  border-left: 3px solid transparent;
}
.card-status-stripe.status-green { border-left-color: var(--mypod-success); }
.card-status-stripe.status-amber { border-left-color: var(--mypod-warning); }
.card-status-stripe.status-red { border-left-color: var(--mypod-danger); }
.card-status-stripe.status-gray { border-left-color: var(--mypod-border); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.card-body { margin-bottom: var(--sp-3); }
.card-body:last-child { margin-bottom: 0; }

.card-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--mypod-border);
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--mypod-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.badge-success { background: var(--mypod-success-light); color: #059669; }
.badge-warning { background: var(--mypod-warning-light); color: #B45309; }
.badge-danger { background: var(--mypod-danger-light); color: #DC2626; }
.badge-info { background: var(--mypod-info-light); color: #2563EB; }
.badge-muted { background: var(--mypod-surface-secondary); color: var(--mypod-text-secondary); }
.badge-primary { background: var(--mypod-primary-light); color: var(--mypod-primary); }

/* ============================================
   Avatar
   ============================================ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mypod-radius-full);
  font-weight: var(--weight-semibold);
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: var(--text-xs); }
.avatar-md { width: 36px; height: 36px; font-size: var(--text-sm); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-base); }

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar initials backgrounds — deterministic by first letter */
.avatar-a, .avatar-j, .avatar-s { background: var(--mypod-primary); }
.avatar-b, .avatar-k, .avatar-t { background: #EC4899; }
.avatar-c, .avatar-l, .avatar-u { background: var(--mypod-accent); }
.avatar-d, .avatar-m, .avatar-v { background: #F59E0B; }
.avatar-e, .avatar-n, .avatar-w { background: var(--mypod-success); }
.avatar-f, .avatar-o, .avatar-x { background: #8B5CF6; }
.avatar-g, .avatar-p, .avatar-y { background: var(--mypod-info); }
.avatar-h, .avatar-q, .avatar-z { background: #06B6D4; }
.avatar-i, .avatar-r { background: #F97316; }

/* Status ring around avatar */
.avatar-ring {
  box-shadow: 0 0 0 2px var(--mypod-surface), 0 0 0 4px var(--mypod-border);
}
.avatar-ring.ring-success {
  box-shadow: 0 0 0 2px var(--mypod-surface), 0 0 0 4px var(--mypod-success);
}
.avatar-ring.ring-warning {
  box-shadow: 0 0 0 2px var(--mypod-surface), 0 0 0 4px var(--mypod-warning);
}

/* ============================================
   Progress Ring (SVG)
   ============================================ */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--mypod-border);
}

.progress-ring-fill {
  fill: none;
  stroke: var(--mypod-primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 500ms ease;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--mypod-surface-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--mypod-primary);
  border-radius: 4px;
  transition: width 500ms ease;
}

.progress-bar-fill.bar-success { background: var(--mypod-success); }
.progress-bar-fill.bar-warning { background: var(--mypod-warning); }

/* ============================================
   Tabs
   ============================================ */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--mypod-border);
  margin-bottom: var(--sp-6);
}

.tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--mypod-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.tab:hover { color: var(--mypod-text); }

.tab.active {
  color: var(--mypod-primary);
  border-bottom-color: var(--mypod-primary);
  font-weight: var(--weight-semibold);
}

.tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mypod-success);
}

/* ============================================
   Toast / Flash Messages
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--mypod-surface);
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  box-shadow: var(--mypod-shadow-md);
  font-size: var(--text-sm);
  pointer-events: auto;
  animation: slideInRight 200ms ease-out;
  max-width: 360px;
}

.toast-success { border-left: 3px solid var(--mypod-success); }
.toast-error { border-left: 3px solid var(--mypod-danger); }
.toast-info { border-left: 3px solid var(--mypod-info); }

.toast-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--mypod-text-secondary);
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
  padding: 0 0 0 var(--sp-2);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 150ms ease;
}

.modal {
  background: var(--mypod-surface);
  border-radius: var(--mypod-radius-lg);
  box-shadow: var(--mypod-shadow-lg);
  padding: var(--sp-6);
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeInUp 200ms ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.modal-header h3 { margin: 0; }

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--mypod-text-secondary);
  cursor: pointer;
  padding: var(--sp-1);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

/* ============================================
   Stepper
   ============================================ */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.stepper-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mypod-border);
  transition: background var(--transition-base);
}

.stepper-dot.active { background: var(--mypod-primary); }
.stepper-dot.completed { background: var(--mypod-primary); }

.stepper-line {
  width: 24px;
  height: 2px;
  background: var(--mypod-border);
}

.stepper-line.completed { background: var(--mypod-primary); }

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
}

.empty-state-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
}

.empty-state-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.empty-state-description {
  color: var(--mypod-text-secondary);
  margin-bottom: var(--sp-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton {
  background: linear-gradient(90deg,
    var(--mypod-surface-secondary) 25%,
    var(--mypod-border) 50%,
    var(--mypod-surface-secondary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--mypod-radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: var(--sp-2); }
.skeleton-text:last-child { width: 60%; }
.skeleton-heading { height: 24px; width: 40%; margin-bottom: var(--sp-4); }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: var(--mypod-radius-md); }

/* ============================================
   Mic Level Indicator
   ============================================ */
.mic-level {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.mic-level-icon {
  font-size: var(--text-lg);
  color: var(--mypod-text-secondary);
}

.mic-level-bar-track {
  flex: 1;
  height: 6px;
  background: var(--mypod-surface-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.mic-level-bar-fill {
  height: 100%;
  background: var(--mypod-success);
  border-radius: 3px;
  transition: width 50ms ease;
  width: 0%;
}

/* ============================================
   Waveform Orb (Interview)
   ============================================ */
.waveform-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--mypod-audio-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: box-shadow 300ms ease;
}

.waveform-orb.speaking {
  box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.1),
              0 0 0 16px rgba(167, 139, 250, 0.05);
  animation: orbPulse 1.5s ease-in-out infinite;
}

.waveform-orb.listening {
  animation: orbBreath 3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.15), 0 0 0 16px rgba(167, 139, 250, 0.05); }
  50% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0.2), 0 0 0 24px rgba(167, 139, 250, 0.08); }
}

@keyframes orbBreath {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}

.waveform-orb canvas {
  border-radius: 50%;
}

/* ============================================
   Audio Player (Episode)
   ============================================ */
.audio-player {
  background: var(--mypod-surface);
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-4);
}

.audio-player-waveform {
  margin-bottom: var(--sp-3);
  border-radius: var(--mypod-radius-sm);
  overflow: hidden;
}

.audio-player-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.audio-player-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mypod-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: background var(--transition-base);
  flex-shrink: 0;
}

.audio-player-play:hover { background: var(--mypod-primary-hover); }

.audio-player-time {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--mypod-text-secondary);
  min-width: 45px;
}

.audio-player-scrubber {
  flex: 1;
  height: 4px;
  background: var(--mypod-surface-secondary);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.audio-player-scrubber-fill {
  height: 100%;
  background: var(--mypod-primary);
  border-radius: 2px;
  position: relative;
}

.audio-player-scrubber-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mypod-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.audio-player-scrubber:hover .audio-player-scrubber-fill::after {
  opacity: 1;
}

/* Chapter list */
.chapter-list {
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  overflow: hidden;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--mypod-border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chapter-item:last-child { border-bottom: none; }
.chapter-item:hover { background: var(--mypod-surface-secondary); }
.chapter-item.active { background: var(--mypod-primary-light); }

.chapter-time {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--mypod-text-secondary);
  min-width: 40px;
}

.chapter-title {
  flex: 1;
  font-size: var(--text-sm);
}

/* Transcript */
.transcript {
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-4);
  max-height: 400px;
  overflow-y: auto;
}

.transcript-line {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--mypod-radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.transcript-line:hover { background: var(--mypod-surface-secondary); }
.transcript-line.active { background: var(--mypod-primary-light); }

.transcript-speaker {
  font-weight: var(--weight-semibold);
  margin-right: var(--sp-1);
}

.transcript-clip {
  border-left: 2px solid var(--mypod-audio);
  padding-left: var(--sp-2);
  background: var(--mypod-audio-light);
}

/* ============================================
   Form Groups
   ============================================ */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
  margin-top: var(--sp-1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--mypod-danger);
  margin-top: var(--sp-1);
}

/* Selectable cards (for group type, schedule, etc.) */
.select-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
}

.select-card {
  border: 2px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.select-card:hover { border-color: var(--mypod-primary); }

.select-card.selected {
  border-color: var(--mypod-primary);
  background: var(--mypod-primary-light);
}

.select-card-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-2);
}

.select-card-label {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--sp-1);
}

.select-card-description {
  font-size: var(--text-xs);
  color: var(--mypod-text-secondary);
}

/* Hidden radio inside select-card */
.select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* When label is used as select-card, reset label defaults */
label.select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  position: relative;
}

/* ============================================
   Danger Zone
   ============================================ */
.danger-zone {
  border: 1px solid var(--mypod-danger-light);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-4);
  margin-top: var(--sp-8);
}

.danger-zone h4 {
  color: var(--mypod-danger);
  margin-bottom: var(--sp-2);
}

/* ============================================
   Member List (avatar-based, not table)
   ============================================ */
.member-list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--mypod-radius-sm);
  transition: background var(--transition-fast);
}

.member-list-item:hover { background: var(--mypod-surface-secondary); }

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-weight: var(--weight-medium);
}

.member-role {
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
}

.member-status {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
}

/* ============================================
   Status Dot
   ============================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-green { background: var(--mypod-success); }
.status-dot-amber { background: var(--mypod-warning); }
.status-dot-gray { background: var(--mypod-border); }

/* ============================================
   Mobile Navigation
   ============================================ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--mypod-text);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 800;
  animation: fadeIn 150ms ease;
}

.mobile-nav-overlay.open { display: block; }

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--mypod-surface);
  z-index: 801;
  padding: var(--sp-6);
  animation: slideInRight 200ms ease-out;
  box-shadow: var(--mypod-shadow-lg);
}

.mobile-nav-panel a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--mypod-text);
  font-weight: var(--weight-medium);
  border-bottom: 1px solid var(--mypod-border);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  color: var(--mypod-text-secondary);
  margin-bottom: var(--sp-4);
  float: right;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-desktop-links { display: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }

  .select-cards {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: var(--sp-4);
    right: var(--sp-4);
  }

  .toast { max-width: 100%; }
}


/* ── Interview Trust Details ───────────────────────────────── */
.interview-trust-details {
  margin-top: var(--sp-4);
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.interview-trust-details summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.interview-trust-details summary::before {
  content: '▸';
  transition: transform var(--transition-fast);
}
.interview-trust-details[open] summary::before {
  transform: rotate(90deg);
}
.interview-trust-details ul {
  margin: var(--sp-2) 0 0;
  padding-left: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
  line-height: 1.6;
}
.interview-trust-details li {
  margin-bottom: var(--sp-1);
}

/* ── Pre-connection Greeting ───────────────────────────────── */
.pre-greeting {
  font-size: var(--text-lg);
  color: var(--mypod-text);
  font-style: italic;
  max-width: 360px;
  margin: var(--sp-4) auto;
  opacity: 1;
  transition: opacity var(--transition-slow);
}
.pre-greeting.fade-out {
  opacity: 0;
}
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── Action Feed ───────────────────────────────────────────── */
.action-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.action-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-md);
  background: var(--mypod-surface);
}
.action-item-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}
.action-item-body {
  flex: 1;
  min-width: 0;
}
.action-item-body .action-group-name {
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
  margin: 0 0 var(--sp-1);
}
.action-item-body .action-description {
  margin: 0;
  font-weight: 500;
}
.action-item-actions {
  flex-shrink: 0;
}
.action-item.urgency-high {
  border-left: 3px solid var(--mypod-accent);
}
.action-item.urgency-medium {
  border-left: 3px solid var(--mypod-warning);
}

/* ── Post-Interview Status ─────────────────────────────────── */
.interview-progress {
  margin: var(--sp-6) auto;
  max-width: 320px;
}
.interview-progress-avatars {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.interview-progress-avatars .avatar {
  opacity: 0.3;
}
.interview-progress-avatars .avatar.done {
  opacity: 1;
}
.interview-progress-count {
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--sp-2);
}
.interview-progress-date {
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
  text-align: center;
}

/* Interview complete — topic highlights */
.interview-topics {
  text-align: center;
  color: var(--mypod-text-secondary);
}
.interview-topics strong {
  color: var(--mypod-text);
}

/* Interview complete — member pull quote */
.member-quote {
  margin: var(--sp-4) auto;
  max-width: 400px;
  text-align: center;
}
.member-quote blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--mypod-text);
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

/* Interview complete — mini-player */
.interview-mini-player {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: var(--mypod-surface);
  border-radius: var(--mypod-radius-md);
  text-align: center;
}

/* ── Public Listen Page ────────────────────────────────────── */
.listen-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}
.listen-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.listen-header h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.listen-header .listen-meta {
  color: var(--mypod-text-secondary);
  font-size: var(--text-sm);
}
.listen-subscribe {
  text-align: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--mypod-border);
}

/* ── Interview Atmosphere ─────────────────────────────────── */

/* AI persona card */
.ai-persona {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--mypod-radius-pill);
  backdrop-filter: blur(8px);
}
.persona-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--mypod-radius-full);
  background: var(--mypod-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-lg);
}
.persona-name {
  margin: 0;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--mypod-text);
}
.persona-tagline {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
}

/* Ambient gradient background during active interview */
#active-state {
  background: linear-gradient(135deg,
    rgba(124, 106, 239, 0.05) 0%,
    rgba(167, 139, 250, 0.08) 50%,
    rgba(124, 106, 239, 0.03) 100%);
  background-size: 400% 400%;
  animation: ambientShift 30s ease-in-out infinite;
  border-radius: var(--mypod-radius-lg);
  transition: background var(--transition-slow);
}

@keyframes ambientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Value-First Pricing ──────────────────────────────────── */
.pricing-quote {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.pricing-quote-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--mypod-text-secondary);
}
.pricing-usecase {
  color: var(--mypod-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}
.pricing-card-featured {
  border: 2px solid var(--mypod-primary);
  transform: scale(1.05);
  box-shadow: var(--mypod-shadow-lg);
  position: relative;
}
.pricing-card-featured .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--mypod-text);
}
.pricing-period {
  font-size: var(--text-base);
  color: var(--mypod-text-secondary);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
}
.pricing-features li {
  padding: var(--sp-1) 0;
  color: var(--mypod-text-secondary);
  font-size: var(--text-sm);
}
.pricing-features li::before {
  content: '\2713 ';
  color: var(--mypod-success);
  font-weight: 600;
}
.pricing-faq {
  margin-top: var(--sp-10);
}
.pricing-faq-item {
  border-bottom: 1px solid var(--mypod-border);
  padding: var(--sp-3) 0;
}
.pricing-faq-item summary {
  cursor: pointer;
  font-weight: 500;
  padding: var(--sp-2) 0;
}
.pricing-faq-item p {
  color: var(--mypod-text-secondary);
  margin: var(--sp-2) 0 var(--sp-3);
}

/* ── Episode Story Elements ───────────────────────────────── */
.episode-summary {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--mypod-text);
  margin-bottom: var(--sp-4);
}

.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.theme-pill {
  display: inline-block;
  padding: 2px var(--sp-3);
  background: var(--mypod-surface-secondary);
  border: 1px solid var(--mypod-border);
  border-radius: var(--mypod-radius-pill);
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
}

.pull-quote {
  border-left: 3px solid var(--mypod-audio);
  padding: var(--sp-3) var(--sp-5);
  margin: var(--sp-4) 0;
  background: rgba(167, 139, 250, 0.04);
  border-radius: 0 var(--mypod-radius-md) var(--mypod-radius-md) 0;
}
.pull-quote-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-normal);
  margin: 0 0 var(--sp-2);
  color: var(--mypod-text);
}
.pull-quote-speaker {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--mypod-text-secondary);
}

/* Collapsible transcript */
.transcript summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-lg);
  padding: var(--sp-2) 0;
  color: var(--mypod-text);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before {
  content: '\25b6';
  display: inline-block;
  margin-right: var(--sp-2);
  transition: transform var(--transition-base);
  font-size: var(--text-sm);
}
.transcript[open] summary::before {
  transform: rotate(90deg);
}

/* ============================================
   Purpose Suggestions (Group Creation)
   ============================================ */
.purpose-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.purpose-btn {
  border: 1px solid var(--mypod-border);
  background: var(--mypod-surface);
  color: var(--mypod-text);
  border-radius: var(--mypod-radius-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--transition-base),
              background var(--transition-base),
              box-shadow var(--transition-base);
  text-align: left;
  line-height: var(--lh-snug);
}

.purpose-btn:hover {
  border-color: var(--mypod-primary);
  background: rgba(124, 106, 239, 0.04);
}

.purpose-btn.selected {
  border-color: var(--mypod-primary);
  background: rgba(124, 106, 239, 0.08);
  box-shadow: 0 0 0 2px rgba(124, 106, 239, 0.2);
}

.purpose-custom-btn {
  font-style: italic;
  color: var(--mypod-text-secondary);
}
