/* =============================================================================
   FILTER COMPONENT
   ============================================================================= */

.filter {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter::-webkit-scrollbar {
    display: none;
}

.filter__container {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    padding-right: 3rem;
    min-width: fit-content;
    width: max-content;
}

.filter__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 1rem;
    padding: 0.875rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 72px;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

.filter__btn:hover {
    background: rgba(46, 125, 50, 0.08);
    border-color: rgba(46, 125, 50, 0.25);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    transform: translateY(-1px);
}

.filter__btn.is-active {
    background: rgba(46, 125, 50, 0.12);
    border-color: #2E7D32;
    color: #2E7D32;
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.25);
    transform: translateY(-1px);
}

.filter__icon {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) grayscale(100%);
    transition: filter 0.2s ease;
}

.filter__btn:hover .filter__icon,
.filter__btn.is-active .filter__icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) grayscale(0%);
}

.filter__text {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.filter__remove {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #d32f2f;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter__btn:hover .filter__remove {
    opacity: 1;
}