/* Modern Filters CSS - Enhanced UI Components */

/* === Modern Filter Card === */
.modern-filter-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.modern-filter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.modern-gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.modern-gradient-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* === Modern Labels === */
.modern-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.modern-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
    margin-left: 12px;
}

/* === Modern Filter Groups === */
.modern-filter-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-filter-group:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

/* === Modern Radio Items === */
.modern-radio-item {
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.modern-radio-item:hover {
    transform: translateX(4px);
}

.modern-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    transition: all 0.2s ease;
}

.modern-radio:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-radio-label {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #e2e8f0;
    margin-bottom: 0;
    font-weight: 500;
    color: #4a5568;
}

.modern-radio-label:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-radio:checked + .modern-radio-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* === Filter Option Content === */
.filter-option-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.filter-icon {
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.modern-radio:checked + .modern-radio-label .filter-icon {
    opacity: 1;
    transform: scale(1.1);
}

.filter-emoji {
    font-size: 1.2em;
    filter: grayscale(0.3);
    transition: filter 0.2s ease;
}

.modern-radio:checked + .modern-radio-label .filter-emoji {
    filter: grayscale(0);
}

.filter-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Modern Badges === */
.modern-badge {
    background: #e2e8f0;
    color: #4a5568;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.modern-radio:checked + .modern-radio-label .modern-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-badge.small {
    padding: 2px 8px;
    font-size: 0.75rem;
    min-width: 32px;
}

/* === Subcategory Styles === */
.subcategory-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.subcategory-item .modern-radio-label {
    padding: 8px 12px;
    font-size: 0.85rem;
    background: white;
}

.subcategory-item .filter-icon.small {
    font-size: 0.7rem;
}

/* === Modern Select === */
.modern-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    color: #4a5568;
    background: white;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.modern-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.modern-select:hover {
    border-color: #cbd5e0;
}

/* === Modern Range Slider === */
.modern-range {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    transition: all 0.2s ease;
}

.modern-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.modern-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.modern-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* === Modern Button Group === */
.modern-btn-group .modern-btn {
    border: 2px solid #e2e8f0;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.modern-btn-group .modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Modern Primary Button === */
.modern-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn-primary:hover::before {
    left: 100%;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

/* === Range Slider Container === */
.range-slider-container {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.range-labels {
    margin-top: 8px;
}

/* === Distance Presets === */
.distance-preset {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.distance-preset:hover {
    transform: translateY(-1px);
}

.distance-preset.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

/* === Filter Summary === */
.filter-summary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.filter-summary:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* === Animation Classes === */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .modern-filter-card {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .modern-radio-label {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .modern-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .modern-btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .range-slider-container {
        padding: 12px;
    }
}

/* === Dark Mode Support === */
@media (prefers-color-scheme: dark) {
    .modern-filter-card {
        background: rgba(26, 32, 44, 0.95);
        color: #e2e8f0;
    }

    .modern-filter-group {
        background: #2d3748;
        border-color: #4a5568;
    }

    .modern-radio-label {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .modern-select {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}
