/* ============================================================
   VibeSecurity - Nav Component
   ============================================================ */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  width: calc(100% - 48px);
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 44px;
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: border-color var(--dur-base);
}
.nav:hover { border-color: rgba(255, 255, 255, 0.18); }

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-wordmark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Live dot on logo */
.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p);
  box-shadow: 0 0 8px var(--p);
  animation: navPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Center links */
.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 7px;
  transition: color var(--dur-fast), background var(--dur-fast);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

/* Right actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-ghost {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: color var(--dur-fast);
  user-select: none;
}
.nav-ghost:hover { color: var(--ink); }

.nav-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--p);
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-base);
  box-shadow: 0 0 0 0 rgba(124, 93, 249, 0);
}
.nav-pill:hover {
  background: var(--p-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.nav-pill:active { transform: scale(0.97); }

/* Mobile: hide center links */
@media (max-width: 640px) {
  .nav-center { display: none; }
  .nav-ghost  { display: none; }
}
