/* ═══════════════════════════════════ */
/* DROPDOWN MENU COMPONENT             */
/* ═══════════════════════════════════ */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .95rem;
  transition: color .2s ease;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-left: 2px;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
}

.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--white);
}

/* Invisible hover bridge */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: rgba(20, 23, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1), visibility .25s ease, transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 9999;
  padding: 12px;
  gap: 6px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.nav-dropdown-menu a {
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .25s cubic-bezier(0.4, 0, 0.2, 1), color .25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border: none;
  margin: 0;
  border-radius: 10px;
  position: relative;
}

.nav-dropdown-menu a::after {
  content: '→';
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1), transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  margin-left: 8px;
  display: inline-block;
}

.nav-dropdown-menu a:first-child {
  border-radius: 10px;
}

.nav-dropdown-menu a:last-child {
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-dropdown-menu a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.nav-dropdown-menu a.no-arrow::after {
  display: none;
}
