/* css/navigation.css - Desktop & Mobile Navigation (Rule 5 < 185 lines) */

.v2-nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 58px;
  display: flex;
  align-items: center;
  width: 100%;
}
.v2-nav-inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(10px, 1.6vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v2-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.v2-nav-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.v2-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
}
.v2-nav-link {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.v2-nav-link:hover { color: #f8fafc; }

/* Dropdowns */
.nav-dropdown-wrapper { position: relative; display: inline-block; padding: 6px 0; }
.dropdown-chevron { transition: transform 0.2s ease; opacity: 0.7; }
.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper:focus-within .dropdown-chevron { transform: rotate(180deg); opacity: 1; color: #38bdf8; }
.nav-dropdown-wrapper:hover .nav-dropdown-trigger { color: #f8fafc; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.1);
  padding: 8px;
  min-width: 250px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.06); }
.dropdown-item-title { font-size: 0.82rem; font-weight: 600; color: #f8fafc; transition: color 0.15s ease; }
.dropdown-item:hover .dropdown-item-title { color: #38bdf8; }
.dropdown-item-desc { font-size: 0.72rem; color: #94a3b8; line-height: 1.35; margin-top: 2px; }

/* Right Actions */
.v2-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#edge-radar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  font-family: monospace;
}
.edge-radar-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; display: inline-block; }
#cmd-k-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  cursor: pointer;
}
.cmd-k-label { display: inline-block; }
#nav-cmd-key { font-family: monospace; font-size: 0.7rem; padding: 1px 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; color: #cbd5e1; }
.v2-nav-github { color: #94a3b8; display: flex; align-items: center; transition: color 0.15s ease; }
.v2-nav-github:hover { color: #f8fafc; }
.nav-cta-btn { cursor: pointer; border: none; padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; }

@media (max-width: 1040px) {
  .v2-nav-links { display: none; }
}
@media (max-width: 768px) {
  .v2-nav-github { display: none; }
}
@media (max-width: 640px) {
  #edge-radar-badge { display: none; }
  #cmd-k-trigger { display: none; }
  .nav-cta-btn { padding: 5px 10px; font-size: 0.76rem; }
}
