/* =========================================================================
   Language Switcher Stylesheet - Premium UI
   ========================================================================= */

/* --- Toggler Button Container --- */
.lang-switcher {
    /* Critical flexbox trick to push this element to the far right side of the nav bar */
    /*#margin-left: auto;*/
    /*display: inline-flex;*/


    margin-top: 1em;;
    margin-right: 1em;
    display:inline;
    position: absolute;
    width: auto;
    height:auto;
    right: 10px;


    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) 10;

    /* Styling */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    /* Pill Shape */
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;

    /* Premium Shadows & Transitions */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);

    /* Override global nav glowing underline for this specific button */
    overflow: visible;
}

/* Remove glowing underline specifically for the lang switcher */
nav .lang-switcher::before {
    display: none;
}

/* --- Interactive Hover State --- */
.lang-switcher:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.lang-switcher:active {
    transform: translateY(1px);
}

/* --- Mobile Breakpoints --- */
@media (max-width: 768px) {
    .lang-switcher {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.75rem;
        margin-top: 0;
    }
}