/* ============================================
   GALLERY FILTER STYLES
   ============================================ */

/* Language switch button */
.lang-switch {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    transition: var(--transition);
    margin-left: 4px;
}

.lang-switch:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(232, 160, 32, 0.08) !important;
}

/* Gallery filter buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.filter-btn {
    background: var(--dark-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 79, 160, 0.35);
}

/* Gallery grid — 4 columns on wide screens */
.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
}

/* Hide/show filtered items */
.projeto-item.hidden {
    display: none !important;
}

.projeto-item.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

/* Category tag colors */
.projeto-tag[data-type="clp"],
.projeto-tag:contains("CLP"),
.projeto-tag:contains("PLC") {
    background: rgba(26, 79, 160, 0.15);
    border-color: rgba(26, 79, 160, 0.3);
    color: #90b5f0;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
