/* ============================================
   SHARED PAGE STYLES (Settings, About)
   ============================================ */
.page-wrap {
  min-height: 100vh;
  background: #0a0c10;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  overflow-y: auto;
}

.page-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,255,136,0.04) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,136,0.015) 2px, rgba(0,255,136,0.015) 3px);
  pointer-events: none;
  z-index: 0;
}

/* Nav bar */
.page-nav {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(0,0,0,0.8);
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
}

.page-nav .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00ff88;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.page-nav .logo:hover {
  text-shadow: 0 0 12px rgba(0,255,136,0.4);
}

.page-nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.page-nav-links a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-nav-links a:hover,
.page-nav-links a.active {
  color: #00ff88;
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.05);
}

/* Content container */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.page-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
}

/* Sections */
.page-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00ff88;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,255,136,0.15);
}

.section-body {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.section-body p {
  margin-bottom: 12px;
}

.section-body strong {
  color: #fff;
  font-weight: 700;
}

.section-body ul {
  list-style: none;
  padding: 0;
}

.section-body li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.section-body li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00ff88;
  opacity: 0.5;
}

/* Settings controls */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.setting-desc {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

/* Slider */
.setting-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.setting-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00ff88;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,255,136,0.3);
}

.setting-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00ff88;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(0,255,136,0.3);
}

.slider-val {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  transition: background 0.2s;
}

.toggle input:checked + .toggle-track {
  background: rgba(0,255,136,0.3);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle input:checked ~ .toggle-knob {
  transform: translateX(18px);
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0,255,136,0.4);
}

/* Select dropdown */
.setting-select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 24px 6px 10px;
  background: rgba(0,0,0,0.6);
  color: #00e5ff;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2300e5ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.setting-select option {
  background: #1a1a2e;
  color: #fff;
}

/* Keyboard shortcut table */
.shortcut-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.75rem;
}

.shortcut-key {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  text-align: center;
  white-space: nowrap;
}

.shortcut-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 32px 0;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
}

.page-footer a {
  color: rgba(0,255,136,0.4);
  text-decoration: none;
}

.page-footer a:hover {
  color: #00ff88;
}

/* ============================================
   HEADER GEAR ICON (in-game)
   ============================================ */
.hdr-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.hdr-link {
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  padding: 2px;
}

.hdr-link:hover {
  color: rgba(255,255,255,0.6);
}

.hdr-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 700px) {
  .page-content {
    padding: 24px 16px 48px;
  }

  .page-nav {
    padding: 10px 16px;
  }

  .page-title {
    font-size: 1.1rem;
  }

  .setting-slider input[type="range"] {
    width: 90px;
  }

  .shortcut-grid {
    font-size: 0.65rem;
  }
}
