﻿/* Filters Popup Overlay */
.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filters-popup {
    width: 55%;
    max-height: 85vh;
    background-color: var(--color-background);
    color: var(--color-on-background);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.filters-popup__title {
    font-family: "Lexend Deca", sans-serif;
    font-size: 1.53rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.filters-popup__columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem 2.5rem;
    margin-bottom: 1.5rem;
}

.filters-popup__column-title {
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.filters-popup__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    cursor: pointer;
    font-family: "Lexend Deca", sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
}

.filters-popup__item:hover {
    opacity: 0.8;
}

.filters-popup__checkbox {
    width: 1.17rem;
    height: 1.17rem;
    border: 2px solid rgba(128, 128, 128, 0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 100ms ease;
}

.filters-popup__item.active .filters-popup__checkbox {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.filters-popup__check {
    font-size: 0.77rem;
    opacity: 0;
}

.filters-popup__item.active .filters-popup__check {
    opacity: 1;
}

.filters-popup__numeric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem 0;
}

.filters-popup__numeric label {
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.7;
}

.filters-popup__numeric input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    background: rgba(128, 128, 128, 0.1);
    color: inherit;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.filters-popup__numeric input:focus {
    outline: 2px solid var(--color-primary);
}

.filters-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.filters-popup__btn {
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 100ms ease;
}

.filters-popup__btn:hover {
    opacity: 0.85;
}

.filters-popup__btn--apply {
    background: linear-gradient(135deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 65%, white) 100%);
    color: white;
}

.filters-popup__btn--reset {
    background: rgba(128, 128, 128, 0.2);
    color: var(--color-on-background);
}
