/* Sort Controls Styles */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--light-text, #777);
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.sort-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 105, 180, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.sort-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    position: relative;
    z-index: 1;
}

/* Style for default option */
.sort-option.active {
    background-color: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

/* Difficulty-specific styles when active */
.sort-option[for="sort-beginner"].active {
    background-color: rgba(75, 192, 192, 0.1);
    border-color: rgba(75, 192, 192, 0.3);
    box-shadow: 0 2px 8px rgba(75, 192, 192, 0.15);
}

.sort-option[for="sort-intermediate"].active {
    background-color: rgba(255, 159, 64, 0.1);
    border-color: rgba(255, 159, 64, 0.3);
    box-shadow: 0 2px 8px rgba(255, 159, 64, 0.15);
}

.sort-option[for="sort-advanced"].active {
    background-color: rgba(255, 99, 132, 0.1);
    border-color: rgba(255, 99, 132, 0.3);
    box-shadow: 0 2px 8px rgba(255, 99, 132, 0.15);
}

.sort-option:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sort-controls {
        flex-direction: column;
        margin: 0.5rem 0 1.5rem;
    }
    
    .sort-label {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sort-options {
        gap: 0.3rem;
    }
    
    .sort-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}