/*
 * Bileşen: ER-Category-Filter
 * Kullanım: Kategori sayfalarında (Konser, Tiyatro vb.) detaylı filtreleme barı.
 */

.er-cat-filter-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.er-cat-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.er-cat-filter-group {
    flex: 1;
    min-width: 160px;
    position: relative;
}

.er-cat-filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.er-cat-filter-dropdown-btn {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.er-cat-filter-dropdown-btn:hover {
    border-color: var(--primary);
    background: white;
}

.er-cat-filter-group.active .er-cat-filter-dropdown-btn {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.er-cat-filter-dropdown-btn i {
    width: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.er-cat-filter-group.active .er-cat-filter-dropdown-btn i {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.er-cat-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px; /* Daha geniş */
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 8px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

/* Price Slider Specifics */
.er-cat-price-slider-wrapper {
    padding: 15px 10px;
}

.er-cat-price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 500;
}

.er-cat-range-input {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    appearance: none;
    outline: none;
    margin: 10px 0;
}

.er-cat-range-input::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.er-cat-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.er-cat-filter-group.active .er-cat-filter-menu {
    display: block;
    animation: fadeInSlideUp 0.2s ease-out;
}

.er-cat-filter-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.er-cat-filter-item:hover {
    background: var(--bg-card);
    color: var(--primary);
}

.er-cat-filter-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 500;
}

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

.er-cat-filter-search {
    flex: 1.5;
    min-width: 200px;
}

.er-cat-filter-input {
    width: 100%;
    padding: 10px 15px;
    padding-left: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.er-cat-filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.er-cat-filter-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 18px;
}

.er-cat-filter-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .er-cat-filter-section {
        display: none !important;
    }
}
