/* Language Switcher - 3D Style with Flags */
.xtreme-lang-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.xtreme-lang-button {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(109, 56, 214, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(109, 56, 214, 0.1);
    transform: perspective(1000px) rotateX(0deg);
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.xtreme-lang-button:hover {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 6px 18px rgba(109, 56, 214, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transform: perspective(1000px) rotateX(-5deg) translateY(-3px) scale(1.02);
}

.xtreme-lang-button:active {
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(109, 56, 214, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.xtreme-lang-flag {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: inline-block;
}

.xtreme-lang-code {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.xtreme-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 6px 18px rgba(109, 56, 214, 0.3);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(109, 56, 214, 0.1);
    max-height: 0;
    overflow: hidden;
}

.xtreme-lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
}

.xtreme-lang-option {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 500;
}

.xtreme-lang-option:hover {
    background: rgba(109, 56, 214, 0.1);
    transform: translateX(4px);
}

.xtreme-lang-option.active {
    background: linear-gradient(135deg, rgba(109, 56, 214, 0.15), rgba(109, 56, 214, 0.1));
    color: #6d38d6;
    font-weight: 600;
}

.xtreme-lang-option .xtreme-lang-flag {
    font-size: 1.2rem;
    animation: none;
}

.xtreme-lang-name {
    flex: 1;
}

@media (max-width: 768px) {
    .xtreme-lang-switcher {
        bottom: 15px;
        left: 15px;
    }
    
    .xtreme-lang-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .xtreme-lang-flag {
        font-size: 1.1rem;
    }
    
    .xtreme-lang-dropdown {
        min-width: 180px;
    }
}

