/**
 * transcribe.css
 * Styles for transcription and dictation (Phase 6): the drop zone, the
 * transcript preview, and the floating "Listening…" indicator.
 * Selectors target ts-transcribe-* and ts-dictation-* only.
 */

.ts-transcribe-drop {
  margin: 0.5rem 0;
  padding: 1.2rem 1rem;
  text-align: center;
  font-weight: 600;
  color: inherit;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}

.ts-transcribe-drop:hover,
.ts-transcribe-drop:focus-visible,
.ts-transcribe-drop.is-over {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  outline: none;
}

.ts-transcribe-drop.is-disabled {
  opacity: 0.5;
}

.ts-transcribe-preview {
  max-height: 220px;
  margin: 0.6rem 0;
  padding: 0.6rem 0.7rem;
  overflow: auto;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.ts-dictation-pill {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  transform: translateX(-50%);
  color: #fef2f2;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(127, 29, 29, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.6);
  border-radius: 99px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ts-dictation-pill[hidden] {
  display: none;
}

.ts-dictation-pill[data-status="transcribing"] {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
}

.ts-dictation-pill button {
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 99px;
  cursor: pointer;
}

.ts-dictation-pill button:hover,
.ts-dictation-pill button:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ts-dictation-pill[data-status="recording"]::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: -0.2rem;
    border-radius: 50%;
    background: #f87171;
    animation: ts-dictation-pulse 1.2s ease-in-out infinite;
  }
}

@keyframes ts-dictation-pulse {
  50% { opacity: 0.3; }
}

body.light-mode .ts-transcribe-drop {
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-mode .ts-transcribe-preview {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}
