/**
 * CC Taxonomy Filter - Styles
 */

.cc-tax-filter-module {
    margin: 30px 0;
}

.cc-tax-filter-wrapper {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-top: 3px solid #FDB913;
}

.cc-tax-filter-form {
    width: 100%;
}

.cc-tax-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.cc-tax-filter-item {
    flex: 1 1 250px;
    min-width: 200px;
}

.cc-tax-filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.cc-tax-filter-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 15px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3e%3c/svg%3e") no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cc-tax-filter-select:hover {
    border-color: #FDB913;
    background-color: #fffef5;
}

.cc-tax-filter-select:focus {
    outline: none;
    border-color: #FDB913;
    box-shadow: 0 0 0 3px rgba(253,185,19,0.15);
}

.cc-tax-filter-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cc-tax-filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cc-tax-filter-submit {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    background: #FDB913;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(253,185,19,0.3);
}

.cc-tax-filter-submit:hover {
    background: #f5b000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253,185,19,0.4);
}

.cc-tax-filter-submit:active {
    transform: translateY(0);
}

.cc-tax-filter-reset {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cc-tax-filter-reset:hover {
    color: #333;
    background: #e8e8e8;
    border-color: #999;
    text-decoration: none;
}

/* État actif */
.cc-tax-filter-select.has-value {
    border-color: #FDB913;
    background-color: #fffef5;
}

/* Responsive */
@media (max-width: 768px) {
    .cc-tax-filter-wrapper {
        padding: 20px 15px;
    }
    
    .cc-tax-filter-row {
        flex-direction: column;
    }
    
    .cc-tax-filter-item {
        width: 100%;
    }
    
    .cc-tax-filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cc-tax-filter-submit,
    .cc-tax-filter-reset {
        width: 100%;
        text-align: center;
    }
}

/* Loading state */
.cc-tax-filter-loading {
    opacity: 0.5;
    pointer-events: none;
}

.cc-tax-filter-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #FDB913;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cc-spin 1s linear infinite;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}
