/* styles.css - Warm Editorial Workspace for NHS Assessment Simulator */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
  --bg-canvas: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F5F3ED;
  --bg-muted: #EFECE4;
  --border-subtle: #E8E5DF;
  --border-strong: #D7D3CB;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-tertiary: #8C867E;
  --accent-nhs: #005EB8;
  --accent-nhs-hover: #004B93;
  --accent-nhs-light: #EBF3FC;
  --accent-teal: #0F766E;
  --accent-teal-light: #F0FDFA;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-rose: #E11D48;
  --accent-rose-light: #FFE4E6;
  --radius-card: 16px;
  --radius-button: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-card: 0 1px 3px rgba(28, 25, 23, 0.04), 0 8px 24px -4px rgba(28, 25, 23, 0.04);
  --shadow-hover: 0 4px 6px -1px rgba(28, 25, 23, 0.05), 0 12px 28px -4px rgba(28, 25, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Newsreader', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Card Styling */
.editorial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.editorial-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Sub-cards and Input Panels */
.editorial-panel {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

/* Forms & Textareas */
textarea, input[type="text"], select {
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border-subtle);
  background-color: #FFFFFF;
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.925rem;
  line-height: 1.5;
  transition: all 0.15s ease-in-out;
}

textarea:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--accent-nhs);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
}

/* Stepper Pills */
.stepper-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.775rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stepper-pill:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.stepper-pill.active {
  background: var(--accent-nhs-light);
  color: var(--accent-nhs);
  border-color: rgba(0, 94, 184, 0.25);
  font-weight: 600;
}

.stepper-pill.completed {
  color: var(--accent-teal);
}

/* Two-Step Transitions */
.view-step {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-step.hidden {
  display: none !important;
}

/* Equalizer Waveform Bars */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.waveform-bar {
  width: 3px;
  background-color: var(--accent-teal);
  border-radius: 2px;
  height: 6px;
  transition: height 0.1s ease;
}

.waveform-active .waveform-bar:nth-child(1) { animation: wave 0.8s infinite ease-in-out 0.1s; }
.waveform-active .waveform-bar:nth-child(2) { animation: wave 0.8s infinite ease-in-out 0.2s; }
.waveform-active .waveform-bar:nth-child(3) { animation: wave 0.8s infinite ease-in-out 0.3s; }
.waveform-active .waveform-bar:nth-child(4) { animation: wave 0.8s infinite ease-in-out 0.4s; }
.waveform-active .waveform-bar:nth-child(5) { animation: wave 0.8s infinite ease-in-out 0.5s; }
.waveform-active .waveform-bar:nth-child(6) { animation: wave 0.8s infinite ease-in-out 0.3s; }
.waveform-active .waveform-bar:nth-child(7) { animation: wave 0.8s infinite ease-in-out 0.1s; }

@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

/* Kiosk Bezel in Editorial View */
.kiosk-mockup {
  background: #1E293B;
  border: 8px solid #0F172A;
  border-radius: 24px;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.kiosk-screen-content {
  background: #FFFFFF;
  color: #0F172A;
  min-height: 380px;
}

/* Overtime timer pulse */
@keyframes overtime-pulse {
  0%, 100% { color: #D97706; }
  50% { color: #E11D48; }
}

.overtime-active {
  animation: overtime-pulse 1.5s infinite;
}

/* Live Recording Dot */
@keyframes record-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.recording-dot {
  animation: record-blink 1.4s infinite ease-in-out;
}
