/* ========== SISTEMA DE TRADUÇÃO - ESTILOS COMPARTILHADOS ========== */
/* Estilos para os botões de idioma com bandeiras */

.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.lang-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    font-family: 'Inter', sans-serif;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotateY(360deg);
    opacity: 1;
}

.lang-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
    opacity: 1;
    transform: scale(1.05);
}

.lang-btn.active:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: scale(1.1) rotateY(360deg);
}

/* Transição suave do body ao trocar idioma */
body {
    transition: opacity 0.15s ease;
}

/* Transição suave em elementos traduzidos */
[data-i18n] {
    transition: opacity 0.15s ease;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .lang-selector {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 10px;
    }
    
    .lang-btn {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
}

/* Mobile menu aberto */
@media (max-width: 768px) {
    .nav-links.active .lang-selector {
        display: flex;
    }
}
