/* ═══ Shared theme variables for all CyberRMF website pages ═══ */
:root, [data-theme="dark"] {
  --bg:     #242426;
  --bg2:    #1f1f21;
  --bg3:    #333335;
  --border: #3e3e40;
  --text:   #e0e0e0;
  --muted:  #a0a0a0;
  --dim:    #6a6a6c;
  --accent: #3b82f6;
  --blue:   #2563eb;
  --mono:   'Consolas', 'Fira Code', 'SF Mono', 'Courier New', monospace;
  --nav-bg: rgba(36,36,38,0.97);
  --hero-bg: #1a1a1c;
  --footer-bg: #242426;
}
[data-theme="light"] {
  --bg:     #f5f5f5;
  --bg2:    #ffffff;
  --bg3:    #e8e8e8;
  --border: #d1d5db;
  --text:   #1a1a1a;
  --muted:  #1a1a1a;
  --dim:    #1a1a1a;
  --accent: #3b82f6;
  --blue:   #2563eb;
  --nav-bg: rgba(255,255,255,0.97);
  --hero-bg: #eaeaea;
  --footer-bg: #eaeaea;
}

/* ═══ Shared theme picker ═══ */
.theme-picker-wrap { position: relative; flex-shrink: 0; }
.theme-picker-btn {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); transition: box-shadow .2s, border-color .2s;
}
.theme-picker-btn:hover { box-shadow: 0 0 8px rgba(59,130,246,0.2); }
.theme-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
  padding: 8px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.4); z-index: 200;
}
.theme-dropdown.open { display: flex; flex-direction: column; gap: 6px; }
.theme-dropdown-label {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--muted); text-align: center; padding-bottom: 4px;
  border-bottom: 1px solid var(--border); margin-bottom: 2px;
}
.theme-swatch {
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--border); transition: transform .15s;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.current { border: 2px solid var(--accent); }

/* ═══ Shared light-theme component overrides ═══ */
[data-theme="light"] .nav-brand { color: #1a1a1a; }
[data-theme="light"] .nav-links a { color: #1a1a1a; }
[data-theme="light"] .nav-links a:hover { color: var(--text); background: rgba(0,0,0,.04); }
[data-theme="light"] .nav-links a.active { color: var(--text); }
[data-theme="light"] .snake-pill { color: var(--accent); border-color: rgba(59,130,246,0.3); }
[data-theme="light"] .snake-pill:hover { color: #fff; background: rgba(59,130,246,.1); }
[data-theme="light"] .nav-mobile-menu { background: #fff; border-bottom-color: var(--border); }
[data-theme="light"] .nav-mobile-menu a { color: #1a1a1a; }
[data-theme="light"] .nav-mobile-menu a.active { color: var(--accent); }
[data-theme="light"] .nav-hamburger { color: #1a1a1a; }
[data-theme="light"] .nav-logo polyline { stroke: #2563eb; }
[data-theme="light"] .nav-logo circle { fill: #2563eb; }
[data-theme="light"] .footer-tagline { color: #1a1a1a; }

/* ═══ Theme-aware logo + nav accent ═══ */
.nav-logo g { stroke: var(--accent); }
.nav-logo circle { fill: var(--accent); }
