/* Modern Dropdown Navigation - SANDY */

.dropdown-nav {
    position: relative;
    z-index: 420; /* ZIndexManager.MIDGROUNDS.TABS = 150 */
}

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

.dropdown-trigger {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-trigger.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 200px;
    z-index: 520; /* ZIndexManager.FOREGROUNDS.DROPDOWNS = 520 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 8px;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-section {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    margin: 4px 0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .dropdown-menu {
        min-width: 250px;
        right: 0;
        left: auto;
    }
}