/* ==== NoteWhisper — app styles ==== */
/* Record button with red recording state, live timer, notes output, history list, detail view. */

:root {
  --accent: #475569;
  --accent-contrast: #ffffff;
}

/* ---- Record button (44px target) ---- */
.record-wrap { display: flex; flex-direction: column; gap: var(--space-3); align-items: stretch; }
#btn-record {
  min-height: 56px; padding: 0 var(--space-6);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; position: relative;
}
#btn-record.recording {
  background: var(--danger); border-color: var(--danger); color: #ffffff;
}
#btn-record.recording::before {
  content: ""; position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #ffffff;
  animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); } 50% { opacity: .55; transform: translateY(-50%) scale(1.35); } }

/* ---- Timer & status ---- */
.timer-row { display: flex; align-items: center; gap: var(--space-2); justify-content: center; font-variant-numeric: tabular-nums; }
.timer { font-size: 20px; font-weight: 700; color: var(--text); }
.rec-status { font-size: 12px; font-weight: 600; color: var(--danger); }
.rec-status.off { color: var(--muted); }

/* ---- Transcript input ---- */
#transcript { font-size: 15px; }

/* ---- Notes output ---- */
.notes-card { display: none; }
.notes-card.show { display: block; }
.notes-section { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.notes-section:first-child { margin-top: var(--space-3); border-top: 0; padding-top: 0; }
.notes-section h3 {
  font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 var(--space-2);
}
.notes-section .section-count {
  font-size: 12px; font-weight: 600; color: var(--muted); margin-left: var(--space-2);
}
.bullet-list { list-style: disc; padding-left: var(--space-4); margin: 0 0 var(--space-3); }
.bullet-list li { margin-bottom: var(--space-2); line-height: 1.5; }
.action-item { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); margin-bottom: var(--space-2); }
.action-item .meta { display: flex; gap: var(--space-4); font-size: 12px; color: var(--muted); margin-top: var(--space-1); }
.action-item .meta b { color: var(--text-2); }
.actions-none, .decisions-none, .questions-none { color: var(--muted); font-size: 14px; }

/* ---- History list & detail ---- */
.history-wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.list-item.note-item { gap: var(--space-3); }
.list-item.note-item .grow { min-width: 0; }
.note-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-date { font-size: 12px; color: var(--muted); }
.note-preview { font-size: 13px; color: var(--text-2); margin-top: var(--space-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Detail view ---- */
.detail-head { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.detail-title { font-size: 20px; font-weight: 700; flex: 1; min-width: 0; word-break: break-word; }
.detail-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.detail-actions .btn { width: auto; flex: none; }

/* ---- Markdown-ish notes rendering ---- */
.notes-body h4 { font-size: 15px; font-weight: 700; margin: var(--space-3) 0 var(--space-2); color: var(--text); }
.notes-body p { font-size: 15px; line-height: 1.6; }
.notes-body ul { padding-left: var(--space-4); margin: 0 0 var(--space-3); }
.notes-body ul li { margin-bottom: var(--space-1); }
.notes-body strong { color: var(--text); }

/* ---- Empty state ---- */
.empty-state .icon-note { font-size: 36px; margin-bottom: var(--space-3); line-height: 1; }

/* ---- RTL ---- */
[dir="rtl"] .action-item .meta { flex-direction: row-reverse; }
[dir="rtl"] .notes-section h3 .section-count { margin-left: 0; margin-right: var(--space-2); }
