/* Language Switcher Enhanced */
.language-switcher {
    display: flex;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 22px;
    padding: 3px;
    gap: 2px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.lang-btn:hover {
    transform: translateY(-1px);
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.lang-btn:hover::before {
    opacity: 0.1;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.lang-btn.active::before {
    opacity: 0;
}

.flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* French Flag */
.flag-fr {
    background: linear-gradient(to right, #002654 33.33%, #ffffff 33.33%, #ffffff 66.66%, #FF4143 66.66%);
}

/* US/UK Flag simplified */
.flag-en {
    background: linear-gradient(
        45deg,
        #002654 0%,
        #002654 25%,
        #ffffff 25%,
        #ffffff 50%,
        #FF4143 50%,
        #FF4143 75%,
        #ffffff 75%,
        #ffffff 100%
    );
    background-size: 8px 8px;
}

/* Alternative flag icons using emojis for better compatibility */
.lang-btn .flag-emoji {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .language-switcher {
        padding: 2px;
        border-radius: 18px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .flag-icon {
        width: 16px;
        height: 16px;
    }
}
