/* Hardware Interface Widget — extracted from style.css */

.hw-container {
  --hw-adhd: 255,107,53;
  --hw-hsp: 78,205,196;
  --hw-gifted: 196,162,101;
  --hw-autism: 108,92,231;
}

.hw-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 12px;
  margin-bottom: 16px;
}
.hw-panel-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--t2);
  margin-bottom: 16px;
}

/* Hardware rows */
.hw-row { margin-bottom: 16px }
.hw-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hw-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity .3s var(--ease);
}
.hw-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--t1);
  transition: opacity .3s var(--ease);
}
.hw-role {
  font-size: .7rem;
  color: var(--t3);
  font-style: italic;
  font-family: var(--serif);
}
.hw-val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}
.hw-desc {
  font-size: .75rem;
  color: var(--t2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
  margin-top: 0;
}
.hw-row.hw-hover .hw-desc {
  max-height: 40px;
  opacity: 1;
  margin-top: 4px;
}

/* Range slider */
.hw-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(var(--hw-color), .35) var(--hw-fill, 100%), var(--border) var(--hw-fill, 100%));
  outline: none;
  cursor: pointer;
  transition: background .1s;
}
.hw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px var(--gold-soft);
}
.hw-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px var(--gold-soft);
}
.hw-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

/* Arrow connector */
.hw-arrow {
  text-align: center;
  padding: 8px 0;
  margin-bottom: 16px;
}
.hw-arrow-symbols {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 4px;
  transition: color .5s var(--ease);
}
.hw-arrow-label {
  font-size: .65rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-top: 4px;
}

/* Interface cards */
.hw-iface {
  background: var(--bg3);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: opacity .5s var(--ease), border-color .5s var(--ease);
}
.hw-iface:last-child { margin-bottom: 0 }
.hw-iface.hw-dead {
  opacity: .45;
  border-color: rgba(180,60,60,.25);
}
.hw-iface.hw-weak {
  border-color: rgba(196,162,101,.2);
}
.hw-iface-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.hw-iface-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hw-iface-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--t1);
}
.hw-iface-sub {
  font-size: .7rem;
  color: var(--t3);
}
.hw-iface-link {
  font-size: .7rem;
  color: var(--t3);
  text-decoration: none;
  transition: color .2s var(--ease), letter-spacing .2s var(--ease);
  cursor: pointer;
}
.hw-iface-link:hover {
  color: var(--gold);
  letter-spacing: .03em;
}
.hw-iface-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition: opacity .3s var(--ease);
}
.hw-iface-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
  transition: margin .3s var(--ease);
}
.hw-iface.hw-hover .hw-iface-bar { margin-bottom: 8px }
.hw-iface-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-radius: 2px;
  transition: width .5s var(--ease);
}
.hw-iface-desc {
  font-size: .78rem;
  color: var(--t2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s var(--ease), opacity .3s var(--ease);
}
.hw-iface.hw-hover .hw-iface-desc {
  max-height: 40px;
  opacity: 1;
}
.hw-iface.hw-dead .hw-iface-desc { color: rgba(180,60,60,.7) }

/* Status box */
.hw-status {
  border-left: 3px solid var(--gold);
  background: var(--bg2);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: border-color .5s var(--ease);
}
.hw-status-label {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: 4px;
  transition: color .5s var(--ease);
}
.hw-status-desc {
  font-size: .78rem;
  color: var(--t2);
}
.hw-status-full .hw-status-label { color: var(--gold) }
.hw-status-active .hw-status-label { color: #90EE90 }
.hw-status-active { border-color: #90EE90 }
.hw-status-limited .hw-status-label { color: #FFD93D }
.hw-status-limited { border-color: #FFD93D }
.hw-status-warn .hw-status-label { color: #FF6B35 }
.hw-status-warn { border-color: #FF6B35 }
.hw-status-critical .hw-status-label { color: #FF4444 }
.hw-status-critical { border-color: #FF4444 }

/* Insight box */
.hw-insight {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.hw-insight-content { font-size: .82rem; color: var(--t2); line-height: 1.7 }
.hw-insight-item {
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hw-insight-item:last-child { margin-bottom: 0 }
.hw-insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  top: -1px;
}
.hw-insight-critical { background: #FF4444 }
.hw-insight-warn { background: #FFD93D }

/* Reset button */
.hw-reset-wrap { text-align: center; margin-bottom: 16px }
.hw-reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--t3);
  font-family: var(--sans);
  font-size: .75rem;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .3s var(--ease), color .3s var(--ease);
  position: relative;
}
.hw-reset::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%);
  transition: clip-path .2s ease-out;
  pointer-events: none;
}
.hw-reset:hover { border-color: transparent; color: var(--t1) }
.hw-reset:hover::before { clip-path: inset(0 0 0 0) }

/* Tagline */
.hw-tagline {
  text-align: center;
  font-size: .72rem;
  color: var(--t3);
  letter-spacing: .06em;
}

/* Responsive */
@media (max-width: 600px) {
  .hw-slider::-webkit-slider-thumb { width: 20px; height: 20px }
  .hw-slider::-moz-range-thumb { width: 20px; height: 20px }
}
