/**
 * Dropdown Component Styles
 * Based on Ant Design dropdown styling
 */

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 4px;
  cursor: pointer;
  min-height: 32px;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
}

.dropdown-item.disabled {
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
  pointer-events: none;
}

.dropdown-item.danger {
  color: #ff4d4f;
}

.dropdown-item.danger:hover {
  background: rgba(255, 77, 79, 0.1);
  color: #ff7875;
}

.dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.dropdown-item-label {
  flex: 1;
}

/* Dropdown wrapper container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Enhanced dropdown positioning */
.dropdown-menu {
  position: absolute;
  z-index: 9999;
  background: rgba(18, 36, 22, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.3),
              0 3px 6px -4px rgba(0, 0, 0, 0.2),
              0 9px 28px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown trigger styles */
.dropdown-trigger {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.dropdown-trigger:focus {
  outline: 2px solid var(--gold-lighter);
  outline-offset: 2px;
}

/* Arrow icon for dropdown */
.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-menu.open + .dropdown-trigger .dropdown-arrow {
  transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.9);
    min-width: 280px;
    max-width: 90vw;
  }
  
  .dropdown-menu.open {
    transform: translate(-50%, -50%) scale(1);
  }
}
