/* 
 * Modern Competitions Filter Redesign
 */

.modern-filters-container {
    background: transparent;
}

/* Search Box Styling */
.filters-top-row .search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 280px;
}

.dark-theme .filters-top-row .search-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.light-theme .filters-top-row .search-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.filters-top-row .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(209, 32, 38, 0.15);
}

.filters-top-row .search-box input {
    height: 48px;
    color: var(--text-color) !important;
    font-weight: 500;
}

.filters-top-row .search-box input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

/* Glass Button Dropdowns */
.glass-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    padding: 0 20px !important;
    height: 48px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center;
    transition: all 0.3s ease !important;
}

.light-theme .glass-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
}

.glass-dropdown {
    background: rgba(20, 20, 30, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    margin-top: 10px !important;
}

.light-theme .glass-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.glass-dropdown .dropdown-item {
    color: var(--text-color) !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(209, 32, 38, 0.1) !important;
    color: var(--primary) !important;
}

.glass-dropdown .dropdown-item.active {
    background: var(--primary) !important;
    color: white !important;
}

/* Category Pills Styling */
.category-pills-wrapper {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.category-pills-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 10, 15, 0.8));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 50px 50px 0;
}

.light-theme .category-pills-wrapper::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
}

.category-pills {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-right: 50px;
}

.category-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.pill-btn {
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.light-theme .pill-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.pill-btn:hover {
    background: rgba(209, 32, 38, 0.08) !important;
    border-color: var(--primary) !important;
}

.pill-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(209, 32, 38, 0.3);
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .filters-top-row {
        gap: 10px !important;
    }
    
    .filters-top-row .search-box {
        order: 1;
        width: 100%;
    }
    
    .filter-dropdown {
        flex: 1;
    }
    
    .glass-btn {
        width: 100% !important;
        justify-content: center;
        padding: 0 10px !important;
        font-size: 0.8rem !important;
    }
    
    .category-pills-wrapper {
        margin-bottom: 10px;
    }
}
