/* InspectBook v0.3.0 — narrow vertical multilingual dropdown */

/* Main wrapper */
.ib-lang-dropdown {
    position: relative;
    z-index: 99999;
    width: 92px;
    min-width: 92px;
    height: 38px;
    display: inline-block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header placement */
.ib-lang-switcher-header {
    margin-left: 10px;
}

/* Floating selector remains active */
.ib-lang-switcher-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
}

/* Closed button */
.ib-lang-current {
    width: 92px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(3, 7, 19, .92);
    color: #dbe7fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 14px 44px rgba(0,0,0,.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0 9px;
}

.ib-lang-globe {
    font-size: 14px;
    line-height: 1;
}

.ib-lang-current-code {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
    color: #f6c95b;
}

.ib-lang-arrow {
    font-size: 10px;
    line-height: 1;
    color: #b9c8dd;
    margin-top: 1px;
}

/* Vertical one-line dropdown */
.ib-lang-menu {
    position: absolute;
    top: 42px;
    right: 0;
    width: 92px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(3, 7, 19, .96);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 70px rgba(0,0,0,.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
}

/* This keeps the dropdown selectable, no mouse running problem */
.ib-lang-dropdown:hover .ib-lang-menu,
.ib-lang-dropdown:focus-within .ib-lang-menu {
    display: block;
}

.ib-lang-option {
    width: 100%;
    height: 30px;
    margin: 2px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d5e7 !important;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
}

.ib-lang-option:hover,
.ib-lang-option:focus,
.ib-lang-option.active {
    color: #07111f !important;
    background: #f6c95b;
    border-color: rgba(255,255,255,.24);
    outline: none;
}

/* Add invisible bridge so the menu does not close between button and dropdown */
.ib-lang-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    height: 10px;
}

/* Header layout safety */
header {
    gap: 10px;
}

/* Mobile: keep the same vertical selector, just move floating selector lower/full-safe */
@media (max-width: 720px) {
    .ib-lang-switcher-header {
        margin-left: 0;
        margin-top: 8px;
    }

    .ib-lang-switcher-floating {
        right: 12px;
        bottom: 12px;
    }

    .ib-lang-menu {
        right: 0;
    }
}
