/* src/shared/components/CustomDropdown/CustomDropdown.css */

.custom-dropdown {
    position: relative;
    width: auto;
}

/* Mobile: Full width dropdowns */
@media (max-width: 768px) {
    .custom-dropdown {
        width: 100%;
    }
    
    .theme-toggle .custom-dropdown {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .theme-toggle .custom-dropdown-selected {
        padding: var(--btn-padding) !important;
        font-size: var(--font-size-xs) !important;
        width: auto !important;
        height: auto !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }
}

.custom-dropdown-selected {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-dark);
    background: var(--surface-dark);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    transition: all var(--transition-speed);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.light-theme .custom-dropdown-selected {
    background: var(--surface-light) !important;
    border-color: var(--border-light) !important;
    color: var(--text-light) !important;
}

.custom-dropdown-selected:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Add dropdown arrow */
.custom-dropdown-selected::after {
    content: '▼';
    font-size: 0.8em;
    color: var(--gold-accent);
    transition: transform var(--transition-speed);
}

.custom-dropdown.open .custom-dropdown-selected::after {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    display: none;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    margin-top: 4px;
    max-height: 200px;
    z-index: var(--z-modal);
    box-shadow: var(--card-shadow-dark);
    animation: slideUp var(--animation-speed-normal) ease-out;
}

body.light-theme .custom-dropdown-options {
    background: var(--surface-light) !important;
    border-color: var(--border-light) !important;
    box-shadow: var(--card-shadow-light) !important;
}

.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-option {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    padding-right: var(--spacing-xs);
    padding-left: var(--spacing-xs);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: var(--font-size-xs);
    color: var(--text-dark);
}

body.light-theme .custom-dropdown-option {
    color: var(--text-light) !important;
}

.custom-dropdown-options .simplebar-content .custom-dropdown-option {
    padding-right: 20px;
    margin-right: 12px;
}

.custom-dropdown-options .simplebar-content .custom-dropdown-option:hover {
    margin-right: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-dropdown-option:hover {
    background: var(--gold-accent);
    color: var(--color-black);
}

.custom-dropdown-option.selected {
    background: var(--gold-alpha-10);
    color: var(--gold-accent);
}

body.light-theme .custom-dropdown-option.selected {
    background: var(--gold-alpha-20) !important;
}

/* Disabled option with coming soon overlay */
.custom-dropdown-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
    pointer-events: none;
}

.custom-dropdown-option.disabled:hover {
    background: transparent;
    color: var(--text-dark);
}

body.light-theme .custom-dropdown-option.disabled:hover {
    color: var(--text-light) !important;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.75);
    border-radius: var(--border-radius);
    border: 1px solid var(--gold-accent);
    pointer-events: none;
}

body.light-theme .coming-soon-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
}

.coming-soon-overlay i {
    font-size: var(--font-size-xs);
    color: var(--gold-accent);
}

.coming-soon-overlay span {
    font-size: var(--font-size-xss);
    color: var(--gold-accent);
    font-family: var(--font-display);
    letter-spacing: var(--letter-spacing-base);
}
