/* ═══════════════════════════════════════════════════════════════
   Service Allocation Predictor — specific styles
═══════════════════════════════════════════════════════════════ */

/* Service result card */
.sap-service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: var(--space-4) var(--space-5);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sap-service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sap-service-card--likely {
  background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #86efac;
}

.sap-service-card--possible {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.sap-service-card--unlikely {
  background: var(--color-bg);
  opacity: 0.7;
}

.sap-service-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.sap-service-card__main {
  flex: 1;
  min-width: 0;
}

.sap-service-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.sap-service-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.sap-service-card__badge {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  white-space: nowrap;
}

.sap-service-card__badge--likely {
  background: #16a34a;
  color: #fff;
}

.sap-service-card__badge--possible {
  background: #d97706;
  color: #fff;
}

.sap-service-card__badge--unlikely {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.sap-service-card__margin {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Header summary */
.sap-summary-card {
  background: linear-gradient(135deg, var(--color-brand) 0%, #0d4031 100%);
  color: #fff;
  border-radius: 14px;
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.sap-summary-card__hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: var(--space-3);
}

.sap-summary-card__rank {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.sap-summary-card__text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 4px;
}

.sap-summary-card__text p {
  font-size: var(--text-sm);
  opacity: 0.85;
  line-height: 1.5;
}

.sap-summary-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.sap-summary-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
}

.sap-summary-stat__label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Zone hint */
.sap-zone-hint {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: var(--space-3);
}

.sap-zone-hint h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #1e40af;
  margin-bottom: 6px;
}

.sap-zone-hint p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.sap-zone-hint strong { color: var(--color-text); }

/* Section group headers in result */
.sap-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}
.sap-section-title:first-of-type { margin-top: 0; }
