/* ==========================================================================
   WEZEBET - Central de Ajuda (/help)
   Layout: hero + busca + sidebar de categorias + painel de artigos.
   Replica do sistema da WBET com markup/CSS proprios (prefixo wbh-).
   Cor de destaque: verde do site (--rb-gold / #01e0a3).
   ========================================================================== */

.wbh-page {
    min-height: 100vh;
    padding-top: 18px;
}

.wbh-center {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 56px;
}

/* ------------------------------- Hero ----------------------------------- */

.wbh-hero {
    text-align: center;
    padding: 28px 16px 26px;
}

.wbh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(1, 224, 163, .1);
    border: 1px solid var(--rb-border-strong, rgba(1, 224, 163, .28));
    color: var(--rb-gold, #01e0a3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.wbh-hero-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--rb-text, #fff);
    margin: 0 0 8px;
    line-height: 1.2;
}

.wbh-hero-sub {
    font-size: 15px;
    color: var(--rb-text-soft, rgba(191, 191, 191, .82));
    margin: 0 auto 22px;
    max-width: 620px;
    line-height: 1.6;
}

.wbh-search-wrap {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

.wbh-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rb-text-faint, rgba(160, 160, 160, .55));
    pointer-events: none;
}

.wbh-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px 13px 42px;
    border-radius: 12px;
    border: 1px solid var(--rb-border, rgba(1, 224, 163, .18));
    background: rgba(255, 255, 255, .05);
    color: var(--rb-text, #fff);
    font-size: 14px;
    outline: none;
    transition: box-shadow .2s, border-color .2s, background .2s;
}

.wbh-search-input::placeholder {
    color: rgba(255, 255, 255, .34);
}

.wbh-search-input:focus {
    background: rgba(255, 255, 255, .07);
    border-color: var(--rb-gold, #01e0a3);
    box-shadow: 0 0 0 3px var(--rb-gold-shadow, rgba(0, 170, 109, .24));
}

/* ------------------------------- Body ----------------------------------- */

.wbh-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wbh-sidebar {
    width: 232px;
    min-width: 190px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 76px;
}

.wbh-cat-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--rb-text-soft, rgba(191, 191, 191, .82));
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.wbh-cat-btn:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--rb-text, #fff);
}

.wbh-cat-btn--active {
    background: rgba(1, 224, 163, .12);
    color: var(--rb-gold, #01e0a3);
    font-weight: 600;
}

.wbh-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    color: currentColor;
}

.wbh-cat-label {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wbh-cat-count {
    font-size: 11px;
    background: rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 1px 7px;
    flex-shrink: 0;
}

.wbh-cat-btn--active .wbh-cat-count {
    background: rgba(1, 224, 163, .18);
    color: var(--rb-gold, #01e0a3);
}

.wbh-cat-chevron {
    opacity: .3;
    flex-shrink: 0;
}

/* ------------------------------- Main ----------------------------------- */

.wbh-main {
    flex: 1 1 0%;
    min-width: 0;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 20px 24px;
    min-height: 260px;
}

.wbh-main-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wbh-main-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wbh-main-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--rb-gold, #01e0a3);
}

.wbh-main-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rb-text, #fff);
}

.wbh-search-info {
    font-size: 13px;
    color: var(--rb-text-soft, rgba(191, 191, 191, .82));
    margin: 0;
}

/* ------------------------------ Artigos --------------------------------- */

.wbh-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wbh-article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: var(--rb-text, #fff);
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}

.wbh-article-row:hover {
    background: rgba(255, 255, 255, .07);
    border-color: var(--rb-border-strong, rgba(1, 224, 163, .28));
}

.wbh-article-row-title {
    flex: 1 1 0%;
    min-width: 0;
}

.wbh-article-row-title mark {
    background: rgba(1, 224, 163, .25);
    color: var(--rb-gold, #01e0a3);
    border-radius: 3px;
    padding: 0 2px;
}

.wbh-article-chevron {
    flex-shrink: 0;
    opacity: .4;
}

/* ---------------------------- Detalhe artigo ---------------------------- */

.wbh-article-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wbh-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--rb-gold, #01e0a3);
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wbh-back-btn:hover {
    color: var(--rb-gold-strong, #00aa6d);
}

.wbh-article-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--rb-text, #fff);
    line-height: 1.3;
}

.wbh-article-body {
    font-size: 14px;
    line-height: 1.75;
    color: var(--rb-text-soft, rgba(191, 191, 191, .82));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wbh-article-body p {
    margin: 0;
}

.wbh-article-body strong {
    color: var(--rb-text, #fff);
}

/* ------------------------------ Estados --------------------------------- */

.wbh-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--rb-text-faint, rgba(160, 160, 160, .55));
    font-size: 14px;
}

/* ---------------------------- Responsivo -------------------------------- */

@media (max-width: 680px) {
    .wbh-body {
        flex-direction: column;
    }

    .wbh-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        flex-flow: row wrap;
        gap: 4px;
        max-height: none;
    }

    .wbh-cat-btn {
        width: auto;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, .06);
    }

    .wbh-cat-label {
        flex: 0 1 auto;
    }

    .wbh-cat-chevron {
        display: none;
    }

    .wbh-main {
        padding: 16px;
    }
}
