/* ========================================== */
/* 🎨 ADVANCED FILTERS STYLES */
/* Version: 1.0.0 */
/* ========================================== */

/* Filter Card */
.filter-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.filter-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

/* Filter Section */
.filter-section {
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.price-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    transition: all 0.2s;
}

.price-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-separator {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9ca3af;
    padding-top: 28px;
}

.price-range-display {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
}

/* Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-option:hover {
    background: #f9fafb;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.filter-option-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.filter-count {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Color Swatch */
.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e5e7eb;
    margin-left: 8px;
    vertical-align: middle;
}

/* Stars Display */
.stars-display {
    display: inline-flex;
    gap: 2px;
    font-size: 1rem;
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    padding: 10px;
    background: #f9fafb;
    color: #3b82f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* Apply Filters Button */
.btn-apply-filters {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-apply-filters:active {
    transform: translateY(0);
}

/* AdSense Sidebar */
.adsense-sidebar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.ad-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .filter-card {
        padding: 20px;
    }
    
    .filter-header {
        margin-bottom: 20px;
    }
    
    .filter-title {
        font-size: 1.125rem;
    }
    
    .clear-filters-btn {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* Active Filter Indicator */
.filter-option input[type="checkbox"]:checked + .filter-option-label {
    color: #3b82f6;
    font-weight: 600;
}

/* Loading State */
.filters-loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.filters-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
