/**
 * Language Selector Styles
 * Seletor de idioma com bandeiras (BR, US, ES)
 */

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 2px solid transparent;
    font-size: 20px;
    padding: 0;
    text-decoration: none;
}

.lang-option:hover {
    transform: scale(1.1);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
}

.lang-option.active {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.lang-option:active {
    transform: scale(0.95);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        gap: 6px;
    }
    
    .lang-option {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Dark mode support */
[data-theme="dark"] .lang-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .lang-option.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

/* Tooltip (opcional) */
.lang-option[title] {
    position: relative;
}

.lang-option[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 4px 8px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Para o menu mobile */
.mobile-menu .language-selector {
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.mobile-menu .lang-option {
    width: 40px;
    height: 40px;
    font-size: 24px;
}

