/* /pomoc — Pomoć (help page) */

html { scroll-behavior: smooth; }
#krediti, #ai-izvori, #qa { scroll-margin-top: calc(var(--topbar-h, 70px) + 16px); }

.pb-tabs { margin: 14px 0 22px; }
.pb-tab { display: inline-flex; align-items: center; gap: 8px; }
.pb-tab__ico { color: var(--c-text-muted); flex-shrink: 0; transition: color .12s ease; }
.pb-tab:hover .pb-tab__ico { color: var(--c-text-strong); }
.pb-tab.is-active .pb-tab__ico,
.pb-tab.active .pb-tab__ico { color: var(--c-brand); }

/* Sekcijska ikonica u zaglavlju pb-panel-a (uz kicker + naslov).
   Mora biti specifičnija od `.pb-panel--padded > .pb-panel__head > div:first-child`
   koje postavlja flex:1 1 auto na prvi div u headeru. */
.pb-panel--padded > .pb-panel__head:has(> .help-sec-ico) {
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
}
.pb-panel--padded > .pb-panel__head > .help-sec-ico:first-child,
.pb-panel--padded > .pb-panel__head > .help-sec-ico {
    flex: 0 0 40px !important;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--c-pill-brand-bg);
    color: var(--c-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pb-panel--padded > .pb-panel__head > .help-sec-ico svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

/* Karetice sa „šta troši kredite" */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
@media (max-width: 820px) {
    .help-grid { grid-template-columns: 1fr; }
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface-1, var(--p-white));
}
.help-card__ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-pill-brand-bg);
    color: var(--c-brand);
}
.help-card__ico svg { width: 18px; height: 18px; }
.help-card h3 {
    margin: 2px 0 0;
    font-family: var(--p-font-display);
    font-weight: 650;
    font-size: 15.5px;
    letter-spacing: -0.01em;
    color: var(--c-text-strong);
}
.help-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--c-text-secondary);
}
.help-card a { color: var(--c-brand); font-weight: 600; text-decoration: none; }
.help-card a:hover { color: var(--c-brand-strong); }

/* „Kako AI radi" tok */
.help-prose {
    max-width: 880px;
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--c-text);
}
.help-prose > p { margin: 0 0 16px; }
.help-prose__h3 {
    margin: 22px 0 8px;
    font-family: var(--p-font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.015em;
    color: var(--c-text-strong);
}

.help-pipeline {
    display: grid;
    gap: 12px;
    margin: 6px 0 22px;
}
.help-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface-1, var(--p-white));
}
.help-step__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c-pill-brand-bg);
    color: var(--c-brand);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.help-step h4 {
    margin: 0 0 4px;
    font-family: var(--p-font-display);
    font-weight: 650;
    font-size: 14.5px;
    color: var(--c-text-strong);
}
.help-step p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--c-text-secondary);
}

.help-callout {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--c-brand) 22%, var(--c-border));
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-brand) 8%, transparent), transparent 70%);
    margin: 4px 0 14px;
}
.help-callout__ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--c-brand);
    color: var(--p-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.help-callout__ico svg { width: 18px; height: 18px; }
.help-callout h4 {
    margin: 0 0 4px;
    font-family: var(--p-font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--c-text-strong);
}
.help-callout p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--c-text);
}

.help-disclaimer {
    margin: 4px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--c-border-strong, var(--c-border));
    background: var(--c-surface-2, transparent);
    color: var(--c-text-muted);
    font-size: 13px;
    line-height: 1.55;
    border-radius: 6px;
}

/* Q&A */
.help-qa {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}
.help-qa__item {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface-1, var(--p-white));
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.help-qa__item[open] {
    border-color: color-mix(in srgb, var(--c-brand) 35%, var(--c-border));
    box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--c-brand) 35%, transparent);
}
.help-qa__item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--c-text-strong);
}
.help-qa__item summary::-webkit-details-marker { display: none; }
.help-qa__chev { color: var(--c-text-muted); transition: transform .2s ease; flex-shrink: 0; }
.help-qa__item[open] .help-qa__chev { transform: rotate(180deg); color: var(--c-brand); }
.help-qa__body {
    padding: 0 18px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--c-text-secondary);
}
.help-qa__body p { margin: 0; }
.help-qa__body a { color: var(--c-brand); font-weight: 600; text-decoration: none; }
.help-qa__body a:hover { color: var(--c-brand-strong); }
