/* ================================================================
   SIVOE Central de Ajuda — Home (dashboard)
   ================================================================ */

/* ---------- Botões reutilizados ---------- */
.sv-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-size: 15px; font-weight: 600; color: #fff;
    background: var(--blue-action); border: none; border-radius: var(--r-md);
    padding: 12px 20px; box-shadow: var(--shadow-blue); cursor: pointer; transition: background .15s;
}
.sv-btn-primary:hover { background: var(--blue-action-hover); }
.sv-btn-inline { padding: 10px 18px; font-size: 14.5px; }
.sv-btn-ghost {
    background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md);
    color: var(--text-body); font-weight: 600; font-size: 14.5px; padding: 10px 18px; cursor: pointer;
}
.sv-btn-ghost:hover { background: var(--blue-wash); border-color: var(--blue-soft); color: var(--blue-brand); }
.sv-link-btn { background: none; border: none; color: var(--text-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sv-link-btn:hover { color: var(--blue-action); }
.sv-state { color: var(--text-muted); padding: 24px 0; display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.sv-hero { text-align: center; padding: 56px 0 36px; }
.sv-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
    color: var(--blue-brand); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.sv-hero-eyebrow .bi { color: var(--blue-action); }
.sv-hero-title { font-size: 38px; font-weight: 800; color: var(--blue-brand); letter-spacing: -0.02em; margin: 0 0 12px; }
.sv-hero-sub { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

.sv-search {
    position: relative; display: flex; align-items: center; max-width: 680px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    box-shadow: var(--shadow-md); padding: 8px 8px 8px 22px;
}
.sv-search:focus-within { border-color: var(--blue-soft); box-shadow: 0 0 0 4px var(--blue-tint-12), var(--shadow-md); }
.sv-search-ic { color: var(--text-faint); font-size: 19px; }
.sv-search-input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 16px; color: var(--text-strong); padding: 10px 14px; background: transparent; }
.sv-search-input::placeholder { color: var(--text-faint); }
.sv-search-btn {
    background: var(--blue-action); color: #fff; border: none; border-radius: var(--r-pill);
    font-weight: 600; font-size: 15px; padding: 11px 26px; cursor: pointer; box-shadow: var(--shadow-blue);
}
.sv-search-btn:hover { background: var(--blue-action-hover); }

.sv-sugest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.sv-sugest-label { font-size: 13.5px; color: var(--text-muted); }
.sv-sugest-chip {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    color: var(--blue-brand); font-weight: 600; font-size: 13.5px; padding: 8px 16px; cursor: pointer; transition: .15s;
}
.sv-sugest-chip:hover { border-color: var(--blue-soft); background: var(--blue-wash); }

/* ---------- Seções ---------- */
.sv-block { margin-bottom: 36px; }
.sv-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sv-h2 { font-size: 22px; font-weight: 800; color: var(--text-strong); margin: 0; }

/* ---------- Grade de categorias ---------- */
.sv-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sv-cat-card {
    display: flex; flex-direction: column; gap: 4px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.sv-cat-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sv-cat-card-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 10px; }
.sv-cat-card-nome { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.sv-cat-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.sv-cat-card-count { font-size: 12.5px; font-weight: 600; color: var(--blue-action); margin-top: 8px; }

/* ---------- Perguntas frequentes (accordion) ---------- */
.sv-acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sv-acc-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.sv-acc-item:hover { border-color: var(--blue-soft); }
.sv-acc-item.aberto { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.sv-acc-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: none; border: none; cursor: pointer; text-align: left;
    font-family: var(--font); font-size: 15.5px; font-weight: 700; color: var(--text-strong); padding: 16px 18px;
}
.sv-acc-q-txt { min-width: 0; }
.sv-acc-chev { color: var(--text-muted); font-size: 15px; flex-shrink: 0; transition: transform .2s; }
.sv-acc-item.aberto .sv-acc-chev { transform: rotate(180deg); color: var(--blue-action); }
.sv-acc-a { padding: 0 18px 18px; }
.sv-acc-a-txt { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-body); white-space: pre-line; }

/* ---------- Coluna dupla ---------- */
.sv-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-bottom: 48px; }
.sv-bottom-main { min-width: 0; }

/* ---------- Lista de artigos ---------- */
.sv-artlist { display: flex; flex-direction: column; gap: 10px; }
.sv-artitem {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.sv-artitem:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.sv-artitem-ic { font-size: 20px; flex-shrink: 0; }
.sv-artitem-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sv-artitem-titulo { font-weight: 700; color: var(--text-strong); }
.sv-artitem-resumo { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-artitem-cat { font-size: 12.5px; color: var(--text-muted); flex-shrink: 0; }
.sv-artitem-views { font-size: 12.5px; color: var(--text-faint); flex-shrink: 0; }
.sv-artitem-chev { color: var(--text-faint); flex-shrink: 0; }

/* ---------- Aside CTA ---------- */
.sv-aside { display: flex; flex-direction: column; gap: 14px; }
.sv-cta {
    background: linear-gradient(150deg, var(--blue-action), var(--blue-brand)); color: #fff;
    border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-blue);
}
.sv-cta-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .18); color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.sv-cta-ic { font-size: 30px; opacity: .95; display: block; }
.sv-cta-title { font-size: 18px; font-weight: 700; margin: 10px 0 4px; }
.sv-cta-sub { font-size: 13.5px; opacity: .9; margin: 0 0 16px; }
.sv-cta-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue-brand);
    border: none; border-radius: var(--r-md); font-weight: 700; font-size: 14.5px; padding: 11px 18px; cursor: pointer;
}
.sv-cta-btn:hover { background: var(--blue-wash); }

/* ---------- Estado vazio ---------- */
.sv-empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.sv-empty .bi { font-size: 40px; color: var(--text-faint); }
.sv-empty h3 { font-size: 19px; font-weight: 700; color: var(--text-strong); margin: 12px 0 6px; }
.sv-empty p { color: var(--text-muted); margin: 0 0 18px; }
.sv-empty-acoes { display: flex; gap: 10px; justify-content: center; }

/* ---------- Chip de categoria ---------- */
.sv-art-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    padding: 4px 11px; border-radius: 999px; background: #f3f5f9; border: 1px solid var(--border);
}

/* ---------- Modal de leitura ---------- */
.sv-ler-head { align-items: flex-start; }
.sv-ler-titulo { font-size: 22px; font-weight: 800; color: var(--text-strong); margin: 10px 0 6px; }
.sv-ler-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.sv-ler-body { font-size: 16px; line-height: 1.75; color: var(--text-body); }
.sv-ler-body h2 { font-size: 20px; font-weight: 700; color: var(--text-strong); margin: 26px 0 10px; }
.sv-ler-body h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin: 20px 0 8px; }
.sv-ler-body p { margin: 0 0 14px; }
.sv-ler-body ul, .sv-ler-body ol { margin: 0 0 14px; padding-left: 22px; }
.sv-ler-body li { margin-bottom: 6px; }
.sv-ler-body img { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sv-ler-body a { color: var(--blue-action); }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .sv-bottom { grid-template-columns: 1fr; }
    .sv-hero-title { font-size: 30px; }
    .sv-search-btn { padding: 11px 18px; }
}
