/* Dropdown Menu Fix - ADDOHA */
.has-dropdown {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--gradient-red-blue);
  color: var(--text-light);
  transform: translateX(4px);
}

.dropdown-icon {
  color: var(--primary-blue);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.dropdown-link:hover .dropdown-icon {
  color: var(--text-light);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  width: 12px;
  height: 12px;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    box-shadow: none;
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    background: var(--surface);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
  }
  
  .dropdown-link {
    padding: 12px 20px 12px 40px;
  }
}
