/* ============================================================
   PERSIVA METHOD BRAND GUIDE — NAVIGATION.CSS
   Left sidebar navigation system
   ============================================================ */

/* ── LAYOUT SHELL ───────────────────────────────────────────── */
.guide-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.guide-nav {
  width: var(--nav-width);
  min-height: 100vh;
  background: #0A1219;
  border-right: 1px solid var(--ink-700);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Emerald top rule */
.guide-nav::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--emerald-600);
  flex-shrink: 0;
}

/* ── NAV HEADER ─────────────────────────────────────────────── */
.nav-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--ink-700);
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  margin-bottom: 10px;
}

.nav-logo img,
.nav-logo svg {
  height: 28px;
  width: auto;
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-400);
  line-height: 1.5;
}

/* ── NAV META ───────────────────────────────────────────────── */
.nav-meta {
  padding: 12px 24px;
  border-bottom: 1px solid var(--ink-700);
  flex-shrink: 0;
}

.nav-meta-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
  display: block;
}

.nav-meta-value {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--slate-300);
}

/* ── NAV ITEMS ──────────────────────────────────────────────── */
.nav-list {
  padding: 16px 0;
  flex: 1;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
  padding: 10px 24px 4px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(13, 122, 82, 0.06);
  border-left-color: var(--emerald-800);
}

.nav-item:hover .nav-item-text {
  color: var(--parchment-100);
}

.nav-item.active {
  background: rgba(13, 122, 82, 0.10);
  border-left-color: var(--emerald-600);
}

.nav-item.active .nav-item-number {
  color: var(--emerald-600);
}

.nav-item.active .nav-item-text {
  color: var(--parchment-100);
}

.nav-item-number {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-400);
  flex-shrink: 0;
  width: 18px;
  transition: color var(--transition-fast);
}

.nav-item-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--slate-600);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

/* Reserved/coming soon item */
.nav-item.reserved .nav-item-text {
  color: var(--ink-600);
}

.nav-item.reserved:hover {
  background: none;
  border-left-color: transparent;
  cursor: default;
}

.nav-item.reserved:hover .nav-item-text {
  color: var(--ink-600);
}

.nav-item-badge {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--ink-600);
  background: var(--ink-800);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── NAV FOOTER ─────────────────────────────────────────────── */
.nav-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ink-700);
  flex-shrink: 0;
}

.nav-footer-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  line-height: 1.6;
}

.nav-footer-text a {
  color: var(--emerald-800);
  transition: color var(--transition-fast);
}

.nav-footer-text a:hover {
  color: var(--emerald-600);
}

/* ── CONTENT AREA ───────────────────────────────────────────── */
.guide-content {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
  background: var(--ink-900);
}

/* ── CONTENT PANEL ──────────────────────────────────────────── */
.content-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE NAV TOGGLE ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--parchment-100);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; gap: 6px; }

  .guide-nav {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

  .guide-nav.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.5);
  }

  .guide-content {
    margin-left: 0;
    padding-top: 60px;
  }
}
