/* ============================================================
   DARKSAINT GAMES — Shared site navigation (standalone pages)
   Include on documentation / isolated HTML that does not load
   the full style.css, so nav matches index.html 1:1.
   ============================================================ */

:root {
  --bg:          #0d0f14;
  --surface:     #12161f;
  --surface2:    #181d28;
  --surface3:    #1d2333;
  --border:      #252d3d;
  --border2:     #2e3a50;
  --text:        #c8d0e8;
  --text-dim:    #6878a0;
  --text-bright: #eef2ff;
  --text-faint:  #3d4a65;
  --teal:   #3dba8f;
  --purple: #7c5cbf;
  --blue:   #5b8dee;
  --gold:   #c9a84c;
  --orange: #d4833a;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h:    64px;
  --r-xs:     5px;
  --ease:     0.2s ease;
}

/* Sticky stack: keeps site + secondary bar together (e.g. master guide tabs) */
.doc-nav-stack {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--bg);
}
.doc-nav-stack .site-nav {
  position: relative;
  top: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(13, 15, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.nav-logo .logo-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.nav-logo .logo-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-logo .logo-main span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--text-dim);
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-links a.active { color: var(--text-bright); background: var(--surface3); border-color: var(--border2); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  transition: all var(--ease);
  text-decoration: none;
}
.btn-discord {
  background: rgba(91, 141, 238, 0.12);
  border-color: rgba(91, 141, 238, 0.3);
  color: var(--blue);
}
.btn-discord:hover { background: rgba(91, 141, 238, 0.22); border-color: rgba(91, 141, 238, 0.5); }
.btn-fab {
  background: rgba(61, 186, 143, 0.12);
  border-color: rgba(61, 186, 143, 0.3);
  color: var(--teal);
}
.btn-fab:hover { background: rgba(61, 186, 143, 0.22); border-color: rgba(61, 186, 143, 0.5); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  color: var(--text-dim);
  transition: all var(--ease);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface2); }

@media (hover: none) and (pointer: coarse) {
  .nav-hamburger { min-height: 44px; min-width: 44px; justify-content: center; }
  .nav-mobile a { min-height: 44px; }
}

@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .nav-mobile a {
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .site-nav { padding: 0 16px; }
}
