/* ==========================================================================
   Modern Tactile Rocker Switch (MK / EN)
   Vertical dual-state switch inspired by tactile rocker / segmented UI controls
   ========================================================================== */

.lang-rocker {
    display: inline-flex;
    flex-direction: column;
    padding: 2.5px;
    background: #eef1f5;
    background: linear-gradient(180deg, #e3e7ec 0%, #edf1f6 100%);
    border-radius: 8px;
    border: 1px solid #cfd5dc;
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.12),
                inset 0 -1px 0 rgba(255, 255, 255, 0.85),
                0 1px 2px rgba(0, 0, 0, 0.04);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    width: 36px;
    gap: 2px;
    box-sizing: border-box;
}

.lang-rocker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 18px;
    border-radius: 5px;
    text-decoration: none !important;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: transparent;
    color: #7b8594;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.lang-rocker-btn:hover:not(.active) {
    color: #1a202c;
    background: rgba(255, 255, 255, 0.55);
}

.lang-rocker-btn:active {
    transform: scale(0.95);
}

/* Active Segment (Elevated Rocker Keycap) */
.lang-rocker-btn.active {
    background: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 2;
    cursor: default;
}

/* MK Active: Macedonian Vibrant Red */
.lang-rocker-btn.active.is-mk {
    color: #d80026;
    font-weight: 800;
    box-shadow: 0 2.5px 5px -1px rgba(0, 0, 0, 0.15),
                0 1px 2px rgba(216, 0, 38, 0.12),
                inset 0 1px 0 #ffffff;
}

/* EN Active: Royal Blue */
.lang-rocker-btn.active.is-en {
    color: #0351b4;
    font-weight: 800;
    box-shadow: 0 -1.5px 4px -1px rgba(0, 0, 0, 0.12),
                0 2px 4px rgba(3, 81, 180, 0.15),
                inset 0 1px 0 #ffffff;
}

/* Desktop Sizing Variant */
.lang-rocker.lang-rocker-desktop {
    width: 40px;
    padding: 2.5px;
    gap: 2px;
    border-radius: 8px;
}

.lang-rocker.lang-rocker-desktop .lang-rocker-btn {
    height: 20px;
    font-size: 11.5px;
    border-radius: 5.5px;
}
