/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.lang-btn:hover {
    color: #E1C7B7;
    transform: translateY(-1px);
}

.lang-btn.active {
    color: #E1C7B7;
    font-weight: 700;
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #E1C7B7;
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    user-select: none;
}

/* Animazione per la comparsa della sottolineatura */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        right: 20px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .lang-btn {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .lang-separator {
        font-size: 13px;
    }
}

/* Effetto glow al focus per accessibilità */
.lang-btn:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Versione alternativa più minimalista (se preferisci) */
.language-switcher.minimal {
    background: transparent;
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: none;
}

.language-switcher.minimal .lang-btn {
    color: rgba(212, 165, 116, 0.8);
}

.language-switcher.minimal .lang-btn.active {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 20px;
}

/* Versione con sfondo scuro (per sezioni chiare) */
.language-switcher.dark {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.language-switcher.dark .lang-btn {
    color: rgba(255, 255, 255, 0.8);
}

.language-switcher.dark .lang-btn.active,
.language-switcher.dark .lang-btn:hover {
    color: #d4a574;
}