/* ============================================================
   Hobzo Theme – hobzo-catalog.css
   Каталог „Всички хобита“ и категорийни страници
   (TemplateCatalog / TemplateCategory от дизайн системата).
   ============================================================ */

/* ── Лента най-горе ─────────────────────────────────────── */
.hz-band { position: relative; overflow: hidden; background: var(--brand-soft); color: var(--ink); }
.hz-band-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 56px solid var(--brand-tint); right: -120px; top: -200px; box-sizing: border-box; }
.hz-band-deco { position: absolute; right: 120px; bottom: -110px; opacity: .12; transform: rotate(-12deg); line-height: 0; }
.hz-band-deco .hz-icon { width: 320px; height: 320px; stroke-width: 1.5; }
.hz-band-in { position: relative; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 64px 24px 68px; box-sizing: border-box; }
.hz-band-badge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.hz-band-badge .hz-icon { width: 44px; height: 44px; }
.hz-band-text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 360px; max-width: 640px; }
.hz-band-title { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -0.01em; color: inherit; }
.hz-band-lead { margin: 0; font-size: 19px; line-height: 30px; font-weight: 500; opacity: .88; }
.hz-band-cat { background: var(--hb-cat); color: var(--inverse-ink); }
.hz-band-cat .hz-band-ring { border-color: rgba(255,246,236,.07); }
.hz-band-cat .hz-band-badge { background: rgba(255,246,236,.12); box-shadow: inset 0 0 0 1px rgba(255,246,236,.35); color: inherit; }
@media (max-width: 640px) {
    .hz-band-title { font-size: 32px; line-height: 40px; }
    .hz-band-lead { font-size: 17px; line-height: 28px; }
    .hz-band-in { padding: 28px 24px 30px; gap: 14px; }
    .hz-band-badge { display: none; }
    .hz-band-title { font-size: 28px; line-height: 36px; }
    .hz-band-lead { font-size: 15px; line-height: 23px; }
    .hz-band-ring, .hz-band-deco { display: none; }
}

/* ── Подредба ───────────────────────────────────────────── */
.hz-catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 40px 24px 72px; box-sizing: border-box; }
.hz-filter-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 15px/20px var(--font-sans); cursor: pointer; }
.hz-filter-toggle > span { flex-grow: 1; text-align: left; }
.hz-filter-toggle-arrow { transform: rotate(90deg); transition: transform 200ms ease; }
.hz-filter-toggle[aria-expanded="true"] .hz-filter-toggle-arrow { transform: rotate(-90deg); }
.hz-aside { display: flex; flex-direction: column; gap: 20px; }
.hz-catalog-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 860px) {
    .hz-catalog { grid-template-columns: minmax(0, 1fr); }
    .hz-filter-toggle { display: flex; }
    .hz-aside:not(.is-open) { display: none; }
}

/* ── Sidebar ────────────────────────────────────────────── */
.hz-box { box-sizing: border-box; width: 100%; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 2px 8px rgba(36,23,13,.05); }
.hz-box-title { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.hz-sb-cats { display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 12px; }
.hz-sb-cats .hz-box-title { padding: 0 10px 12px; }
.hz-sb-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color 150ms ease; box-sizing: border-box; }
a.hz-sb-row:hover { background-color: #FBF3EA; color: var(--ink); }
.hz-sb-row[aria-current="page"] { background: var(--brand-soft); }
.hz-sb-row[aria-current="page"] .hz-sb-name { font-weight: 800; }
.hz-sb-row.is-empty { opacity: .4; }
.hz-sb-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink); }
.hz-sb-row.hz-cat-active .hz-sb-icon { background: var(--cat-active-bg); color: var(--cat-active-solid); }
.hz-sb-row.hz-cat-intellectual .hz-sb-icon { background: var(--cat-intellectual-bg); color: var(--cat-intellectual-solid); }
.hz-sb-row.hz-cat-practical .hz-sb-icon { background: var(--cat-practical-bg); color: var(--cat-practical-solid); }
.hz-sb-row.hz-cat-creative .hz-sb-icon { background: var(--cat-creative-bg); color: var(--cat-creative-solid); }
.hz-sb-name { flex-grow: 1; font-size: 15px; font-weight: 600; }
.hz-sb-check { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--inverse-ink); }
.hz-sb-check .hz-icon { width: 14px; height: 14px; stroke-width: 3; }
.hz-sb-filters { display: flex; flex-direction: column; padding: 20px 20px 6px; }
.hz-sb-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.hz-sb-count { display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--ink); color: var(--inverse-ink); font-size: 12px; font-weight: 800; }
.hz-sb-clear { margin-left: auto; display: flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--brand-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.hz-sb-clear:hover { color: var(--ink); }
.hz-sb-group { border-top: 1px solid #EFE5D8; padding: 6px 0 14px; }
.hz-sb-group summary { display: flex; align-items: center; gap: 9px; min-height: 44px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--ink); }
.hz-sb-group summary::-webkit-details-marker { display: none; }
.hz-sb-group summary > span { flex-grow: 1; }
.hz-sb-gicon { color: var(--ink-muted); }
.hz-sb-arrow { transform: rotate(90deg); transition: transform 200ms ease; }
.hz-sb-group[open] .hz-sb-arrow { transform: rotate(-90deg); }
.hz-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.hz-chip { display: flex; align-items: center; min-height: 36px; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; box-sizing: border-box; transition: border-color 150ms ease; }
.hz-chip:hover { border-color: var(--ink); color: var(--ink); }
.hz-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--inverse-ink); font-weight: 700; }

/* ── Търсачка и резултати ───────────────────────────────── */
.hz-catalog-main .hz-search { padding: 6px 6px 6px 18px; border-width: 1px; }
.hz-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
@media (max-width: 1100px) { .hz-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hz-catalog-grid { grid-template-columns: minmax(0, 1fr); } }
.hz-noresults { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.hz-noresults-art svg { width: 64px; height: 64px; fill: none; stroke: var(--brand-tint); stroke-width: 12; stroke-linecap: round; }
.hz-noresults h2 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; }
.hz-noresults p { margin: 0; max-width: 460px; font-size: 17px; line-height: 28px; color: var(--ink-muted); }

/* ── Страници ───────────────────────────────────────────── */
.hz-pages { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
.hz-pages-step { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.hz-pages-step.is-disabled { opacity: .4; }
.hz-pages-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; box-sizing: border-box; }
a.hz-pages-step:hover, a.hz-pages-num:hover { border-color: var(--ink); color: var(--ink); }
.hz-pages-num.is-current { border-color: var(--ink); background: var(--ink); color: var(--inverse-ink); }
.hz-pages-gap { padding: 0 4px; color: var(--ink-muted); font-weight: 800; }
@media (max-width: 600px) { .hz-pages-step > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ── SEO текст ──────────────────────────────────────────── */
.hz-seo-wrap { max-width: 1280px; margin: 0 auto; padding: 8px 24px 80px; box-sizing: border-box; }
.hz-seo { display: flex; flex-direction: column; gap: 18px; padding: 40px 48px 28px; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.hz-seo-text { position: relative; max-height: 140px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.hz-seo-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(rgba(243,234,223,0), var(--surface-sunken)); }
.hz-seo-text.is-open { max-height: none; }
.hz-seo-text.is-open::after { display: none; }
.hz-seo-text p, .hz-seo-text li { margin: 0; max-width: 82ch; font-size: 17px; line-height: 28px; color: #4A3A2E; }
.hz-seo-text h2, .hz-seo-text h3 { margin: 8px 0 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; }
.hz-seo-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.hz-seo-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--brand-text); font: 800 15px/20px var(--font-sans); cursor: pointer; }
.hz-seo-arrow { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); transform: rotate(90deg); transition: transform 200ms ease; }
.hz-seo-btn[aria-expanded="true"] .hz-seo-arrow { transform: rotate(-90deg); }
@media (max-width: 640px) { .hz-seo { padding: 28px 20px 20px; } }
