/* ==========================================================================
   DROPDOWN NAVIGATION - Dark Theme
   Works with styles-dark.css
   ========================================================================== */

/* Desktop Dropdown Hover Effects */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Stagger animation for dropdown items */
.dropdown-menu li {
  opacity: 0;
  animation: fadeInStagger 0.2s ease forwards;
}

.dropdown:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.03s; }
.dropdown:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.06s; }
.dropdown:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.09s; }
.dropdown:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.12s; }
.dropdown:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.15s; }

@keyframes fadeInStagger {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile - Remove animation */
@media (max-width: 768px) {
  .dropdown-menu li {
    opacity: 1;
    animation: none;
  }
  
  .dropdown-toggle .arrow {
    margin-left: auto;
  }
  
  .dropdown.active .dropdown-toggle .arrow {
    transform: rotate(180deg);
  }
}

/* Active page highlight */
.dropdown-menu li a.active {
  background: rgba(129, 140, 248, 0.15);
  color: var(--primary);
}

/* Focus states for accessibility */
.dropdown-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dropdown-menu li a:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
