/* ============================================================
   ABSTRICT · Features v9 CSS
   Fan config, Complexity score, Age badge, Checklist,
   Review links, Watercooling custom, Budget allocator,
   Weight estimation
   ============================================================ */

/* === Fan configuration === */
.fan-config {
  margin-top: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.fan-config-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.fan-config-title { font-size: 12px; font-weight: 600; }
.fan-diagram {
  display: flex; gap: 12px; align-items: center;
  justify-content: center;
  padding: 10px;
}
.fan-case-outline {
  width: 120px; height: 160px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  background: var(--bg-alt);
}
.fan-pos {
  position: absolute; font-size: 8px; font-family: var(--mono);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: var(--text-muted);
}
.fan-pos .fan-icon { font-size: 14px; }
.fan-pos.active { color: var(--success); }
.fan-pos.front { left: -28px; top: 50%; transform: translateY(-50%); }
.fan-pos.rear { right: -28px; top: 30%; }
.fan-pos.top { top: -22px; left: 50%; transform: translateX(-50%); }
.fan-pos.bottom { bottom: -22px; left: 50%; transform: translateX(-50%); }
.fan-pos.side { bottom: 8px; left: 50%; transform: translateX(-50%); }
.fan-summary {
  font-size: 10px; color: var(--text-secondary);
  text-align: center; margin-top: 8px;
  font-family: var(--mono);
}
.fan-tip {
  font-size: 9px; color: var(--text-muted);
  margin-top: 4px; text-align: center;
  line-height: 1.3;
}

/* === Complexity score === */
.complexity-score {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 3px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
}
.complexity-score.beginner { background: rgba(34,197,94,.1); color: var(--success); }
.complexity-score.intermediate { background: rgba(245,158,11,.1); color: var(--warning); }
.complexity-score.advanced { background: rgba(239,68,68,.1); color: var(--danger); }

/* === Component age badge === */
.card-age-badge {
  position: absolute; bottom: 40px; right: 8px;
  font-family: var(--mono); font-size: 8px; font-weight: 600;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(99,102,241,.1); color: var(--accent);
  border: 1px solid rgba(99,102,241,.2);
  z-index: 2;
}

/* === Checklist === */
.checklist-item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer;
}
.checklist-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px; height: 14px;
}
.checklist-item.checked {
  text-decoration: line-through;
  color: var(--text-muted);
}
.checklist-progress {
  font-family: var(--mono); font-size: 9px;
  color: var(--text-muted); margin-top: 4px;
}

/* === Review link === */
.review-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 3px;
  font-family: var(--mono); font-size: 9px;
  color: var(--accent); text-decoration: none;
  border: 1px solid rgba(99,102,241,.2);
  transition: all 120ms var(--ease);
}
.review-link:hover {
  background: rgba(99,102,241,.08);
  border-color: var(--accent);
}

/* === Watercooling custom check === */
.wc-custom-section {
  margin-top: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.wc-custom-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.wc-custom-title { font-size: 12px; font-weight: 600; }
.wc-check {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; font-size: 10px;
}
.wc-check-icon { font-size: 12px; flex-shrink: 0; }
.wc-check.ok { color: var(--success); }
.wc-check.warn { color: var(--warning); }
.wc-check.bad { color: var(--danger); }

/* === Budget allocator === */
.budget-alloc {
  margin-top: 12px; padding: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(16,185,129,.06));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--radius-lg);
}
.budget-alloc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.budget-alloc-title { font-size: 12px; font-weight: 600; color: var(--accent); }
.budget-alloc-slider {
  width: 100%; appearance: none; height: 4px;
  background: var(--bg-alt); border-radius: 2px;
  outline: none; -webkit-appearance: none;
}
.budget-alloc-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; background: var(--accent);
  border-radius: 50%; cursor: pointer;
  border: 2px solid var(--surface);
}
.budget-alloc-slider::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--accent);
  border-radius: 50%; cursor: pointer;
  border: 2px solid var(--surface);
}
.budget-alloc-result {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-top: 10px;
}
.budget-alloc-slot {
  padding: 6px 8px;
  background: var(--bg-alt); border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 10px;
}
.budget-alloc-slot .slot-name {
  font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.budget-alloc-slot .slot-pct {
  font-family: var(--mono); color: var(--accent); font-weight: 600;
}
.budget-alloc-slot .slot-amt {
  font-family: var(--mono); font-size: 9px; color: var(--text-muted);
}
.budget-alloc-profiles {
  display: flex; gap: 6px; margin-top: 10px;
}
.budget-profile-btn {
  flex: 1; padding: 6px 8px;
  background: var(--bg-alt); border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  text-align: center; transition: all 120ms var(--ease);
}
.budget-profile-btn:hover,
.budget-profile-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(99,102,241,.06);
}

/* === Weight estimation === */
.weight-est {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-family: var(--mono); font-size: 10px;
  color: var(--text-secondary);
}
.weight-est .weight-icon { font-size: 14px; }
.weight-est .weight-val {
  font-weight: 700; color: var(--text);
}

/* === Mobile overrides === */
@media (max-width: 768px) {
  .budget-alloc-result { grid-template-columns: 1fr; }
  .budget-alloc-profiles { flex-direction: column; }
}
