/*
 * flip-scorecard.css — Best furniture to flip scorecard
 *
 * All values use CSS custom properties from ash-tokens.css — no hardcoded hex.
 */

/* ── Scorecard form ──────────────────────────────────────────────────────── */

.ash-flip-scorecard__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ash-flip-scorecard__factor {
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #dad9d4);
}

.ash-flip-scorecard__factor:last-of-type {
  border-bottom: none;
}

.ash-flip-scorecard__factor-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ash-flip-scorecard__factor-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground, #3d3929);
}

.ash-flip-scorecard__factor-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ash-ring, #c96442);
  min-width: 20px;
  text-align: right;
}

.ash-flip-scorecard__factor-help {
  font-size: 0.8125rem;
  color: var(--muted-foreground, #7a7568);
  margin: 0 0 10px;
  line-height: 1.45;
}

/* ── Range slider ────────────────────────────────────────────────────────── */

.ash-flip-scorecard__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full, 9999px);
  background: var(--border, #dad9d4);
  outline: none;
  cursor: pointer;
}

.ash-flip-scorecard__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full, 9999px);
  background: var(--ash-ring, #c96442);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ash-ring, #c96442);
}

.ash-flip-scorecard__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full, 9999px);
  background: var(--ash-ring, #c96442);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ash-ring, #c96442);
}

.ash-flip-scorecard__range:focus {
  outline: none;
}

.ash-flip-scorecard__range-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: var(--muted-foreground, #7a7568);
}

/* ── Result panel ────────────────────────────────────────────────────────── */

.ash-flip-scorecard__result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #dad9d4);
}

.ash-flip-scorecard__result[hidden] { display: none; }

.ash-flip-scorecard__verdict-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.ash-flip-scorecard__score-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ash-flip-scorecard__score-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground, #3d3929);
  line-height: 1;
}

.ash-flip-scorecard__score-max {
  font-size: 1rem;
  color: var(--muted-foreground, #7a7568);
}

.ash-flip-scorecard__verdict {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.875rem;
  font-weight: 700;
}

.ash-flip-scorecard__verdict.is-great {
  background: rgba(31, 111, 67, 0.12);
  color: var(--ash-success, #1f6f43);
}

.ash-flip-scorecard__verdict.is-okay {
  background: rgba(201, 100, 66, 0.12);
  color: var(--ash-ring, #c96442);
}

.ash-flip-scorecard__verdict.is-risky {
  background: rgba(122, 74, 16, 0.12);
  color: var(--ash-amber, #7a4a10);
}

.ash-flip-scorecard__verdict.is-skip {
  background: rgba(180, 35, 24, 0.10);
  color: var(--ash-danger, #b42318);
}

.ash-flip-scorecard__verdict-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--foreground, #3d3929);
  margin: 0 0 20px;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ash-flip-scorecard__range::-webkit-slider-thumb,
  .ash-flip-scorecard__range::-moz-range-thumb { transition: none; }
}
