/* Filter Bar Styles */
.filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0.2) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-bar__container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    padding: 8px 20px;
}

.filter-bar__title {
    font-weight: 500;
    font-size: 0.9rem;
    color: #3b82f6;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding-right: 12px;
    margin-right: 4px;
}

.filter-button {
    background: transparent;
    border: none;
    padding: 2px 12px;
    font-size: 0.9375rem;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    outline: none;
    font-weight: 400;
    position: relative;
}

.filter-button:hover {
    color: #e20613;
}

.filter-button.active {
    color: #e20613;
    font-weight: 500;
}

.filter-button.all {
    background-color: transparent;
    color: #374151;
    border: none;
}

.filter-button.all:hover {
    color: #e20613;
}

.filter-button.all.active {
    color: #e20613;
    font-weight: 500;
}

/* Animation for masonry items */
.masonry-item {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
    display: inline-block;
}

.masonry-item.filtered-out {
    opacity: 0;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transform: scale(0);
    pointer-events: none;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .filter-bar__title {
        display: none;
    }

    .filter-bar {
        padding: 10px;
    }
}
