/**
 * Language Switcher Styles
 * 
 * Stili per il selettore di lingua riutilizzabile
 * 
 * @author SNELLIX Team
 * @date 2025-11-21
 */

/* Contenitore bottoni lingua */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Bottone lingua base - Solo bandiera */
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    width: 50px;
    height: 50px;
    line-height: 1;
}

/* Effetto hover */
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(146, 255, 13, 0.8) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(146, 255, 13, 0.3);
}

/* Stato attivo (lingua selezionata) */
.lang-btn.active {
    background: rgba(146, 255, 13, 0.3) !important;
    border-color: #92ff0d !important;
    border-width: 3px;
    box-shadow: 0 0 20px rgba(146, 255, 13, 0.6);
    transform: scale(1.1);
}

/* Effetto click */
.lang-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive per schermi piccoli */
@media (max-width: 400px) {
    .language-switcher {
        gap: 0.6rem;
    }
    
    .lang-btn {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        padding: 0.4rem;
    }
}

/* Variante per pagine con background chiaro */
.lang-btn.light-mode {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.lang-btn.light-mode:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(146, 255, 13, 0.8) !important;
}

.lang-btn.light-mode.active {
    background: rgba(146, 255, 13, 0.3) !important;
    border-color: #92ff0d !important;
    border-width: 3px;
}

/* Animazione fade-in al caricamento */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
