/* ─────────────────────────────────────────────────────────────────
   Use Cases — case-specific labels + results panel + result cards
   ─────────────────────────────────────────────────────────── */

/* ─── Case-specific labels (only used on this page) ────────── */
.case-client {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.theme-light .case-client,
.theme-gray  .case-client { color: var(--text-secondary); }
.theme-dark  .case-client { color: rgba(255, 255, 255, 0.38); }

.case-challenge {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ─── Results panel (stacked cards in the right column) ─────── */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.results-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.theme-light .results-header,
.theme-gray  .results-header { color: var(--text-secondary); }
.theme-dark  .results-header { color: var(--text-on-dark-faint); }

/* ─── Result card ────────────────────────────────────────────── */
.result-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-light .result-card,
.theme-gray  .result-card {
  background: var(--bg-paper);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(76, 78, 100, 0.06);
}
.theme-dark .result-card {
  background: var(--dark-body);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.result-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(0, 150, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-icon iconify-icon { color: var(--primary); font-size: 20px; }

.result-body { flex: 1; }

.result-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}

.result-label {
  font-size: 12.5px;
  font-weight: 500;
}
.theme-light .result-label,
.theme-gray  .result-label { color: var(--text-secondary); }
.theme-dark  .result-label { color: rgba(255, 255, 255, 0.45); }

.result-bar-wrap {
  margin-top: 8px;
  height: 3px;
  background: rgba(0, 150, 136, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.result-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--primary);
  width: var(--w, 0);
}

.result-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 9px;
  border-radius: 10px;
  white-space: nowrap;
  align-self: flex-start;
}
.theme-light .result-badge,
.theme-gray  .result-badge {
  color: var(--text-secondary);
  background: rgba(76, 78, 100, 0.07);
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .case-client { margin-bottom: 14px; }

  .result-card {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .result-icon  { width: 38px; height: 38px; }
  .result-value { font-size: 1.4rem; }

  /* Badge wraps to its own row, indented to align with the value */
  .result-badge {
    flex-basis: 100%;
    margin-left: 50px;
    margin-top: 2px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .result-card  { padding: 14px; }
  .result-value { font-size: 1.3rem; }
  .result-label { font-size: 12px; }
  .result-badge { margin-left: 0; }
}
