/* public/css/coach.css
   Voice coaching coach view — minimal, warm, mobile-first.
   Uses the same design tokens as the landing page.
*/

:root {
  --bg: #faf8f4;
  --fg: #1c1c1c;
  --accent: #c8502a;
  --accent-light: rgba(200, 80, 42, 0.08);
  --amber: #d4a853;
  --muted: #7a7570;
  --border: rgba(28, 28, 28, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

.coach-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
.coach-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.chef-avatar {
  font-size: 1.4rem;
  line-height: 1;
}
.chef-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}
.recipe-label {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* Step badge */
.step-meta {
  margin-bottom: 1.5rem;
}
.step-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* Instruction */
.instruction-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
}
.instruction-text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
  cursor: pointer;
}

/* Timer */
.timer-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.timer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.timer-display {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.timer-bar-bg {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timer-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
}
.timer-bar.done {
  background: var(--amber);
  width: 100% !important;
}

/* Mic button */
.mic-area {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}
.listen-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: transform 0.15s;
}
.listen-btn:active { transform: scale(0.95); }
.mic-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200, 80, 42, 0.35);
  transition: background 0.2s, box-shadow 0.2s;
}
.listen-btn.active .mic-wrap {
  background: #a03d1f;
  box-shadow: 0 4px 24px rgba(200, 80, 42, 0.5);
  animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.mic-icon {
  width: 32px;
  height: 32px;
  color: white;
}
.listen-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s;
}
.status-dot.active {
  background: var(--accent);
  animation: dot-pulse 1s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hint */
.hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  padding: 0 2rem;
  line-height: 1.5;
}
.hint strong { color: var(--fg); font-style: normal; }