/* =============================================================
   video-assess.css — Zero to 100 Video Assessment modal
   Builds on variables.css tokens + chat.css shared classes
   ============================================================= */

/* ── Modal overlay ──────────────────────────────────────────────── */

.video-assess-box {
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Step header ────────────────────────────────────────────────── */

.va-step-header { text-align: center; }

.va-step-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.va-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
}

.va-step-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Instructions panel ─────────────────────────────────────────── */

.va-instructions {
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.va-instructions-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.va-tips {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.va-camera-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 600;
}

/* ── Upload zone ────────────────────────────────────────────────── */

.va-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  background: var(--bot-bg);
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.va-upload-zone.drag-over,
.va-upload-zone:hover {
  border-color: var(--green-light);
  background: #f0faf4;
}

.va-upload-zone.has-file {
  border-color: var(--green-light);
  border-style: solid;
}

.va-video-preview {
  width: 100%;
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
}

.va-file-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.va-file-name {
  color: var(--green-dark);
  font-weight: 600;
}

/* ── Error message ──────────────────────────────────────────────── */

.va-error {
  color: #c0392b;
  font-size: 0.82rem;
  background: #fdf0ee;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
}

/* ── Navigation buttons ─────────────────────────────────────────── */

.va-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.va-btn-primary {
  background: var(--green-light);
  color: var(--cream);
  border: none;
  border-radius: 20px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}

.va-btn-primary:hover  { background: var(--green-dark); }
.va-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.va-btn-secondary {
  background: var(--cream-dark);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.va-btn-secondary:hover { background: var(--border); }

/* ── Review screen ──────────────────────────────────────────────── */

.va-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.va-review-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
}

.va-review-icon { font-size: 1rem; flex-shrink: 0; }
.va-review-name { flex: 1; font-weight: 600; }

.va-review-status.ready   { color: var(--green-light); font-weight: 600; font-size: 0.78rem; }
.va-review-status.missing { color: #c0392b;            font-weight: 600; font-size: 0.78rem; }

/* ── Processing screen ──────────────────────────────────────────── */

.va-status-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

.va-progress-bar-wrap {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}

.va-progress-bar {
  height: 100%;
  background: var(--green-light);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.va-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.va-progress-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: var(--bot-bg);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.va-progress-row.done  { opacity: 1; }
.va-progress-row.error { opacity: 1; background: #fdf0ee; }

.va-progress-icon { font-size: 1rem; flex-shrink: 0; }
.va-progress-name { flex: 1; }

.va-progress-score {
  font-weight: 700;
  font-size: 1rem;
  min-width: 28px;
  text-align: right;
}

.va-progress-score.error { color: #c0392b; }

/* ── Results screen ─────────────────────────────────────────────── */

.va-results-header {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.va-composite-score {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.va-score-denom {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
}

.va-band-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.2rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.va-recommended-action {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-light);
}

/* Score colour classes (shared by multiple elements) */
.score-green   { color: #1a7a3a; }
.score-yellow  { color: #b07b00; }
.score-orange  { color: #c0500a; }
.score-red     { color: #a01818; }
.score-darkred { color: #6b0000; }

.va-band-badge.score-green   { background: #1a7a3a; }
.va-band-badge.score-yellow  { background: #b07b00; }
.va-band-badge.score-orange  { background: #c0500a; }
.va-band-badge.score-red     { background: #a01818; }
.va-band-badge.score-darkred { background: #6b0000; }

/* ── AI narrative ───────────────────────────────────────────────── */

.va-narrative {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.va-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  text-align: center;
  margin-top: 0.25rem;
}

/* ── Flag banner ────────────────────────────────────────────────── */

.va-flag-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #664d03;
}

/* ── Priority chips ─────────────────────────────────────────────── */

.va-priorities {
  font-size: 0.82rem;
}

.va-priority-chip {
  display: inline-block;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.76rem;
  margin: 0.2rem 0.15rem 0;
  text-transform: capitalize;
}

/* ── Exercise breakdown ─────────────────────────────────────────── */

.va-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.va-exercise-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.va-result-exercise {
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.va-result-ex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.va-score-badge {
  font-size: 1rem;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
}

.va-score-bar-track {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}

.va-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.va-score-bar-fill.score-green   { background: #1a7a3a; }
.va-score-bar-fill.score-yellow  { background: #b07b00; }
.va-score-bar-fill.score-orange  { background: #c0500a; }
.va-score-bar-fill.score-red     { background: #a01818; }
.va-score-bar-fill.score-darkred { background: #6b0000; }

/* ── Joint details (collapsible) ────────────────────────────────── */

.va-joint-details {
  margin-top: 0.5rem;
}

.va-joint-details summary {
  font-size: 0.76rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}

.va-joint-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  border-top: 1px solid var(--cream-dark);
}

.va-joint-name  { flex: 1; color: var(--text-light); text-transform: capitalize; }
.va-joint-score { font-weight: 700; min-width: 28px; text-align: right; }
.va-culprit     { font-size: 0.72rem; background: var(--cream-dark); border-radius: 8px; padding: 0.1rem 0.4rem; text-transform: capitalize; color: var(--text-light); }

/* ── CTA ────────────────────────────────────────────────────────── */

.va-results-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.va-cta-link {
  text-align: center;
  text-decoration: none;
}

/* ── Mode card (in main UI) ─────────────────────────────────────── */

.mode-card-video .mode-card-icon { font-size: 1.6rem; }
