/* ============================================================
   Component: Сегментированный таб-переключатель (BEM)
   Класс: .gk-segmented
   Применение: фильтр "Активные / Архивные" и т.п.
   ============================================================ */

.gk-segmented {
    display: inline-flex;
    gap: var(--gk-space-1);
    margin: var(--gk-space-6) 0 var(--gk-space-4);
    padding: var(--gk-space-1);
    background: var(--gk-color-surface-soft);
    border-radius: var(--gk-radius-pill);
}

.gk-segmented__item {
    cursor: pointer;
    padding: 9px 22px;
    border-radius: var(--gk-radius-pill);
    background: transparent;
    color: var(--gk-color-text-meta);
    font-size: var(--gk-font-size-body);
    font-weight: var(--gk-font-weight-semibold);
    line-height: 1;
    transition: background var(--gk-transition-default), color var(--gk-transition-default), box-shadow var(--gk-transition-default);
    user-select: none;
    border: none;
}

.gk-segmented__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.gk-segmented__item:hover {
    color: var(--gk-color-brand);
}

.gk-segmented__item.is-active {
    background: var(--gk-color-surface);
    color: var(--gk-color-brand);
    box-shadow: var(--gk-shadow-tab-active);
}

/* --- Legacy bridge (старая разметка .status-tabs/.status-tab) --- */
.status-tabs {
    display: inline-flex;
    gap: var(--gk-space-1);
    margin: var(--gk-space-6) 0 var(--gk-space-4);
    padding: var(--gk-space-1);
    background: var(--gk-color-surface-soft);
    border-radius: var(--gk-radius-pill);
}

.status-tabs .status-tab {
    cursor: pointer;
    padding: 9px 22px;
    border-radius: var(--gk-radius-pill);
    background: transparent;
    color: var(--gk-color-text-meta);
    font-size: var(--gk-font-size-body);
    font-weight: var(--gk-font-weight-semibold);
    line-height: 1;
    transition: background var(--gk-transition-default), color var(--gk-transition-default), box-shadow var(--gk-transition-default);
    user-select: none;
    border: none;
}

.status-tabs .status-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.status-tabs .status-tab:hover {
    color: var(--gk-color-brand);
}

.status-tabs .status-tab.active {
    background: var(--gk-color-surface);
    color: var(--gk-color-brand);
    box-shadow: var(--gk-shadow-tab-active);
}

/* --- Адаптив --- */
@media (max-width: 600px) {
    .gk-segmented,
    .status-tabs {
        width: 100%;
        justify-content: stretch;
    }
    .gk-segmented__item,
    .status-tabs .status-tab {
        flex: 1;
        text-align: center;
    }
}
