/* ==================== */
/* GLASS LANGUAGE BUTTON STYLES */
/* ==================== */

/* Glass style for language button */
.glass-language-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 14px !important;
    padding: 0.7rem 1.3rem !important;
    color: white !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    min-width: 140px !important;
    height: 48px !important;
    z-index: 10 !important;
}

/* Animated background effect */
.glass-language-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.1),
        transparent
    ) !important;
    transition: left 0.7s ease !important;
    z-index: -1 !important;
}

/* Inner glow effect */
.glass-language-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(6, 182, 212, 0.05) 100%
    ) !important;
    border-radius: 13px !important;
    z-index: -2 !important;
}

/* Hover effects */
.glass-language-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.35),
        0 8px 25px rgba(6, 182, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

.glass-language-btn:hover::before {
    left: 100% !important;
}

/* Globe icon styling */
.glass-language-btn .fa-globe {
    font-size: 1.2rem !important;
    color: var(--medical-accent) !important;
    text-shadow:
        0 0 15px rgba(6, 182, 212, 0.6),
        0 0 30px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.4s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.glass-language-btn:hover .fa-globe {
    transform: rotate(20deg) scale(1.15) !important;
    color: #28C7D5 !important;
    text-shadow:
        0 0 20px rgba(40, 199, 213, 0.8),
        0 0 40px rgba(37, 99, 235, 0.6) !important;
}

/* Chevron icon */
.glass-language-btn .fa-chevron-down {
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    opacity: 0.9 !important;
}

.glass-language-btn:hover .fa-chevron-down {
    transform: translateY(2px) !important;
    opacity: 1 !important;
}

/* Language text styling */
.glass-language-btn .language-text {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #ffffff, #e2e8f0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.glass-language-btn .language-short {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--medical-primary) !important;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
    letter-spacing: 1px !important;
}

/* Pulsing animation on focus */
@keyframes languagePulse {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(37, 99, 235, 0.3) !important;
    }
    50% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1),
            0 0 0 8px rgba(37, 99, 235, 0) !important;
    }
}

.glass-language-btn:focus {
    animation: languagePulse 2s infinite !important;
}

/* Active state */
.glass-language-btn:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .glass-language-btn {
        min-width: 120px !important;
        height: 44px !important;
        padding: 0.6rem 1rem !important;
        border-radius: 12px !important;
    }

    .glass-language-btn .fa-globe {
        font-size: 1.1rem !important;
    }

    .glass-language-btn .language-text {
        font-size: 0.9rem !important;
    }

    .glass-language-btn .language-short {
        font-size: 0.85rem !important;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .glass-language-btn {
        min-width: 100px !important;
        height: 40px !important;
        padding: 0.5rem 0.8rem !important;
        border-radius: 10px !important;
        gap: 0.5rem !important;
    }

    .glass-language-btn .fa-globe {
        font-size: 1rem !important;
    }

    .glass-language-btn .fa-chevron-down {
        font-size: 0.75rem !important;
    }
}

/* Ensure button stays above other elements */
.glass-language-btn * {
    position: relative !important;
    z-index: 2 !important;
}

/* Glass border effect */
.glass-language-btn {
    border: 1.5px solid transparent !important;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            rgba(255, 255, 255, 0.4) 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
}