/* ===== Sesi Metne Çevir (STT) sayfası ===== */

/* Mikrofon kayıt alanı */
.stt-record {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-top: 6px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--border);
}
.stt-mic {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 4px 14px rgba(99, 102, 241, .45);
  transition: transform .12s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stt-mic:hover { transform: scale(1.05); }
.stt-mic:active { transform: scale(.95); }
.stt-mic.recording {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .55);
  animation: stt-pulse 1.3s infinite;
}
@keyframes stt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  70%  { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.stt-rec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#stt-rec-status { color: var(--text); font-size: .95rem; }
.stt-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
}

/* "veya" ayıracı */
.stt-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: .85rem;
}
.stt-or::before,
.stt-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Dosya seçici */
.stt-file {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--card-soft);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  box-sizing: border-box;
  cursor: pointer;
}
.stt-file::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.stt-source {
  margin: 8px 2px 0;
  font-size: .85rem;
  color: var(--muted);
  min-height: 1em;
}

/* Sonuç kutusu */
.stt-result {
  margin-top: 18px;
}
.stt-result.hidden { display: none; }
.stt-result textarea[readonly],
.stt-result textarea {
  min-height: 120px;
}
