/* Alpha Coach — coach-specific components only.
   Layout, nav, cards, buttons and footer come from the site's
   assets/style.css. This file adds only coach components, reusing
   the site's CSS variables (--bg, --surface, --surface2, --text,
   --muted, --accent, --border, --radius). No external fonts. */

/* ---------- Dimension meters ---------- */
.coach-dims { display: flex; flex-direction: column; gap: 1rem; }
.coach-dim { display: flex; flex-direction: column; gap: .3rem; }
.coach-dim-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.coach-dim-name { font-weight: 700; }
.coach-dim-note { font-size: .92rem; color: var(--muted); margin: 0; }
.coach-meter {
  height: 10px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.coach-meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.coach-meter.empty > span { background: var(--border); }
.coach-band {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem;
  white-space: nowrap;
}
.coach-band.developing { color: #8a6f2e; background: #f6f0e2; border-color: #c9a959; }
.coach-band.steady { color: var(--accent); }
.coach-band.strong { color: #fff; background: var(--accent); border-color: var(--accent); }
.coach-band.unmeasured { color: var(--muted); }

/* ---------- Prescription cards ---------- */
.coach-plan { display: flex; flex-direction: column; gap: 1rem; }
.coach-prescription {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.coach-prescription h3 { margin-bottom: .25rem; }
.coach-prescription .why { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.coach-prescription .action { margin-bottom: .75rem; }
.coach-prescription .meta-row {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
.coach-minutes {
  font-size: .82rem; font-weight: 700; color: var(--accent);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 999px; padding: .2rem .7rem; white-space: nowrap;
}
.coach-prescription.done { opacity: .65; }
.coach-prescription.done h3::after {
  content: ' — done'; color: var(--accent); font-size: .9rem;
}

/* ---------- Setup picker ---------- */
.coach-setup { display: flex; flex-direction: column; gap: 1rem; }
.coach-grade-picker { display: flex; gap: .6rem; flex-wrap: wrap; }
.coach-grade-btn {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .6rem 1.2rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.coach-grade-btn:hover { border-color: var(--accent); }
.coach-grade-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.coach-setup-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Engagement snapshot ---------- */
.coach-eng-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.coach-eng-stat {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; text-align: center;
}
.coach-eng-stat .num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.coach-eng-stat .label { color: var(--muted); font-size: .9rem; }
.coach-eng-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.coach-eng-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.coach-eng-list li:last-child { border-bottom: 0; }

/* ---------- Link cards ---------- */
.coach-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.coach-link-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.coach-link-card:hover { border-color: var(--accent); text-decoration: none; }
.coach-link-card h3 { color: var(--text); margin-bottom: .25rem; }
.coach-link-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Voice / privacy ---------- */
.coach-voice-badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 999px; padding: .25rem .8rem;
}
.coach-privacy-list { margin: 0 0 1rem 1.25rem; padding: 0; }
.coach-privacy-list li { margin-bottom: .4rem; }
.coach-danger { background: #f7e9e4; border-color: #b0563a; color: #8c3f28; }
.coach-danger:hover { background: #f3ddd6; color: #8c3f28; }
.coach-confirm { font-weight: 600; color: #8c3f28; margin: .75rem 0 0; }
.coach-status { font-weight: 600; margin: .75rem 0 0; }
.coach-status.good { color: var(--accent); }

/* ---------- Dashboard extras ---------- */
.coach-hero-note { max-width: 640px; margin: 0 auto; }
.coach-empty { color: var(--muted); }

/* ---------- Baseline sampling ---------- */
.coach-baseline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.coach-baseline-task {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.coach-baseline-task h3 { margin-bottom: .25rem; }
.coach-hidden { display: none !important; }
.coach-voice-meter {
  height: 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.coach-voice-meter > span { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .1s linear; }
.coach-passage {
  border: 1px solid var(--border); border-radius: 8px; padding: 16px;
  background: var(--bg); font-size: 1.1rem; line-height: 1.7;
}
.coach-write {
  width: 100%; min-height: 120px; box-sizing: border-box; padding: 10px;
  font-size: 1rem; line-height: 1.5; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-family: inherit;
}
.coach-write:disabled { opacity: .6; }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: .75rem; }
.coach-stat { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--bg); font-size: .92rem; }
.coach-stat strong { display: block; font-size: 1.15rem; }

/* ---------- Phase 2: language picker + aggregates ---------- */
#lang-picker {
  padding: .6rem .8rem; font-size: 1rem; font-family: inherit;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
}
#lang-picker:hover { border-color: var(--accent); }

@media (max-width: 720px) {
  .coach-prescription { padding: 1rem; }
  .coach-eng-grid { grid-template-columns: 1fr 1fr; }
}
