/* ══════════════════════════════════════════════════════════════
   PREMIUM THEME ADDITIONS
   Archive / Search / Author heroes, sidebar widget styling,
   footer widget styling, static page layout.
   Builds on arena.css tokens. RTL + dark-mode compatible.
   ══════════════════════════════════════════════════════════════ */

/* ── Archive / Search / Author Hero ── */
.hz-archive-hero,
.hz-search-hero,
.hz-author-hero {
    position: relative;
    margin: 0 0 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--hz-bg-card, #fff), var(--hz-bg-poll, #f8fafc));
    border: 1px solid var(--hz-border-color, #e5e7eb);
    border-radius: 20px;
    overflow: hidden;
}
.hz-archive-hero::before,
.hz-search-hero::before,
.hz-author-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(14,168,107,.08), transparent 50%);
    pointer-events: none;
}
.hz-archive-hero-inner,
.hz-search-hero-inner,
.hz-author-hero-inner {
    position: relative;
    z-index: 1;
}

.hz-archive-kicker,
.hz-search-kicker,
.hz-author-label,
.hz-author-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--hz-primary-soft, rgba(14,168,107,.1));
    color: var(--hz-primary, #0ea86b);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}
.hz-search-kicker .material-symbols-outlined { font-size: 16px; }

.hz-archive-title,
.hz-search-title,
.hz-author-name {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    color: var(--hz-text-main, #0f172a);
    line-height: 1.25;
}

.hz-archive-desc,
.hz-author-bio {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--hz-text-muted, #64748b);
    max-width: 70ch;
}
.hz-archive-desc p:last-child { margin-bottom: 0; }

.hz-archive-count,
.hz-author-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--hz-bg-card, #fff);
    border: 1px solid var(--hz-border-color, #e5e7eb);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--hz-text-muted, #64748b);
    text-decoration: none;
}
.hz-archive-count .material-symbols-outlined,
.hz-author-stat .material-symbols-outlined { font-size: 15px; color: var(--hz-primary, #0ea86b); }

.hz-author-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.hz-author-x {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    transition: transform .15s ease;
}
.hz-author-x:hover { transform: translateY(-1px); }
.hz-x-mark { font-size: 14px; font-weight: 900; }

/* ── Layout grid: content + sidebar ── */
.hz-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .hz-layout-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}
.hz-content-col { min-width: 0; }

/* ── Sidebar ── */
.hz-sidebar,
.hz-primary-sidebar {
    display: none;  /* hidden on mobile per theme rule */
}
@media (min-width: 1024px) {
    .hz-sidebar,
    .hz-primary-sidebar {
        display: flex;
        flex-direction: column;
        gap: 18px;
        position: sticky;
        top: 90px;
    }
}

.hz-sb-widget {
    background: var(--hz-bg-card, #fff);
    border: 1px solid var(--hz-border-color, #e5e7eb);
    border-radius: 16px;
    padding: 18px;
}
.hz-sb-widget-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hz-border-color, #e5e7eb);
    font-size: 15px;
    font-weight: 900;
    color: var(--hz-text-main, #0f172a);
    position: relative;
}
.hz-sb-widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px; right: 0;
    width: 42px; height: 2px;
    background: var(--hz-primary, #0ea86b);
}
.hz-sb-widget ul { list-style: none; margin: 0; padding: 0; }
.hz-sb-widget li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--hz-border-color, #e5e7eb);
}
.hz-sb-widget li:last-child { border-bottom: none; }
.hz-sb-widget a {
    color: var(--hz-text-main, #0f172a);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.hz-sb-widget a:hover { color: var(--hz-primary, #0ea86b); }

/* Hide widgets marked hide-on-mobile in custom-widgets.php */
@media (max-width: 1023px) {
    .hide-on-mobile { display: none !important; }
}
@media (min-width: 1024px) {
    .hide-on-desktop { display: none !important; }
}

/* ── Footer widget columns ── */
.hz-footer-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hz-footer-widget-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    color: var(--hz-text-main, #fff);
}
.hz-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.hz-footer-widget li { margin-bottom: 8px; }
.hz-footer-widget a {
    font-size: 13px;
    font-weight: 700;
    color: var(--hz-text-muted, #94a3b8);
    text-decoration: none;
    transition: color .15s;
}
.hz-footer-widget a:hover { color: var(--hz-primary, #0ea86b); }

/* ── Static pages ── */
.hz-static-page {
    background: var(--hz-bg-card, #fff);
    border: 1px solid var(--hz-border-color, #e5e7eb);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .hz-static-page { padding: 22px 18px; border-radius: 14px; }
}
.hz-static-head {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--hz-border-color, #e5e7eb);
}
.hz-static-title {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 900;
    color: var(--hz-text-main, #0f172a);
    line-height: 1.25;
}
.hz-static-body {
    font-size: 15px;
    line-height: 1.95;
    color: var(--hz-text-main, #0f172a);
}
.hz-static-body h2 { font-size: 22px; font-weight: 900; margin: 28px 0 12px; }
.hz-static-body h3 { font-size: 18px; font-weight: 900; margin: 22px 0 10px; }
.hz-static-body p { margin: 0 0 14px; }
.hz-static-body a { color: var(--hz-primary, #0ea86b); text-decoration: underline; font-weight: 700; }
.hz-static-body img { max-width: 100%; height: auto; border-radius: 12px; }
.hz-static-body ul, .hz-static-body ol { padding-inline-start: 22px; margin: 0 0 14px; }
.hz-static-body li { margin-bottom: 6px; }
.hz-static-body blockquote {
    margin: 16px 0;
    padding: 14px 18px;
    border-inline-start: 4px solid var(--hz-primary, #0ea86b);
    background: var(--hz-bg-poll, #f8fafc);
    border-radius: 10px;
    color: var(--hz-text-main, #0f172a);
}
.hz-page-links {
    display: flex;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 800;
    align-items: center;
}
.hz-page-links a {
    padding: 4px 10px;
    border: 1px solid var(--hz-border-color, #e5e7eb);
    border-radius: 8px;
    color: var(--hz-primary, #0ea86b);
    text-decoration: none;
}

.hz-static-comments {
    max-width: 820px;
    margin: 24px auto 0;
}

/* ── Dark mode for new components ── */
html.dark .hz-archive-hero,
html.dark .hz-search-hero,
html.dark .hz-author-hero,
html[data-theme="dark"] .hz-archive-hero,
html[data-theme="dark"] .hz-search-hero,
html[data-theme="dark"] .hz-author-hero,
body.dark-mode .hz-archive-hero,
body.dark-mode .hz-search-hero,
body.dark-mode .hz-author-hero {
    background: linear-gradient(135deg, var(--hz-bg-card, #151b2b), var(--hz-bg-poll, #1e293b));
    border-color: var(--hz-border-color, #223047);
}
html.dark .hz-sb-widget,
html[data-theme="dark"] .hz-sb-widget,
body.dark-mode .hz-sb-widget {
    background: var(--hz-bg-card, #151b2b);
    border-color: var(--hz-border-color, #223047);
}
html.dark .hz-static-page,
html[data-theme="dark"] .hz-static-page,
body.dark-mode .hz-static-page {
    background: var(--hz-bg-card, #151b2b);
    border-color: var(--hz-border-color, #223047);
}
