/* Holodepth — TR / EN Language Switch */

.doc-panel {
    position: relative;
}

.hd-langSwitch {
    display: none;
    position: absolute;
    top: 26px;
    right: 26px;
    align-items: center;
    gap: 0;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    background:
        linear-gradient(180deg,
            rgba(8, 12, 22, 0.92) 0%,
            rgba(4, 8, 18, 0.95) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(0, 212, 255, 0.06);
}

.hd-langSwitch.is-visible {
    display: inline-flex;
}

.hd-langSwitch__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.hd-langSwitch__opt:hover {
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.hd-langSwitch__opt.is-active {
    color: #ffffff;
    background:
        linear-gradient(135deg,
            rgba(0, 212, 255, .28),
            rgba(0, 120, 255, .18));
    box-shadow:
        inset 0 0 0 1px rgba(0, 212, 255, .35),
        0 0 24px rgba(0, 212, 255, .18);
}

.hd-langSwitch__divider {
    width: 1px;
    height: 16px;
    margin: 0 2px;
    background:
        linear-gradient(180deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent);
}

.hd-langSwitch__label {
    display: inline-block;
}

/* Sidebar Badge */

.hd-langBadge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.85);
    transition:
        color .25s ease,
        transform .25s ease;
}

.hd-langBadge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid rgba(0, 212, 255, 0.95);
    border-right: 2px solid rgba(0, 212, 255, 0.95);
    opacity: .9;
    transition:
        transform .25s ease,
        opacity .25s ease,
        filter .25s ease;
}

.hd-langBadge:hover {
    color: #c9fbff;
    transform: translateX(3px);
}

.hd-langBadge:hover::before {
    opacity: 1;
    transform: scale(1.1);
    filter:
        drop-shadow(0 0 6px rgba(0, 212, 255, .6)) drop-shadow(0 0 12px rgba(0, 212, 255, .35));
}

/* Tablet */

@media (max-width: 900px) {
    .hd-langSwitch {
        top: 16px;
        right: 16px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .hd-langSwitch {
        top: 0px;
        right: -2px;
    }

    .hd-langSwitch__opt {
        min-width: 36px;
        height: 28px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hd-langSwitch,
    .hd-langSwitch__opt,
    .hd-langBadge {
        transition: none;
    }
}