/* Canonical nav styles — used by index.html and all sub-pages with the dropdown nav. */

/* Glass nav background */
.nav-glass {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.nav-glass.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-dropdown-trigger:hover { color: #fff; }
.nav-dropdown-arrow {
  transition: transform 0.2s ease;
  width: 12px;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  margin-top: 6px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Bridge the hover gap between trigger and menu so the menu doesn't snap shut */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-item:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #fff;
}
.nav-dropdown-item .item-desc {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}
.nav-dropdown-item:hover .item-desc { color: #cbd5e1; }
.nav-dropdown-item-text {
  display: flex;
  flex-direction: column;
}
.nav-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #0EA5E9, #38BDF8);
  color: #fff;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1;
}
