/* ============================================================
   Central de Ajuda (/ajuda) — shell .kb-*
   Corpo editorial dos artigos herda .blog-* de <x-blog-styles>.
   ============================================================ */

.kb-page {
    --kb-ink: #14202b;
    --kb-muted: #5b6b7a;
    --kb-line: #e5ecf1;
    --kb-accent: #368DA8;
    --kb-accent-soft: #eaf4f8;
    --kb-bg-soft: #f7fafc;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--kb-ink);
}

.kb-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero + busca ---------- */
.kb-hero {
    background: linear-gradient(180deg, var(--kb-accent-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--kb-line);
    padding: 72px 0 56px;
    text-align: center;
}

.kb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kb-accent);
    margin-bottom: 14px;
}

.kb-hero__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
}

.kb-hero__subtitle {
    font-size: 17px;
    color: var(--kb-muted);
    max-width: 560px;
    margin: 0 auto 28px;
}

.kb-search {
    display: flex;
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--kb-line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 32, 43, .07);
    overflow: hidden;
}

.kb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 16px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--kb-ink);
    background: transparent;
}

.kb-search button {
    border: 0;
    cursor: pointer;
    background: var(--kb-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter .15s ease;
}

.kb-search button:hover { filter: brightness(1.08); }

/* ---------- Seções ---------- */
.kb-section { padding: 48px 0; }
.kb-section--soft { background: var(--kb-bg-soft); }

.kb-section__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 22px;
}

/* ---------- Grid de categorias ---------- */
.kb-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.kb-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--kb-line);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.kb-cat-card:hover {
    border-color: var(--kb-accent);
    box-shadow: 0 10px 26px rgba(20, 32, 43, .08);
    transform: translateY(-2px);
}

.kb-cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--kb-accent-soft);
    color: var(--kb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.kb-cat-card__name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.kb-cat-card__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--kb-muted);
    margin: 0 0 12px;
}

.kb-cat-card__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-accent);
}

/* ---------- Listas de artigos ---------- */
.kb-article-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kb-article-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .12s ease;
}

.kb-article-item:hover { background: var(--kb-accent-soft); }

.kb-article-item i {
    color: var(--kb-accent);
    font-size: 13px;
    flex: none;
    transform: translateY(-1px);
}

.kb-article-item__title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
}

.kb-article-item__excerpt {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--kb-muted);
    margin-top: 3px;
}

.kb-article-item__meta {
    margin-left: auto;
    flex: none;
    font-size: 12.5px;
    color: var(--kb-muted);
    white-space: nowrap;
}

.kb-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ---------- Breadcrumb ---------- */
.kb-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--kb-muted);
    padding: 22px 0 0;
}

.kb-crumbs a { color: var(--kb-muted); text-decoration: none; }
.kb-crumbs a:hover { color: var(--kb-accent); }
.kb-crumbs i { font-size: 10px; opacity: .6; }
.kb-crumbs span[aria-current] { color: var(--kb-ink); font-weight: 600; }

/* ---------- Página de categoria ---------- */
.kb-cat-hero { padding: 34px 0 10px; }

.kb-cat-hero__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.kb-cat-hero__title i {
    font-size: 22px;
    color: var(--kb-accent);
    background: var(--kb-accent-soft);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.kb-cat-hero__desc { color: var(--kb-muted); font-size: 16px; max-width: 640px; margin: 0; }

.kb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    padding: 36px 0 64px;
}

.kb-aside__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
}

.kb-aside__list { display: flex; flex-direction: column; gap: 4px; }

.kb-aside__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kb-ink);
    text-decoration: none;
}

.kb-aside__link:hover { background: var(--kb-accent-soft); color: var(--kb-accent); }
.kb-aside__link i { color: var(--kb-accent); font-size: 13px; width: 18px; text-align: center; }
.kb-aside__link small { margin-left: auto; color: var(--kb-muted); }

/* ---------- Artigo ---------- */
.kb-draft-banner {
    background: #fff7e0;
    border: 1px solid #f0dfa3;
    color: #7a6414;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kb-article-head { padding: 26px 0 8px; }

.kb-article-head__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--kb-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.kb-article-head__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 12px;
}

.kb-article-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 13.5px;
    color: var(--kb-muted);
}

.kb-article-head__meta i { margin-right: 5px; }

/* ---------- Feedback "isso ajudou?" ---------- */
.kb-feedback {
    margin: 48px 0 0;
    padding: 26px;
    border: 1px solid var(--kb-line);
    border-radius: 14px;
    background: var(--kb-bg-soft);
    text-align: center;
}

.kb-feedback__question {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
}

.kb-feedback__buttons { display: flex; justify-content: center; gap: 12px; }

.kb-feedback__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--kb-line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    color: var(--kb-ink);
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}

.kb-feedback__btn:hover { border-color: var(--kb-accent); background: var(--kb-accent-soft); }
.kb-feedback__btn[disabled] { opacity: .55; cursor: default; }

.kb-feedback__thanks { font-size: 14.5px; color: var(--kb-muted); margin: 0; }

/* ---------- CTA final ---------- */
.kb-cta {
    margin: 40px 0 0;
    padding: 30px;
    border-radius: 16px;
    background: var(--kb-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.kb-cta__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.kb-cta__desc { font-size: 14.5px; margin: 0; opacity: .8; }

.kb-cta__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--kb-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 11px;
    transition: filter .15s ease;
}

.kb-cta__btn:hover { filter: brightness(1.1); color: #fff; }

/* ---------- Resultados de busca ---------- */
.kb-search-result {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--kb-line);
    text-decoration: none;
    color: inherit;
}

.kb-search-result__cat {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--kb-accent);
}

.kb-search-result__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0;
}

.kb-search-result:hover .kb-search-result__title { color: var(--kb-accent); }

.kb-search-result__excerpt { font-size: 14.5px; color: var(--kb-muted); line-height: 1.6; margin: 0; }

.kb-search-result mark {
    background: #ffe9a8;
    border-radius: 3px;
    padding: 0 2px;
}

.kb-empty {
    text-align: center;
    padding: 56px 0;
    color: var(--kb-muted);
}

.kb-empty i { font-size: 34px; color: var(--kb-line); margin-bottom: 14px; display: block; }

/* ---------- Paginação (links do Laravel) ---------- */
.kb-pagination { margin-top: 32px; }

/* ============================================================
   Responsivo — tablet ≤768px e mobile ≤575px
   ============================================================ */
@media (max-width: 768px) {
    .kb-hero { padding: 52px 0 40px; }
    .kb-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-cols { grid-template-columns: 1fr; gap: 24px; }
    .kb-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
    .kb-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
    .kb-container { padding: 0 16px; }
    .kb-hero { padding: 40px 0 32px; }
    .kb-cat-grid { grid-template-columns: 1fr; }
    .kb-search { flex-direction: column; border-radius: 12px; }
    .kb-search input { padding: 14px 16px; }
    .kb-search button { padding: 13px; justify-content: center; }
    .kb-article-item { flex-wrap: wrap; }
    .kb-article-item__meta { margin-left: 25px; }
    .kb-feedback__buttons { flex-direction: column; align-items: stretch; }
}
