/* VacancyHub (GooleJobs) — hh.ru-style layout · docs/TZ-GOOLEJOBS-HH-LAYOUT.md */

.gj-app {
    --gj-red: #d6001c;
    --gj-red-hover: #b80018;
    --gj-bg: #f2f4f8;
    --gj-card: #ffffff;
    --gj-border: #e8ecf4;
    --gj-text: #222222;
    --gj-muted: #768694;
    --gj-link: #0070ff;
    --gj-pay: #222222;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--gj-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    background: var(--gj-bg);
    box-sizing: border-box;
}

.gj-app *, .gj-app *::before, .gj-app *::after { box-sizing: border-box; }

/* ── Header ── */
.gj-header {
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.gj-header__top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gj-header__logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--gj-red);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.gj-header__logo span { color: var(--gj-text); font-weight: 600; }

.gj-header__search {
    flex: 1;
    display: flex;
    gap: 8px;
    min-width: 200px;
}

.gj-header__search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.gj-header__search input:focus { border-color: var(--gj-link); }

.gj-header__search-btn {
    padding: 10px 20px;
    background: var(--gj-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.gj-header__search-btn:hover { background: var(--gj-red-hover); }

.gj-header__filters-toggle {
    display: none;
    padding: 8px 14px;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    background: var(--gj-card);
    cursor: pointer;
    font-size: 13px;
}

.gj-header__vos {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    background: #fff;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.gj-header__vos:hover {
    background: #e8f0fe;
}

.gj-quit-banner {
    margin: 0 0 12px;
    padding: 10px 14px;
    background: #e6f4ea;
    color: #137333;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.gj-standalone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gj-muted);
}

.gj-standalone-bar__vos {
    padding: 8px 14px;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    background: #fff;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gj-standalone-bar__vos:hover {
    background: #e8f0fe;
}

.gj-header__sub {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gj-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.gj-header__sub strong { color: var(--gj-text); }

/* ── Layout grid ── */
.gj-layout {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 16px;
    align-items: start;
}

.gj-layout--detail,
.gj-layout--interview {
    grid-template-columns: 1fr 220px;
}

.gj-layout--detail .gj-filters,
.gj-layout--interview .gj-filters { display: none; }

/* ── Filters sidebar ── */
.gj-filters {
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 14px;
    position: sticky;
    top: 8px;
}

.gj-filters__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.gj-filters__group { margin-bottom: 16px; }

.gj-filters__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gj-muted);
    margin-bottom: 8px;
    display: block;
}

.gj-filters__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    cursor: pointer;
}

.gj-filters__radio input { accent-color: var(--gj-red); }

.gj-filters__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.gj-filters__check input { accent-color: var(--gj-red); }

/* ── Main column ── */
.gj-main { min-width: 0; }

.gj-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--gj-muted);
    flex-wrap: wrap;
}

.gj-sort select {
    padding: 6px 10px;
    border: 1px solid var(--gj-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--gj-card);
}

/* ── Vacancy list ── */
.gj-vlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gj-vrow {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 88px;
    padding: 16px;
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    transition: box-shadow 0.15s;
    cursor: pointer;
}

.gj-vrow:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

.gj-vrow--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gj-vrow--disabled:hover { box-shadow: none; }

.gj-vrow--hot { border-left: 3px solid var(--gj-red); }

.gj-vrow--classified {
    border-left: 3px solid #b8860b;
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.04) 0%, var(--gj-card) 12%);
}

.gj-vrow__logo {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.gj-vrow__body { flex: 1; min-width: 0; }

.gj-vrow__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gj-link);
}

.gj-vrow:hover .gj-vrow__title { text-decoration: underline; }

.gj-vrow--disabled .gj-vrow__title { color: var(--gj-muted); text-decoration: none; }

.gj-vrow__org {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gj-vrow__meta {
    font-size: 12px;
    color: var(--gj-muted);
    margin-bottom: 8px;
}

.gj-vrow__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gj-vrow__aside {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.gj-vrow__pay {
    font-size: 15px;
    font-weight: 700;
    color: var(--gj-pay);
    white-space: nowrap;
}

.gj-vrow__apply {
    padding: 8px 14px;
    background: var(--gj-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.gj-vrow__apply:hover:not(:disabled) { background: var(--gj-red-hover); }

.gj-vrow__apply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gj-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    background: #f0f3f8;
    border-radius: 4px;
    color: var(--gj-muted);
}

.gj-tag--hot {
    background: #ffe8eb;
    color: var(--gj-red);
    font-weight: 600;
}

.gj-tag--secret {
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.gj-empty {
    padding: 32px;
    text-align: center;
    color: var(--gj-muted);
    background: var(--gj-card);
    border: 1px dashed var(--gj-border);
    border-radius: 8px;
}

/* ── Detail page ── */
.gj-detail {
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 20px 24px;
}

.gj-detail__crumb {
    font-size: 12px;
    color: var(--gj-muted);
    margin-bottom: 16px;
}

.gj-detail__crumb a {
    color: var(--gj-link);
    cursor: pointer;
    text-decoration: none;
}

.gj-detail__crumb a:hover { text-decoration: underline; }

.gj-detail__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gj-detail__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.gj-detail__pay {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.gj-detail__org {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.gj-detail__meta {
    font-size: 13px;
    color: var(--gj-muted);
    margin-bottom: 12px;
}

.gj-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.gj-detail__section {
    margin-bottom: 20px;
}

.gj-detail__section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.gj-detail__section ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.gj-detail__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gj-text);
}

.gj-detail__warn {
    background: #fff8e6;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    color: #7a5c00;
}

.gj-detail__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gj-border);
}

.gj-detail__apply {
    padding: 12px 28px;
    background: var(--gj-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.gj-detail__apply:hover:not(:disabled) { background: var(--gj-red-hover); }

.gj-detail__apply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gj-detail__back {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--gj-text);
}

.gj-detail__back:hover { background: #f0f3f8; }

.gj-detail__similar {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gj-border);
}

.gj-detail__similar h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--gj-muted);
}

.gj-similar-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--gj-border);
    cursor: pointer;
    font-size: 14px;
}

.gj-similar-row:last-child { border-bottom: none; }

.gj-similar-row:hover { color: var(--gj-link); }

/* ── Sidebar profile ── */
.gj-sidebar {
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 14px;
    position: sticky;
    top: 8px;
}

.gj-sidebar__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.gj-sidebar__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gj-border);
}

.gj-sidebar__row:last-of-type { border-bottom: none; }

.gj-sidebar__label { color: var(--gj-muted); }

.gj-sidebar__val {
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.gj-sidebar__btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--gj-link);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.gj-sidebar__btn:hover { filter: brightness(1.05); }

.gj-sidebar__btn--sec {
    background: #f0f3f8;
    color: var(--gj-text);
    margin-top: 8px;
}

/* ── Work panel wrapper ── */
.gj-work {
    margin-top: 16px;
    background: var(--gj-card);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 16px;
}

.gj-work__head {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gj-border);
}

.gj-work:empty { display: none; }

/* ── Interview (reuse gg-jobs bot styles) ── */
.gj-interview .gg-jobs__bot {
    margin-top: 0;
    border: none;
    padding: 0;
}

/* ── Work panel legacy styles (unchanged logic) ── */
.gg-jobs__btn { padding: 8px 16px; border: none; border-radius: 6px; background: #1a73e8; color: #fff; font-size: 13px; cursor: pointer; }
.gg-jobs__btn:disabled { opacity: .5; cursor: not-allowed; }
.gg-jobs__btn--sec { background: #f1f3f4; color: #3c4043; }
.gg-jobs__bot { background: #fff; border: 1px solid var(--gj-border); border-radius: 12px; padding: 16px; margin-top: 0; }
.gg-jobs__bot-q { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.gg-jobs__bot-opt { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--gj-border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.gg-jobs__bot-opt:hover { background: #f8f9fa; }
.gg-jobs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gg-jobs__card { border: 1px solid var(--gj-border); border-radius: 12px; padding: 14px; background: #fff; }
.gg-jobs__card h3 { margin: 0 0 4px; font-size: 16px; }
.gg-jobs__card-pay { font-size: 12px; color: #188038; font-weight: 600; margin-bottom: 10px; }
.gg-jobs__typer { width: 100%; min-height: 120px; font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 10px; border: 1px solid var(--gj-border); border-radius: 8px; background: #0d1117; color: #4ecdc4; }
.gg-jobs__copy-area { width: 100%; min-height: 100px; font-size: 13px; padding: 10px; border: 1px solid var(--gj-border); border-radius: 8px; }
.gg-jobs__hint { font-size: 11px; color: var(--gj-muted); margin: 8px 0; }
.gg-jobs__mtc-case { background: #f8f9fa; border-radius: 8px; padding: 12px; margin-bottom: 12px; font-size: 13px; }
.gg-jobs__mtc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gg-jobs__mtc-btns button { flex: 1; min-width: 100px; padding: 10px; border-radius: 8px; border: 1px solid var(--gj-border); cursor: pointer; font-weight: 600; }
.gg-jobs__mtc-btns .approve { background: #e6f4ea; color: #137333; }
.gg-jobs__mtc-btns .deny { background: #fce8e6; color: #c5221f; }
.gg-jobs__mtc-btns .refer { background: #fef7e0; color: #b06000; }
.gg-jobs__soc-log { background: #050810; color: #00ffaa; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 12px; border-radius: 8px; min-height: 80px; margin-bottom: 10px; }
.gg-jobs__back { margin-bottom: 12px; }

/* ── Mobile ── */
@media (max-width: 899px) {
    .gj-layout,
    .gj-layout--detail,
    .gj-layout--interview {
        grid-template-columns: 1fr;
    }

    .gj-header__filters-toggle { display: inline-block; }

    .gj-filters {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        max-height: 100vh;
    }

    .gj-filters.is-open { display: block; }

    .gj-filters__close {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        padding: 10px;
        border: 1px solid var(--gj-border);
        border-radius: 8px;
        background: var(--gj-card);
        cursor: pointer;
    }

    .gj-sidebar { position: static; }

    .gj-vrow {
        flex-wrap: wrap;
    }

    .gj-vrow__aside {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 900px) {
    .gj-filters__close { display: none; }
}

/* C-UAS window — docs/CAREERS-AND-MAPS-SPEC.md §2.2 */
.c-uas-window { background: #050810 !important; border-color: #00ffaa !important; }
.c-uas-body { position: relative; padding: 0 !important; display: flex; flex-direction: column; height: 100%; }
.c-uas-toolbar { display: flex; gap: 8px; padding: 8px; background: rgba(0,20,30,.9); flex-wrap: wrap; }
.c-uas-toolbar button { padding: 6px 12px; font-size: 11px; font-family: 'JetBrains Mono', monospace; background: #0a1830; border: 1px solid #00ffaa; color: #00ffaa; cursor: pointer; border-radius: 4px; }
.c-uas-main { flex: 1; display: flex; min-height: 0; }
.c-uas-canvas-wrap { flex: 1; position: relative; }
#c-uas-canvas { width: 100%; height: 100%; display: block; }
.c-uas-telemetry { width: 280px; background: #0a0e14; border-left: 1px solid rgba(0,255,170,.2); overflow-y: auto; padding: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #8ad4c0; }
