/* ═══════════════════════════════════════════════════════════════════
   src/settings-panel-v2.css
   SETTINGS-PANEL-V2-01 — Spirit Vale-layout tabbed settings HUD.
   Alaknanda dark sci-fi / cyan visual language.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Shell ────────────────────────────────────────────────────────── */

.spv2-shell {
  display: flex;
  width: min(92vw, 900px);
  height: min(82vh, 600px);
  background: #080f1a;
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: 10px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.80), 0 0 0 1px rgba(34,211,238,0.05);
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #e2e8f0;
  overflow: hidden;
  position: relative;
}

/* ── Sidebar nav ──────────────────────────────────────────────────── */

.spv2-nav {
  width: 190px;
  flex-shrink: 0;
  background: #050c16;
  border-right: 1px solid rgba(34,211,238,0.12);
  display: flex;
  flex-direction: column;
}

.spv2-nav-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 18px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #22d3ee;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(34,211,238,0.10);
  flex-shrink: 0;
}

.spv2-nav-title svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #22d3ee;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.spv2-nav-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  flex: 1;
}

.spv2-nav-item {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  border-left: 2px solid transparent;
  user-select: none;
}

.spv2-nav-item:hover {
  color: #cbd5e1;
  background: rgba(34,211,238,0.05);
}

.spv2-nav-item--active {
  color: #22d3ee !important;
  background: rgba(34,211,238,0.08) !important;
  border-left-color: #22d3ee !important;
}

/* ── Close button ─────────────────────────────────────────────────── */

.spv2-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: #64748b;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  font-family: inherit;
}

.spv2-close:hover {
  color: #e2e8f0;
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.08);
}

/* ── Content area ─────────────────────────────────────────────────── */

.spv2-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ── Panes ────────────────────────────────────────────────────────── */

.spv2-pane {
  flex: 1;
  padding: 26px 30px;
  overflow-x: hidden;
  overflow-y: auto;
}

.spv2-pane--hidden {
  display: none;
}

.spv2-pane-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(34,211,238,0.14);
}

/* ── General placeholder ──────────────────────────────────────────── */

.spv2-general-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 52px);
  gap: 10px;
  color: #475569;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

.spv2-placeholder-icon {
  font-size: 28px;
  opacity: 0.35;
  margin-bottom: 4px;
}

.spv2-placeholder-heading {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

/* ── Setting groups (Controls / Graphics) ─────────────────────────── */

.spv2-setting-group {
  margin-bottom: 22px;
}

.spv2-setting-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.spv2-radio-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.spv2-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
}

.spv2-radio-label input[type="radio"] {
  accent-color: #22d3ee;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.spv2-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  margin-bottom: 10px;
}

.spv2-checkbox-label:last-child {
  margin-bottom: 0;
}

.spv2-checkbox-label input[type="checkbox"] {
  accent-color: #22d3ee;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── FEEDBACK-ACCESSIBILITY-01: shake intensity slider + hints ─────── */

.spv2-range-row {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.spv2-range {
  width: 100%;
  accent-color: #22d3ee;
  cursor: pointer;
}

.spv2-range:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.spv2-hint {
  color: #64748b;
  font-size: 11px;
}

/* ── Controls notes ───────────────────────────────────────────────── */

.spv2-notes {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}

.spv2-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.9;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.spv2-note::before {
  content: '•';
  color: #334155;
  flex-shrink: 0;
}

/* ── Hotkeys: 4-column action bar grid ────────────────────────────── */

.spv2-hk-bars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  margin-bottom: 18px;
}

.spv2-bar-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.spv2-slot-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  font-size: 10px;
  color: #64748b;
}

/* ── Hotkeys: system controls reference ───────────────────────────── */

.spv2-hk-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 14px 0;
}

.spv2-hk-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.spv2-hk-section-label span {
  font-weight: 400;
  letter-spacing: 0;
  color: #475569;
}

.spv2-syskeys-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  font-size: 11px;
  color: #94a3b8;
  align-items: center;
  margin-bottom: 14px;
}

.spv2-syskey-entry {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Key chip (read-only reference) ───────────────────────────────── */

.spv2-key-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
  font-family: Consolas, 'Courier New', monospace;
}

/* ── Hotkeys: footer row ──────────────────────────────────────────── */

.spv2-hk-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.spv2-defaults-btn {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
  letter-spacing: 0.03em;
}

.spv2-defaults-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.26);
}

.spv2-hk-notice {
  min-height: 22px;
  margin-top: 6px;
  font-size: 11px;
}
