/* ============================================================
   AVIATOOLS.AI — Navigation  nav.css · v3.0
   ============================================================ */

/* ── Sticky nav strip ── */
#nav {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
  font-family: var(--mono); letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.3px;
}

/* Links */
.nav-links {
  display: flex; align-items: center;
  gap: 4px; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-links a.active { color: var(--ink); }

/* Right cluster */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-signin {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: var(--r-md);
  transition: color .15s;
}
.nav-signin:hover { color: var(--ink); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--hairline);
  border-radius: var(--r-md); cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink);
  transition: all .2s;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile sheet */
.nav-mobile-sheet {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  z-index: 899;
  flex-direction: column;
  padding: var(--sp-lg);
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile-sheet.open { display: flex; }
.nav-mobile-sheet a {
  font-size: 16px; font-weight: 500;
  color: var(--body);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile-sheet a:hover { background: var(--surface-soft); color: var(--ink); }
.nav-mobile-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: var(--sp-lg); padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
}
.nav-mobile-actions .btn { justify-content: center; width: 100%; height: 48px; font-size: 15px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
}
