/* ============================
   AIOS Landing  -  Transcript page (QVRSV)
   Chat bubble layout, light theme. Extends style.css
   ============================ */

.transcript-body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192, 223, 252, 0.45), transparent 55%),
    var(--bg);
}

/* ============================ HERO ============================ */
.transcript-hero { padding: 72px 32px 64px; border-bottom: 1px solid var(--line); }
.transcript-hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  color: var(--navy);
}

/* ============================ META STRIP ============================ */
.transcript-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 40px 0 34px; padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-key {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green);
}
.meta-val { font-size: 15px; color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .transcript-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 440px) { .transcript-meta { grid-template-columns: 1fr; gap: 14px; } }

/* ============================ ACTIONS ============================ */
.transcript-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn.copied { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-label { display: inline-block; }

/* ============================ CHAT SECTION ============================ */
.transcript-section { padding: 60px 32px 90px; background: var(--bg); }

.chat-legend {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-mute);
  margin-bottom: 36px; padding-bottom: 18px;
  border-bottom: 1px dashed var(--line); flex-wrap: wrap;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-phil { background: var(--green); }
.legend-client { background: var(--blue); }
.legend-name { color: var(--text-soft); font-weight: 600; }
.legend-sep { color: var(--text-mute); margin: 0 4px; }

/* ============================ BUBBLES ============================ */
.conversation { display: flex; flex-direction: column; gap: 4px; }
.bubble-row { display: flex; margin: 6px 0; }
.bubble-row.bubble-left { justify-content: flex-start; }
.bubble-row.bubble-right { justify-content: flex-end; }

.bubble-stack { display: flex; flex-direction: column; max-width: 78%; min-width: 0; }
.bubble-row.bubble-left .bubble-stack { align-items: flex-start; }
.bubble-row.bubble-right .bubble-stack { align-items: flex-end; }

.bubble-speaker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); margin: 16px 4px 6px;
}
.bubble-phil .bubble-speaker { color: var(--green-deep); }
.bubble-client .bubble-speaker { color: var(--blue); }

.bubble {
  position: relative; padding: 13px 17px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

/* Phil bubbles: left, green-tinted */
.bubble-phil .bubble {
  background: rgba(19, 201, 58, 0.07);
  border-color: rgba(19, 201, 58, 0.28);
  border-bottom-left-radius: 4px;
}
.bubble-phil .bubble:hover { background: rgba(19, 201, 58, 0.12); }

/* Client bubbles: right, blue-tinted */
.bubble-client .bubble {
  background: rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.22);
  border-bottom-right-radius: 4px;
}
.bubble-client .bubble:hover { background: rgba(12, 77, 162, 0.11); }

.bubble-text {
  margin: 0; font-size: 16px; line-height: 1.55; color: var(--text);
  font-family: var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
}
.bubble-row:hover .bubble { transform: translateY(-1px); }

/* ============================ MOBILE ============================ */
@media (max-width: 640px) {
  .transcript-hero { padding: 54px 20px 54px; }
  .transcript-section { padding: 36px 20px 60px; }
  .bubble-stack { max-width: 92%; }
  .bubble { padding: 11px 15px; border-radius: 14px; }
  .bubble-text { font-size: 15px; }
  .chat-legend { font-size: 12px; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
