/**
 * EASYNET24 Translation Plugin - CSS
 * Stili per il selettore lingua
 */

/* Selettore Lingua - Nel Menu */
#translation-widget .lang-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#translation-widget .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#translation-widget .lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}

#translation-widget .lang-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    #translation-widget .lang-selector {
        gap: 0.3rem;
    }
    
    #translation-widget .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Stile alternativo - Dropdown */
.lang-selector.dropdown {
    flex-direction: column;
    border-radius: 10px;
    padding: 5px;
}

.lang-selector.dropdown button {
    border-radius: 8px;
    width: 100%;
    height: 35px;
    justify-content: flex-start;
    padding: 0 10px;
    gap: 8px;
}

/* Stile alternativo - Header integrato */
.lang-selector.header-style {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.lang-selector.header-style button {
    border: none;
    width: auto;
    height: auto;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #333;
    font-weight: 500;
}

.lang-selector.header-style button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Animazione di cambio lingua */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-translate] {
    animation: fadeIn 0.3s ease;
}

/* Tooltip per le bandiere */
.lang-selector button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lang-selector button:hover::after {
    opacity: 1;
}
