/**
 * CSS para o seletor de idioma fixo na lateral - Inox do Brasil
 * Posicionamento fixo no lado direito da tela
 */

/* Container fixo na lateral direita */
.fixed-lang-selector {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 8px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Container das bandeiras */
.fixed-lang-selector .lang-flags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Opcao de idioma individual */
.fixed-lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
}

.fixed-lang-option:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: #2e7d32;
}

.fixed-lang-option.active {
    opacity: 1;
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
}

/* Imagem da bandeira */
.fixed-lang-option img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Garante que o clique passe para o link pai */
}

/* Transicao suave ao mudar idioma */
[data-i18n],
[data-i18n-html],
[data-i18n-placeholder],
[data-i18n-alt],
[data-i18n-title] {
    transition: opacity 0.2s ease;
}

.i18n-loading [data-i18n],
.i18n-loading [data-i18n-html] {
    opacity: 0.5;
}

/* Responsivo - Tablet e Desktop grande */
@media (min-width: 1400px) {
    .fixed-lang-selector {
        right: 25px;
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .fixed-lang-selector {
        right: 10px;
        top: auto;
        bottom: 100px;
        transform: none;
        padding: 8px 6px;
    }

    .fixed-lang-option {
        width: 32px;
        height: 32px;
    }

    .fixed-lang-option img {
        width: 20px;
        height: 15px;
    }
}

/* Evitar sobreposicao com botao WhatsApp */
@media (max-width: 576px) {
    .fixed-lang-selector {
        bottom: 150px;
        right: 8px;
    }
}

/* Animacao de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@media (min-width: 769px) {
    .fixed-lang-selector {
        animation: slideInRight 0.5s ease-out;
    }
}

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

@media (max-width: 768px) {
    .fixed-lang-selector {
        animation: slideInUp 0.5s ease-out;
    }
}
