/* ════════════════════════════════════════════════
   Forecast Comparison Card — AllocationStep
   Add to existing wizard stylesheet
   ════════════════════════════════════════════════ */

.forecast-section {
  margin: 16px 0 24px;
}

.forecast-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--surface-secondary, #f8f9fb);
  border-radius: 12px;
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
}

.forecast-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef3c7;
  border-radius: 8px;
  color: #92400e;
  font-size: 0.85rem;
}

/* ── Card container ── */

.forecast-card {
  background: var(--surface-secondary, #f8f9fb);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.forecast-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  background: white;
}

.forecast-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a2e);
}

.forecast-objective-tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-light, #eef2ff);
  color: var(--primary, #4F46E5);
  font-weight: 500;
}

/* ── Channel comparison columns ── */

.forecast-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-light, #e5e7eb);
}

.forecast-channel {
  background: white;
  padding: 16px 18px;
}

.forecast-channel-template {
  background: #fafafa;
}

.forecast-ch-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.forecast-ch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.forecast-ch-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #1a1a2e);
}

.forecast-ch-budget {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
}

/* ── Metrics grid ── */

.forecast-ch-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.forecast-metric {
  display: flex;
  flex-direction: column;
}

.forecast-metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  line-height: 1.2;
}

.forecast-metric-label {
  font-size: 0.75rem;
  color: var(--text-tertiary, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Detail row (CPC, CPM, CPA) ── */

.forecast-ch-detail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 8px;
}

/* ── Strength label ── */

.forecast-ch-strength {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  padding-top: 8px;
  border-top: 1px solid var(--border-light, #e5e7eb);
}

.forecast-strength-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ── Confidence indicator ── */

.forecast-ch-confidence {
  font-size: 0.75rem;
  color: var(--text-tertiary, #9ca3af);
  margin-top: 4px;
}

/* ── Template-only note (TikTok etc.) ── */

.forecast-ch-template-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary, #9ca3af);
  line-height: 1.4;
  padding: 8px 0;
}

.forecast-ch-template-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Recommendation highlights ── */

.forecast-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: white;
  border-top: 1px solid var(--border-light, #e5e7eb);
}

.forecast-highlight {
  font-size: 0.82rem;
  padding: 4px 12px;
  background: var(--surface-secondary, #f8f9fb);
  border-radius: 20px;
  color: var(--text-secondary, #6b7280);
}

/* ── Reset button ── */

.forecast-reset-btn {
  margin: 8px 18px 12px;
}
