/* ==========================================
   Premium Filter Styles
   ========================================== */

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

/* Filter Button */
.filter-btn {
    background: rgba(255, 255, 255, 0.05); /* Glass effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 35px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
.filter-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

body.light-mode .filter-btn:hover {
    background: var(--white);
    color: var(--navy-primary);
    border-color: var(--navy-primary);
}

/* Active State */
.filter-btn.active {
    background: var(--gold-gradient); /* Premium Gold Gradient */
    color: var(--navy-primary);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4); /* Strong Gold Glow */
    transform: translateY(-2px) scale(1.05);
    padding: 12px 40px; /* Slight expansion */
}

body.light-mode .filter-btn.active {
    background: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Active Indicator Dot (Optional Chic Touch) */
.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--navy-primary);
    border-radius: 50%;
    opacity: 0.6;
}

body.light-mode .filter-btn.active::after {
    background: var(--white);
}

/* Filter Items Animation */
.filter-item {
    transition: all 0.5s ease;
}

.filter-item.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.9);
}

.filter-item.visible {
    /* display: block; - Removed to preserve original display (e.g. flex) */
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom Animation Keyframe if not in main.css */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .filter-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        padding-left: 20px; /* Safe space */
        padding-right: 20px;
        margin-left: -15px; /* Negative margin to span full width */
        margin-right: -15px;
    }

    .filter-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        flex: 0 0 auto; /* Prevent shrinking */
        white-space: nowrap;
    }
}
