/* ============================================================
   TestSutra — Navigation Styles
   ============================================================ */

.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-height);
  background: rgba(6, 12, 31, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  transition: background 0.3s;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { height: 28px; width: auto; }
.nav-logo-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.18);
}
.nav-logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.07); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(6, 12, 31, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 20px 24px;
  z-index: 299;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.nav-mobile-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-mobile-link.active { color: var(--white); }
.nav-mobile-divider { height: 1px; background: var(--hairline); margin: 8px 0; }
.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: var(--bright);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.15s;
}
.nav-mobile-cta:hover { background: #3a6ef0; color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ts-nav { padding: 0 32px; }
  .nav-links .nav-link { padding: 7px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  .ts-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-brand { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .ts-nav { padding: 0 16px; }
}
