/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SolutionGigs – Transcribe Page Styles
   Extends converter-dark.css (loaded first)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.tr-hero {
  background: linear-gradient(135deg, rgba(45,43,111,0.55) 0%, rgba(7,6,26,0) 80%);
  border-bottom: 1px solid var(--cv-border);
  padding: 42px 0 36px;
}

.tr-hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tr-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--cv-lav-glow);
  border: 1px solid var(--cv-border-mid);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-lavender);
}

.tr-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.tr-hero p {
  color: var(--cv-text-mid);
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .tr-hero { padding: 28px 0 24px; }
  .tr-hero h1 { font-size: 1.35rem; }
  .tr-hero-icon { width: 50px; height: 50px; border-radius: 12px; }
  .tr-hero-inner { gap: 14px; }
}

/* ── Content wrap ─────────────────────────────────────────────────────── */
.tr-content-wrap {
  flex: 1;
  padding: 32px 0 48px;
  position: relative;
  z-index: 10;
}

/* ── Formats note ─────────────────────────────────────────────────────── */
.tr-formats-note {
  font-size: .82rem;
  color: var(--cv-text-dim);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.6;
}

.tr-formats-note strong {
  color: var(--cv-text-mid);
  font-weight: 500;
}

/* ── Result header ────────────────────────────────────────────────────── */
.tr-result-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tr-result-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: rgba(15,181,125,0.18);
  border: 1px solid rgba(15,181,125,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-green);
  margin-top: 2px;
}

.tr-result-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 3px;
  color: var(--cv-text);
}

.tr-result-meta {
  font-size: .83rem;
  color: var(--cv-text-mid);
  margin: 0;
}

.tr-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ── Action buttons ───────────────────────────────────────────────────── */
.tr-btn-copy,
.tr-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
  text-decoration: none;
}

.tr-btn-copy {
  background: var(--cv-lav-glow);
  border: 1px solid var(--cv-border-mid);
  color: var(--cv-lavender);
}

.tr-btn-copy:hover {
  background: rgba(212,184,204,0.22);
  border-color: var(--cv-border-hi);
  color: #fff;
}

.tr-btn-dl {
  background: rgba(15,181,125,0.12);
  border: 1px solid rgba(15,181,125,0.28);
  color: var(--cv-green);
}

.tr-btn-dl:hover {
  background: rgba(15,181,125,0.22);
  border-color: rgba(15,181,125,0.5);
}

/* ── Transcript display ───────────────────────────────────────────────── */
.tr-transcript-wrap {
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius-md);
  background: rgba(7,6,26,0.5);
  max-height: 520px;
  overflow-y: auto;
  padding: 6px 0;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(212,184,204,0.2) transparent;
}

.tr-transcript-wrap::-webkit-scrollbar { width: 5px; }
.tr-transcript-wrap::-webkit-scrollbar-track { background: transparent; }
.tr-transcript-wrap::-webkit-scrollbar-thumb {
  background: rgba(212,184,204,0.2);
  border-radius: 4px;
}

.tr-chapter {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cv-border);
}

.tr-chapter:last-child { border-bottom: none; }

.tr-chapter-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cv-lavender);
  margin: 0 0 8px;
  opacity: .75;
}

.tr-chapter-text {
  font-size: .9rem;
  color: var(--cv-text-mid);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .tr-result-header { gap: 10px; }
  .tr-result-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .tr-transcript-wrap { max-height: 380px; }
  .tr-chapter { padding: 12px 14px; }
}

@media (max-width: 400px) {
  .tr-btn-copy,
  .tr-btn-dl { font-size: .78rem; padding: 6px 10px; }
}
