/* Custom Dropdown Styles для протоколов */

/* Filter Group Improvements */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1a3f67;
    font-size: 0.9rem;
}

.filter-icon {
    color: #1a3f67;
    flex-shrink: 0;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    min-width: 160px;
}

.dropdown-trigger {
    background: none;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    outline: none;
    position: relative;
    overflow: hidden;
}

.dropdown-trigger:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.dropdown-trigger.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dropdown Animation Effect */
.dropdown-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.dropdown-trigger:hover::before {
    left: 100%;
}

.dropdown-value {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26, 63, 103, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.dropdown-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover {
    background: var(--primary-color, #007bff);
    color: white;
}

.dropdown-item.active {
    background: var(--primary-color, #007bff);
    color: white;
    font-weight: 600;
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color, #007bff);
    border-radius: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #0056b3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .competitions-filters {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .custom-dropdown {
        min-width: auto;
        width: 100%;
    }
    
    .dropdown-trigger {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-label {
        font-size: 0.85rem;
    }
    
    .filter-icon {
        width: 14px;
        height: 14px;
    }
    
    .custom-dropdown {
        min-width: auto;
    }
    
    .dropdown-trigger {
        padding: 0.6rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
    }
    
    .dropdown-arrow {
        width: 10px;
        height: 6px;
    }
    
    .dropdown-menu {
        max-height: 250px;
        border-radius: 12px;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .custom-dropdown {
        min-width: auto;
    }
    
    .dropdown-trigger {
        padding: 0.55rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .filter-group {
        gap: 1rem;
    }
    
    .filter-label {
        font-size: 1rem;
    }
    
    .filter-icon {
        width: 18px;
        height: 18px;
    }
    
    .custom-dropdown {
        min-width: 180px;
    }
    
    .dropdown-trigger {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
        border-radius: 30px;
    }
    
    .dropdown-arrow {
        width: 14px;
        height: 10px;
    }
    
    .dropdown-menu {
        border-radius: 20px;
        max-height: 350px;
    }
    
    .dropdown-item {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
    .filter-label {
        font-size: 1.1rem;
    }
    
    .filter-icon {
        width: 20px;
        height: 20px;
    }
    
    .custom-dropdown {
        min-width: 200px;
    }
    
    .dropdown-trigger {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .dropdown-item {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
} 