
/* ==============================
   Language Switcher
   ============================== */

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 9px 13px;

    background-color: #ffffff;
    color: #292929;

    border: 1px solid rgba(180, 145, 85, 0.4);
    border-radius: 10px;

    font-family: inherit;
    line-height: 1.4;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

    z-index: 100;
}

/* Hover effect */
.lang-switcher:hover {
    border-color: #b49155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Globe icon */
.lang-switcher svg {
    display: block;
    width: 19px;
    height: 19px;
    min-width: 19px;

    color: #b49155;
    stroke: currentColor;
}

/* Language select */
.lang-switcher select {
    display: block;

    width: auto;
    max-width: 150px;
    min-width: 80px;

    padding: 2px 0;

    border: none;
    outline: none;
    border-radius: 0;

    background-color: transparent;
    color: inherit;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;

    cursor: pointer;
}

/* Keyboard accessibility */
.lang-switcher select:focus-visible {
    outline: 2px solid #b49155;
    outline-offset: 4px;
}

/* Dropdown options */
.lang-switcher select option {
    background-color: #ffffff;
    color: #292929;
    padding: 8px;
}

/* Navbar placement */
.nav nav .lang-switcher {
    margin-inline-start: 12px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .lang-switcher {
        gap: 7px;
        padding: 8px 10px;
    }

    .lang-switcher svg {
        width: 17px;
        height: 17px;
        min-width: 17px;
    }

    .lang-switcher select {
        max-width: 125px;
        min-width: 75px;
        font-size: 12px;
    }

    .nav nav .lang-switcher {
        margin-inline-start: 6px;
    }
}

/* Dark navbar variant */
.nav-dark .lang-switcher {
    background-color: #1c1c1c;
    color: #f5f0e8;
    border-color: rgba(180, 145, 85, 0.5);
}

.nav-dark .lang-switcher select option {
    background-color: #1c1c1c;
    color: #f5f0e8;
}

/* Optional gold theme */
.lang-switcher.gold {
    background-color: #171717;
    color: #d6b778;
    border-color: #b49155;
}
