/* Dropdown Menu Fix for User Navigation */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 0, 51, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    
    /* Ensure it's hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.d-none,
.dropdown-menu.hidden {
    display: none !important;
}

/* Show dropdown on hover or when active */
.dropdown:hover .dropdown-menu:not(.d-none):not(.hidden),
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-menu a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Ensure nav items don't wrap */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-cta {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        margin: 0.5rem 0 0 0;
        padding: 0;
    }
}