/* Estilos do Seletor de Idiomas */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.language-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.current-language i {
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.current-language.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
    min-height: 20px;
    justify-content: flex-start;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option:first-child {
    border-radius: 6px 6px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 6px 6px;
}

.language-option span {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    margin-left: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 10px;
    }
    
    .current-language {
        padding: 6px 10px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
        margin-right: 6px;
    }
    
    .language-text {
        font-size: 13px;
        margin-right: 6px;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
    
    .language-option {
        padding: 10px 12px;
    }
    
    .language-option span {
        font-size: 13px;
    }
}

/* Estilos para tema escuro */
@media (prefers-color-scheme: dark) {
    .current-language {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .current-language:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .language-dropdown {
        background: rgba(0, 0, 0, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .language-option:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Animações suaves */
.language-selector * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de foco para acessibilidade */
.current-language:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.language-option:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

/* Melhorias para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    .current-language {
        padding: 10px 14px;
    }
    
    .language-option {
        padding: 14px 16px;
    }
}
