/* ============================================================
   OFFLINE-ASSIST.CSS — offline-assist.html specific styles
   Dark workbench theme with rose gold accents
   ============================================================ */

/* Override body for dark mode on this page */
body.assist-page {
  background:
    radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(61, 90, 128, 0.14), transparent 55%),
    radial-gradient(ellipse 900px 500px at 85% 5%, rgba(196, 137, 108, 0.08), transparent 50%),
    linear-gradient(180deg, #0f1117 0%, #0d0f14 100%);
  color: #e8eaf0;
}

body.assist-page .global-nav {
  background: rgba(13, 15, 20, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.assist-page .nav-brand { color: #e8eaf0; }
body.assist-page .nav-link { color: rgba(232, 234, 240, 0.55); }
body.assist-page .nav-link:hover { color: #e8eaf0; background: rgba(255,255,255,0.06); }
body.assist-page .nav-link.active { color: var(--accent); background: var(--accent-soft); }

body.assist-page .nav-user {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: #e8eaf0;
}

/* Dark cards */
body.assist-page .hero-panel,
body.assist-page .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.3);
  color: #e8eaf0;
}

body.assist-page .card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.4);
}

body.assist-page .eyebrow { color: var(--accent); }

/* Muted text in dark mode */
body.assist-page .muted,
body.assist-page [style*="color: var(--muted)"] {
  color: rgba(232, 234, 240, 0.5);
}

/* ---- Config Pills ---- */
.config-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 234, 240, 0.75);
  transition: all 200ms ease;
}

.config-pill:hover {
  border-color: rgba(196, 137, 108, 0.3);
  color: #e8eaf0;
}

.config-pill-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 234, 240, 0.4);
  margin-right: 2px;
}

/* ---- Record Button ---- */
.record-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(196, 137, 108, 0.35);
  transition: all 240ms ease;
}

.record-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(196, 137, 108, 0.45);
}

.record-btn.recording {
  background: linear-gradient(135deg, var(--danger), #c04040);
  box-shadow: 0 8px 24px rgba(212, 83, 75, 0.4);
}

.record-btn.recording::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 83, 75, 0.5);
  animation: pulse-ring 1.4s ease-out infinite;
}

/* ---- Stage Progress Track ---- */
.stage-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(232, 234, 240, 0.45);
  transition: all 220ms ease;
}

.stage-step.active {
  background: var(--accent-soft);
  border-color: rgba(196, 137, 108, 0.25);
  color: var(--accent);
  font-weight: 600;
}

.stage-step.done {
  color: rgba(232, 234, 240, 0.6);
  background: rgba(255, 255, 255, 0.03);
}

.stage-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-step.done .stage-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* ---- Analysis Cards ---- */
.analysis-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-inner);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.analysis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.analysis-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Debug / Transcript ---- */
.debug-log {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  color: rgba(232, 234, 240, 0.5);
  line-height: 1.7;
  max-height: 300px;
  overflow-y: auto;
}

.debug-log .log-entry {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.debug-log .log-entry:last-child { border-bottom: none; }
.debug-log .log-info { color: rgba(61, 90, 128, 0.9); }
.debug-log .log-warn { color: var(--warning); }
.debug-log .log-error { color: var(--danger); }
.debug-log .log-ok   { color: var(--success); }

/* Dark scrollbar */
body.assist-page ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

body.assist-page ::-webkit-scrollbar-track { background: transparent; }

body.assist-page ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Speaker tags */
.speaker-a {
  background: rgba(61, 90, 128, 0.15);
  color: #7a9fc4;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.speaker-b {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

/* ---- Decision Hub grid ---- */
.decision-hub {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 16px;
  align-items: start;
}

.transcript-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 920px) {
  .decision-hub { grid-template-columns: 1fr; }
  .transcript-grid { grid-template-columns: 1fr; }
}
