/* Multilingual Toggle Styles */
.language-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
    width: fit-content;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.language-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.language-option:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    animation: flagWave 2s infinite;
}

.language-option.active .flag-icon {
    animation: flagPulse 0.6s ease;
    transform: scale(1.1);
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

@keyframes flagPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.language-text {
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-option.active .language-text {
    font-weight: 600;
}

/* Content fade animations */
.content-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.content-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .language-toggle {
        padding: 3px;
    }
    
    .language-option {
        padding: 6px 10px;
    }
    
    .flag-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
    
    .language-text {
        font-size: 13px;
    }
}

/* Flag SVG styles for better rendering */
.flag-svg {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}