/* ============================================================
   ABSTRICT · Features v12 — Build naming, Price filter,
   Noise estimator, PSU headroom, Age badges
   ============================================================= */

/* Build naming */
.build-name-input {
  display: block; width: 100%; margin-top: 6px;
  background: transparent; border: none; border-bottom: 1px solid var(--border-subtle);
  color: var(--text); font-family: var(--font); font-size: 12px; font-weight: 500;
  padding: 4px 0; outline: none; transition: border-color 200ms;
}
.build-name-input::placeholder { color: var(--text-muted); }
.build-name-input:focus { border-bottom-color: var(--accent); }

/* Price range filter */
.price-range-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-top: 6px;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
.price-range-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); white-space: nowrap;
}
.price-range-slider {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--border); border-radius: 2px; outline: none;
}
.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.price-range-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); cursor: pointer;
}
.price-range-val {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--accent); min-width: 50px; text-align: right;
}

/* Noise estimator */
.noise-panel {
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
.noise-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; color: var(--text-muted);
}
.noise-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px;
}
.noise-body { display: flex; flex-direction: column; gap: 4px; }
.noise-meter {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.noise-meter-fill {
  height: 100%; border-radius: 2px;
  transition: width 600ms var(--ease);
}
.noise-info {
  display: flex; justify-content: space-between; align-items: center;
}
.noise-db {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text);
}
.noise-tag {
  font-size: 11px; font-weight: 600;
}

/* PSU headroom */
.psu-headroom {
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
.psu-headroom-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; color: var(--text-muted);
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px;
}
.psu-headroom-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
  margin-bottom: 6px;
}
.psu-headroom-fill {
  height: 100%; border-radius: 3px;
  transition: width 600ms var(--ease), background 300ms;
}
.psu-headroom-info {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-secondary);
}

/* Component age badges */
.age-badge {
  display: inline-block; margin-left: 6px;
  font-size: 9px; font-weight: 600; padding: 1px 5px;
  border-radius: 3px; vertical-align: middle;
  letter-spacing: .3px;
}
.age-new { background: rgba(34,197,94,.12); color: #22c55e; }
.age-recent { background: rgba(99,102,241,.12); color: #818cf8; }
.age-ok { background: rgba(161,161,170,.1); color: var(--text-muted); }
.age-old { background: rgba(239,68,68,.1); color: #f87171; }
