/* ── IDC Brand Tokens ─────────────────────────────────────────────────────── */
:root {
  --blue:        #1566E8;   /* idc.com vivid blue */
  --blue-dark:   #0E4FBC;   /* hover */
  --blue-glow:   rgba(21, 102, 232, 0.22);
  --navy:        #1F3864;   /* IDC primary navy (from brand docs) */
  --gold:        #F0C200;   /* IDC CTA yellow */
  --gold-dark:   #D4AA00;   /* gold hover */
  --gold-glow:   rgba(240, 194, 0, 0.30);
  --bg:          #fffcfa;   /* exact idc.com body background */
  --white:       #FFFFFF;
  --text:        #0a0a0a;   /* exact idc.com body text */
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --danger:      #DC2626;
  --danger-dark: #B91C1C;
  --danger-glow: rgba(220, 38, 38, 0.20);
  --green:       #059669;
  --amber:       #D97706;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --radius:      14px;
  --font-serif:  'Source Serif 4', Georgia, serif;
  --font-sans:   'Plus Jakarta Sans', 'mundial', Arial, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--blue);
  line-height: 1;
}

.header-divider {
  color: var(--border);
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
}

.header-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Blue accent strip (idc.com hero feel) ────────────────────────────────── */
.header::after {
  content: '';
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, #3D8EF5 50%, var(--gold) 100%);
}
.header { position: relative; }

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 20px 64px;
}

.container {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 44px 40px;
  border: 1px solid rgba(0,0,0,0.04);
}

/* ── Call Card ────────────────────────────────────────────────────────────── */
.call-card {
  text-align: center;
}

/* Olivia avatar */
.avatar {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--blue) 0%, #3D8EF5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 6px 20px var(--blue-glow);
}

.call-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.call-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.call-subtitle strong {
  color: var(--navy);
  font-weight: 600;
}

/* ── Status Badge ─────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: #F3F4F6;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: background 0.25s, color 0.25s;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9CA3AF;
  flex-shrink: 0;
  transition: background 0.25s;
}

/* State: connecting */
.status-badge.connecting  { background: #FFFBEB; color: var(--amber); }
.status-dot.connecting    { background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }

/* State: live */
.status-badge.live        { background: #ECFDF5; color: var(--green); }
.status-dot.live          { background: var(--green); animation: pulse 1.8s ease-in-out infinite; }

/* State: ended / error */
.status-badge.ended,
.status-badge.error       { background: #F3F4F6; color: var(--text-muted); }
.status-dot.ended,
.status-dot.error         { background: #9CA3AF; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(1.25); }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.call-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn svg { display: none; } /* hide SVG icons — we use text arrow */

.btn:hover:not(:disabled)  { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled              { opacity: 0.5; cursor: not-allowed; }

/* Primary = gold + black border → hover: deep navy bg + white text (exact idc.com style) */
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  border: 2.5px solid #0a0a0a;
  box-shadow: none;
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(31, 56, 100, 0.25);
}

/* Danger = same pill + black border → hover: dark red */
.btn-danger {
  background: var(--gold);
  color: #0a0a0a;
  border: 2.5px solid #0a0a0a;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  box-shadow: 0 6px 20px var(--danger-glow);
}

/* ── Call Note ────────────────────────────────────────────────────────────── */
.call-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Transcript Card ──────────────────────────────────────────────────────── */
.transcript-card {
  padding: 24px 28px;
}

.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.transcript-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.transcript-live-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transcript-live-badge.ended {
  color: var(--text-muted);
}

/* Scrollable body */
.transcript-body {
  max-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transcript-body::-webkit-scrollbar { width: 4px; }
.transcript-body::-webkit-scrollbar-track { background: transparent; }
.transcript-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Individual transcript line */
.transcript-line {
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  border-bottom: 1px solid #F9FAFB;
}

.transcript-line:last-child { border-bottom: none; }

.transcript-speaker {
  font-weight: 700;
  margin-right: 6px;
}

.transcript-speaker.olivia { color: var(--blue); }
.transcript-speaker.vendor { color: var(--navy); }

/* Empty state */
.transcript-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 18px 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .header { padding: 0 16px; }
  .header-label { display: none; }
  .card { padding: 32px 24px; }
  .main { padding: 32px 16px 48px; }
}
