/* ============================================================
   Súgó és bemutató (Views/Shared/_Onboarding.cshtml + wwwroot/js/onboarding.js)
   — élő menü-túra és képernyőképes, kiemeléses léptető. A színek az admin.css
   változóira épülnek (zöld + arany).
   ============================================================ */

:root {
    --ob-a: #1f513f;
    --ob-b: #2f7a5c;
    --ob-gold: #c8a24b;
    --ob-glow: rgba(200, 162, 75, .6);
    --ob-grad: linear-gradient(135deg, #1f513f, #2f7a5c);
}

.ob-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, background .25s ease;
}
.ob-backdrop.ob-show { opacity: 1; pointer-events: auto; }
.ob-backdrop.ob-dim { background: rgba(10, 22, 17, .72); }

/* A kiemelő "reflektor" — a box-shadow elhomályosítja a környezetet,
   a doboz belseje (a kijelölt elem) tiszta marad. */
.ob-spotlight {
    position: fixed;
    z-index: 20001;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(10, 22, 17, .72),
                0 0 0 3px var(--ob-gold),
                0 0 26px 7px var(--ob-glow);
    transition: top .3s cubic-bezier(.4,0,.2,1), left .3s cubic-bezier(.4,0,.2,1),
                width .3s cubic-bezier(.4,0,.2,1), height .3s cubic-bezier(.4,0,.2,1);
}

.ob-tooltip {
    position: fixed;
    z-index: 20002;
    width: min(370px, calc(100vw - 28px));
    background: #fff;
    color: #23312a;
    border-radius: 16px;
    border: 1px solid rgba(31, 81, 63, .16);
    box-shadow: 0 24px 60px rgba(5, 15, 10, .45);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, top .25s ease, left .25s ease;
}
.ob-tooltip.ob-show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.ob-tooltip__bar { height: 5px; background: linear-gradient(90deg, var(--ob-a), var(--ob-b) 55%, var(--ob-gold)); }

.ob-x {
    position: absolute;
    top: 12px; right: 12px;
    width: 26px; height: 26px;
    border: none; border-radius: 8px;
    background: rgba(102, 117, 109, .14);
    color: #66756d;
    font-size: 1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.ob-x:hover { background: rgba(220, 53, 69, .14); color: #dc3545; }

.ob-tooltip__body { padding: 20px 20px 6px; }
.ob-tooltip__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ob-grad);
    font-size: 1.25rem;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(31, 81, 63, .35);
}
.ob-tooltip__title { font-size: 1.08rem; font-weight: 700; margin: 0 0 7px; letter-spacing: -.01em; }
.ob-tooltip__text { font-size: .88rem; line-height: 1.58; color: #4a5a52; margin: 0; }
.ob-tooltip__text ul, .ob-tooltip__text ol { margin: .5rem 0 0; padding-left: 1.15rem; }
.ob-tooltip__text li { margin-bottom: .2rem; }
.ob-tooltip__text strong { color: #23312a; }
.ob-tooltip__text .ob-tip {
    display: block;
    margin-top: .6rem;
    padding: .45rem .65rem;
    border-radius: 9px;
    background: #fbf4dc;
    color: #6b5212;
    font-size: .82rem;
}

.ob-dots { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px 0; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfd9d3; transition: all .2s; }
.ob-dot--active { background: var(--ob-gold); transform: scale(1.35); }
.ob-dot--done { background: #8fb9a5; }

.ob-tooltip__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px 16px; gap: 10px;
}
.ob-step-count { font-size: .76rem; color: #8a9a91; font-weight: 600; }
.ob-actions { display: flex; gap: 8px; }
.ob-btn {
    border: none; border-radius: 9px;
    padding: .45rem .95rem; font-size: .83rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.ob-btn--ghost { background: #eef3f0; color: #4a5a52; }
.ob-btn--ghost:hover { background: #e0e9e3; }
.ob-btn--primary { background: var(--ob-grad); color: #fff; }
.ob-btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Lebegő menü: a súgó gomb (a hibajelentő és az AI fölött) */
.bug-fab-wrap.open .bug-fab-item.bug-fab-help { bottom: 172px; }
.bug-fab-item.bug-fab-help { background: var(--ob-gold); }
.bug-fab-item.bug-fab-help:hover { background: #a9862f; }
/* Ha nincs AI gomb, a súgó a második helyre kerül */
.bug-fab-wrap.open .bug-fab-menu:not(:has(.bug-fab-ai)) .bug-fab-item.bug-fab-help { bottom: 120px; }

/* Súgó menüpont az oldalsávban (gombként, a linkekkel egyező kinézettel) */
.adm-nav button.adm-nav-btn {
    display: flex; align-items: center; gap: 11px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 3px;
    border: 0; border-radius: 9px;
    background: transparent;
    color: var(--adm-sidebar-text);
    font-size: .93rem;
    text-align: left;
    transition: background .15s, color .15s;
}
.adm-nav button.adm-nav-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* ---------- Súgó modal ---------- */
.help-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 81, 63, .10), rgba(200, 162, 75, .14));
    border: 1px solid rgba(31, 81, 63, .16);
}
.help-hero .t { font-weight: 700; font-size: 1rem; }
.help-hero .s { color: #66756d; font-size: .86rem; }

.help-search { position: relative; margin-bottom: 16px; }
.help-search input { padding-left: 38px; border-radius: 11px; }
.help-search span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); }

.help-group { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a9a91; margin: 0 0 8px; }
[data-help-group] + [data-help-group] .help-group { margin-top: 24px; }

.help-card {
    border: 1px solid rgba(31, 81, 63, .14);
    border-radius: 14px;
    padding: 14px 16px;
    height: 100%;
    background: #fff;
    transition: all .2s;
}
.help-card:hover { border-color: rgba(200, 162, 75, .7); box-shadow: 0 8px 22px rgba(31, 81, 63, .12); }
.help-card__icon {
    width: 40px; height: 40px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 10px;
    background: linear-gradient(135deg, #e3f0e9, #f6ecd2);
}
.help-card h6 { font-weight: 700; margin-bottom: 4px; color: #23312a; }
.help-card p { font-size: .82rem; color: #66756d; margin: 0; line-height: 1.45; }
.help-card--btn { cursor: pointer; text-align: left; width: 100%; position: relative; }
.help-card--btn:hover { transform: translateY(-2px); }
.help-card--btn .help-card__play {
    position: absolute; top: 12px; right: 12px;
    font-size: .72rem; font-weight: 700; color: var(--ob-a);
    display: inline-flex; align-items: center; gap: 4px;
}
.help-card--btn .help-card__count { display: inline-block; margin-top: 8px; font-size: .7rem; font-weight: 600; color: #a9862f; }

/* ============================================================
   Képes (screenshot) bemutató — fix oldalsó leírópanel + nyíl
   ============================================================ */
.obi-overlay {
    position: fixed; inset: 0;
    z-index: 20050;
    display: none;
    background: rgba(10, 22, 17, .35);
}
.obi-overlay.ob-show { display: flex; flex-direction: row; }

/* Bal oldal: a képernyőkép */
.obi-stage {
    flex: 1 1 auto;
    min-width: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 3vh 1.2vw;
}
.obi-img {
    display: block;
    max-width: 100%; max-height: 90vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    background: #f4f6f5;
}

/* Jobb oldal: a FIX helyen maradó leírópanel */
.obi-panel {
    flex: 0 0 390px;
    max-width: 42vw;
    display: flex; align-items: center;
    padding: 3vh 22px 3vh 0;
}

.obi-spot {
    position: fixed;
    z-index: 20051;
    pointer-events: none;
    border-radius: 8px;
    opacity: 0;
    box-shadow: 0 0 0 9999px rgba(10, 22, 17, .80),
                0 0 0 3px var(--ob-gold),
                0 0 22px 6px var(--ob-glow);
    transition: top .35s cubic-bezier(.4,0,.2,1), left .35s cubic-bezier(.4,0,.2,1),
                width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}

/* A nyíl a paneltől a kiemelt régióig */
.obi-arrow {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 20052;
    pointer-events: none;
}
.obi-arrow-path {
    fill: none;
    stroke: #e6c878;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 6px rgba(200, 162, 75, .55));
}

.obi-tip {
    position: relative;
    z-index: 20053;
    width: 100%;
    background: #fff; color: #23312a;
    border-radius: 16px;
    border: 1px solid rgba(31, 81, 63, .16);
    box-shadow: 0 24px 60px rgba(5, 15, 10, .5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}
.obi-tip.ob-show { opacity: 1; transform: translateY(0); }
.obi-tip__body { padding: 16px 20px 6px; max-height: 52vh; overflow-y: auto; }
.obi-tip__imgtitle {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #a9862f; margin-bottom: 6px;
}

.obi-close {
    position: fixed;
    top: 16px; right: 18px;
    z-index: 20054;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff; font-size: 1.45rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.obi-close:hover { background: rgba(255, 255, 255, .3); }

/* Keskeny képernyőn a panel alulra kerül */
@media (max-width: 900px) {
    .obi-overlay.ob-show { flex-direction: column; }
    .obi-stage { flex: 1 1 auto; padding: 2vh 12px 1vh; }
    .obi-img { max-height: 56vh; }
    .obi-panel { flex: 0 0 auto; max-width: none; width: 100%; padding: 0 12px 2vh; align-items: flex-start; }
}
