/* ==========================================================================
   Horizon Theme — Main Stylesheet
   ==========================================================================
   A premium modern editorial blog theme for BlogPress.
   All visual customisation is driven by CSS custom properties injected
   from theme-styles.blade.php so this file remains static and cacheable.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   1. Shell & Container
   -------------------------------------------------------------------------- */
.hz-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hz-container {
    width: 100%;
    max-width: var(--hz-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 640px) {
    .hz-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* --------------------------------------------------------------------------
   2. Navigation
   -------------------------------------------------------------------------- */
.hz-nav-wrap {
    background: var(--hz-nav-bg);
    border-bottom: 1px solid var(--hz-border);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}

.hz-nav {
    max-width: var(--hz-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hz-nav { padding: 0.875rem 1.5rem; }
}

.hz-nav__brand { display: flex; align-items: center; gap: 0.5rem; }

.hz-nav__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.hz-nav__site-name {
    font-family: var(--hz-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hz-heading-color);
    white-space: nowrap;
}

.hz-nav__desktop {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .hz-nav__desktop { display: flex; }
}

.hz-nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hz-nav-text);
    transition: color 0.15s;
    white-space: nowrap;
}

.hz-nav__link:hover { color: var(--hz-primary); }

.hz-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hz-nav__action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hz-nav-text);
    transition: color 0.15s;
}

.hz-nav__action:hover { color: var(--hz-primary); }

.hz-nav__action--text {
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .hz-nav__action--text { display: inline-flex; }
}

/* Hamburger */
.hz-nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (min-width: 768px) {
    .hz-nav__hamburger { display: none; }
}

.hz-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hz-nav-text);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* Mobile Nav */
.hz-nav__mobile {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid var(--hz-border);
    background: var(--hz-nav-bg);
}

.hz-nav__mobile-link {
    display: block;
    padding: 0.625rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--hz-nav-text);
    border-bottom: 1px solid var(--hz-border);
    transition: color 0.15s;
}

.hz-nav__mobile-link:last-child { border-bottom: none; }
.hz-nav__mobile-link:hover { color: var(--hz-primary); }

.hz-nav__mobile-link--primary {
    color: var(--hz-btn-text);
    background: var(--hz-btn-bg);
    border-radius: var(--hz-radius);
    text-align: center;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    border-bottom: none;
}

/* Slide transitions for mobile menu */
.hz-slide-enter { transition: all 0.2s ease-out; }
.hz-slide-enter-start { opacity: 0; transform: translateY(-8px); }
.hz-slide-enter-end { opacity: 1; transform: translateY(0); }
.hz-slide-leave { transition: all 0.15s ease-in; }
.hz-slide-leave-start { opacity: 1; }
.hz-slide-leave-end { opacity: 0; transform: translateY(-8px); }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.hz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hz-btn-text);
    background: var(--hz-btn-bg);
    border: none;
    border-radius: var(--hz-radius);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.4;
}

.hz-btn:hover { opacity: 0.9; }
.hz-btn:active { transform: scale(0.98); }

.hz-btn--sm {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
    border-radius: calc(var(--hz-radius) * 0.75);
}

.hz-btn--outline {
    background: transparent;
    color: var(--hz-primary);
    border: 1.5px solid var(--hz-primary);
}

.hz-btn--outline:hover {
    background: var(--hz-primary);
    color: var(--hz-btn-text);
}

/* --------------------------------------------------------------------------
   4. Badge
   -------------------------------------------------------------------------- */
.hz-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--hz-badge);
    border-radius: 4px;
    line-height: 1.6;
    transition: opacity 0.15s;
}

.hz-badge:hover { opacity: 0.85; }

.hz-badge--lg {
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
}

.hz-badge--light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #fff;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hz-hero {
    background: var(--hz-hero-bg);
    color: var(--hz-hero-text);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.hz-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hz-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hz-hero {
        padding: 4.5rem 0 4rem;
    }
    .hz-hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.hz-hero__content {
    flex: 1;
    min-width: 0;
}

.hz-hero__title {
    font-family: var(--hz-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: var(--hz-heading-weight);
    line-height: 1.15;
    color: var(--hz-hero-text) !important;
    margin-bottom: 0.75rem;
}

.hz-hero__desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin-bottom: 1.5rem;
}

/* Hero Search */
.hz-hero__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 600px;
}

.hz-hero__search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.hz-hero__search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.hz-hero__search-input {
    width: 100%;
    padding: 0.7rem 0.875rem 0.7rem 2.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--hz-radius);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.hz-hero__search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hz-hero__search-input:focus {
    border-color: var(--hz-primary);
    background: rgba(255, 255, 255, 0.15);
}

.hz-hero__category-select {
    padding: 0.7rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--hz-radius);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    cursor: pointer;
    min-width: 140px;
    appearance: auto;
}

.hz-hero__category-select option {
    background: var(--hz-hero-bg);
    color: #fff;
}

.hz-hero__search-btn {
    border-radius: var(--hz-radius);
}

/* Hero Featured Card */
.hz-hero__featured {
    flex-shrink: 0;
    width: 100%;
    max-width: 380px;
}

@media (min-width: 1024px) {
    .hz-hero__featured { width: 380px; }
}

.hz-hero__featured-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--hz-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hz-hero__featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hz-hero__featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hz-hero__featured-body {
    padding: 1rem 1.25rem 1.25rem;
    background: transparent;
}

.hz-hero__featured-title {
    font-family: var(--hz-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff !important;
    margin: 0.5rem 0 0.375rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hz-hero__featured-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hz-hero__featured-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--hz-primary);
    transition: opacity 0.15s;
}

/* --------------------------------------------------------------------------
   6. Category Chips
   -------------------------------------------------------------------------- */
.hz-categories {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--hz-border);
    background: var(--hz-bg);
}

.hz-categories--index {
    border-bottom: none;
    padding-bottom: 0;
}

.hz-categories__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hz-categories__chips::-webkit-scrollbar { display: none; }

.hz-chip {
    display: inline-flex;
    padding: 0.4rem 1rem;
    font-size: 0.825rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid var(--hz-border);
    color: var(--hz-muted);
    background: var(--hz-bg);
    white-space: nowrap;
    transition: all 0.15s;
    cursor: pointer;
}

.hz-chip:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.hz-chip--active {
    background: var(--hz-primary);
    border-color: var(--hz-primary);
    color: #fff;
}

.hz-chip--active:hover {
    color: #fff;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   7. Section Titles & Headers
   -------------------------------------------------------------------------- */
.hz-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hz-section-title {
    font-family: var(--hz-font-heading);
    font-size: 1.5rem;
    font-weight: var(--hz-heading-weight);
    color: var(--hz-heading-color);
}

.hz-related .hz-section-title {
    color: var(--hz-heading-color);
}

.hz-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hz-primary);
    transition: opacity 0.15s;
}

.hz-section-link:hover { opacity: 0.8; }

/* --------------------------------------------------------------------------
   8. Post Card Grid
   -------------------------------------------------------------------------- */
.hz-posts-section {
    padding: var(--hz-section-spacing) 0;
}

.hz-grid {
    display: grid;
    gap: 1.5rem;
}

/* Mobile */
.hz-grid--m1 { grid-template-columns: 1fr; }
.hz-grid--m2 { grid-template-columns: repeat(2, 1fr); }

/* Tablet */
@media (min-width: 640px) {
    .hz-grid--t1 { grid-template-columns: 1fr; }
    .hz-grid--t2 { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 1024px) {
    .hz-grid--d2 { grid-template-columns: repeat(2, 1fr); }
    .hz-grid--d3 { grid-template-columns: repeat(3, 1fr); }
    .hz-grid--d4 { grid-template-columns: repeat(4, 1fr); }
    .hz-grid { gap: 1.75rem; }
}

/* --------------------------------------------------------------------------
   9. Post Card
   -------------------------------------------------------------------------- */
.hz-card {
    background: var(--hz-card-bg);
    border-radius: var(--hz-radius);
    border: 1px solid var(--hz-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hz-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.hz-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hz-card:hover .hz-card__img { transform: scale(1.04); }

.hz-card__body {
    padding: 1.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.hz-card__top-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.hz-card__reading-time {
    font-size: 0.75rem;
    color: var(--hz-muted);
    font-weight: 500;
}

.hz-card__title {
    font-family: var(--hz-font-heading);
    font-size: var(--hz-card-title-size);
    font-weight: 600;
    line-height: 1.35;
    color: var(--hz-heading-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hz-card__title a { transition: color 0.15s; }
.hz-card__title a:hover { color: var(--hz-primary); }

.hz-card__excerpt {
    font-size: 0.875rem;
    color: var(--hz-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hz-card__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: var(--hz-muted);
    margin-top: auto;
    padding-top: 0.375rem;
}

.hz-card__author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.hz-card__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.hz-card__date {
    color: var(--hz-muted);
}

.hz-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--hz-primary);
    margin-top: 0.25rem;
    transition: gap 0.15s;
}

.hz-card__read-more:hover { gap: 0.5rem; }

/* --------------------------------------------------------------------------
   10. Page Header (Blog Index)
   -------------------------------------------------------------------------- */
.hz-page-header {
    padding: 2.5rem 0 1.5rem;
    background: var(--hz-bg);
}

.hz-page-header__title {
    font-family: var(--hz-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--hz-heading-weight);
    color: var(--hz-heading-color);
    margin-bottom: 0.375rem;
}

.hz-page-header__desc {
    font-size: 1rem;
    color: var(--hz-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Single Post Header
   -------------------------------------------------------------------------- */
.hz-post-header {
    padding: 2rem 0 1.5rem;
}

.hz-post-header__inner {
    max-width: 820px;
}

.hz-post-header__title {
    font-family: var(--hz-font-heading);
    font-size: var(--hz-post-title-size);
    font-weight: var(--hz-heading-weight);
    line-height: 1.15;
    color: var(--hz-heading-color);
    margin: 0.625rem 0 0.75rem;
}

@media (max-width: 640px) {
    .hz-post-header__title {
        font-size: calc(var(--hz-post-title-size) * 0.65);
    }
}

.hz-post-header__excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--hz-muted);
    margin-bottom: 1.25rem;
}

.hz-post-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hz-border);
    font-size: 0.875rem;
    color: var(--hz-muted);
}

.hz-post-header__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hz-post-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.hz-post-header__author-name {
    font-weight: 600;
    color: var(--hz-heading-color);
    transition: color 0.15s;
}

.hz-post-header__author-name:hover { color: var(--hz-primary); }

.hz-post-header__date,
.hz-post-header__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   12. Featured Image
   -------------------------------------------------------------------------- */
.hz-post-featured {
    margin-bottom: 2rem;
}

.hz-post-featured__img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--hz-radius);
}

/* --------------------------------------------------------------------------
   13. Post Layout (Sidebar / Full Width)
   -------------------------------------------------------------------------- */
.hz-post-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: var(--hz-section-spacing);
}

@media (min-width: 1024px) {
    .hz-post-layout--sidebar {
        flex-direction: row;
        gap: 3rem;
    }

    .hz-post-layout--sidebar .hz-post-article {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 320px - 3rem);
    }

    .hz-post-layout--sidebar .hz-sidebar {
        width: 320px;
        flex-shrink: 0;
    }
}

.hz-post-layout--full .hz-post-article {
    max-width: 780px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   14. Post Content (Prose)
   -------------------------------------------------------------------------- */
.hz-prose {
    font-size: var(--hz-content-font-size);
    line-height: var(--hz-line-height);
    color: var(--hz-text);
}

.hz-prose h1, .hz-prose h2, .hz-prose h3,
.hz-prose h4, .hz-prose h5, .hz-prose h6 {
    font-family: var(--hz-font-heading);
    font-weight: var(--hz-heading-weight);
    color: var(--hz-heading-color);
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.hz-prose h2 { font-size: 1.5em; }
.hz-prose h3 { font-size: 1.25em; }
.hz-prose h4 { font-size: 1.1em; }

.hz-prose p { margin-bottom: 1.25em; }

.hz-prose a {
    color: var(--hz-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hz-prose a:hover { opacity: 0.8; }

.hz-prose strong { font-weight: 600; color: var(--hz-heading-color); }

.hz-prose img {
    border-radius: var(--hz-radius);
    margin: 1.5em 0;
}

.hz-prose blockquote {
    border-left: 3px solid var(--hz-primary);
    padding: 0.75em 1.25em;
    margin: 1.5em 0;
    color: var(--hz-muted);
    font-style: italic;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 var(--hz-radius) var(--hz-radius) 0;
}

.hz-prose ul, .hz-prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.hz-prose ul { list-style-type: disc; }
.hz-prose ol { list-style-type: decimal; }

.hz-prose li { margin-bottom: 0.375em; }
.hz-prose li::marker { color: var(--hz-primary); }

.hz-prose code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15em 0.35em;
    border-radius: 4px;
    font-size: 0.875em;
}

.hz-prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25em;
    border-radius: var(--hz-radius);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875em;
    line-height: 1.6;
}

.hz-prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

.hz-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.hz-prose th, .hz-prose td {
    border: 1px solid var(--hz-border);
    padding: 0.625em 0.875em;
    text-align: left;
}

.hz-prose th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--hz-heading-color);
}

.hz-prose hr {
    border: none;
    border-top: 1px solid var(--hz-border);
    margin: 2em 0;
}

.hz-prose figure { margin: 1.5em 0; }

.hz-prose figcaption {
    font-size: 0.85em;
    color: var(--hz-muted);
    text-align: center;
    margin-top: 0.5em;
}

/* --------------------------------------------------------------------------
   15. Post Tags
   -------------------------------------------------------------------------- */
.hz-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--hz-border);
    margin-top: 2rem;
}

.hz-post-tags__tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hz-primary);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
    transition: background 0.15s;
}

.hz-post-tags__tag:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   16. Share Buttons
   -------------------------------------------------------------------------- */
.hz-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.hz-share__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hz-heading-color);
}

.hz-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.hz-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hz-border);
    background: var(--hz-bg);
    color: var(--hz-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.hz-share__btn:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
    background: rgba(37, 99, 235, 0.05);
}

.hz-share__btn--twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.hz-share__btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.hz-share__btn--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }

.hz-share__btn--copied {
    color: #16a34a !important;
    border-color: #16a34a !important;
}

/* --------------------------------------------------------------------------
   17. Author Box
   -------------------------------------------------------------------------- */
.hz-author-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
}

.hz-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hz-author-box__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hz-muted);
    margin-bottom: 0.125rem;
}

.hz-author-box__name {
    font-family: var(--hz-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hz-heading-color);
    transition: color 0.15s;
}

.hz-author-box__name:hover { color: var(--hz-primary); }

.hz-author-box__bio {
    font-size: 0.875rem;
    color: var(--hz-muted);
    line-height: 1.55;
    margin-top: 0.375rem;
}

@media (max-width: 480px) {
    .hz-author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   18. Post Navigation (Previous / Next)
   -------------------------------------------------------------------------- */
.hz-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--hz-border);
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .hz-post-nav { grid-template-columns: 1fr; }
}

.hz-post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    transition: border-color 0.15s, background 0.15s;
}

.hz-post-nav__link:hover {
    border-color: var(--hz-primary);
    background: rgba(37, 99, 235, 0.03);
}

.hz-post-nav__link--next { text-align: right; }

.hz-post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hz-muted);
}

.hz-post-nav__link--next .hz-post-nav__label { justify-content: flex-end; }

.hz-post-nav__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hz-heading-color);
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   19. Table of Contents
   -------------------------------------------------------------------------- */
.hz-toc {
    margin-bottom: 2rem;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    overflow: hidden;
}

.hz-toc__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hz-heading-color);
    background: rgba(0, 0, 0, 0.02);
    border: none;
    cursor: pointer;
    text-align: left;
}

.hz-toc__toggle:hover { background: rgba(0, 0, 0, 0.04); }

.hz-toc__chevron { transition: transform 0.2s; margin-left: auto; }
.hz-toc__chevron--closed { transform: rotate(-90deg); }

.hz-toc__list-wrap {
    padding: 0 1rem 0.875rem;
}

.hz-toc__list {
    counter-reset: toc-counter;
}

.hz-toc__item {
    counter-increment: toc-counter;
}

.hz-toc__link {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--hz-muted);
    transition: color 0.15s;
    border-bottom: 1px solid transparent;
}

.hz-toc__link:hover { color: var(--hz-primary); }

.hz-toc__item--sub {
    padding-left: 1.25rem;
}

.hz-toc__item--sub .hz-toc__link {
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   20. Sidebar
   -------------------------------------------------------------------------- */
.hz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hz-sidebar {
        position: sticky;
        top: 5rem;
        align-self: flex-start;
    }
}

.hz-sidebar .hz-toc {
    margin-bottom: 0;
}

.hz-sidebar__widget {
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    padding: 1.25rem;
    background: var(--hz-card-bg);
}

.hz-sidebar__widget-title {
    font-family: var(--hz-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hz-heading-color);
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--hz-primary);
}

/* Sidebar search */
.hz-sidebar__search {
    display: flex;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    overflow: hidden;
}

.hz-sidebar__search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    outline: none;
    font-size: 0.85rem;
    background: transparent;
    color: var(--hz-text);
}

.hz-sidebar__search-btn {
    padding: 0.5rem 0.75rem;
    background: var(--hz-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
}

.hz-sidebar__search-btn:hover { opacity: 0.85; }

/* Sidebar categories */
.hz-sidebar__cat-list { display: flex; flex-direction: column; }

.hz-sidebar__cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--hz-text);
    border-bottom: 1px solid var(--hz-border);
    transition: color 0.15s;
}

.hz-sidebar__cat-link:hover { color: var(--hz-primary); }

.hz-sidebar__cat-list li:last-child .hz-sidebar__cat-link {
    border-bottom: none;
}

.hz-sidebar__cat-count {
    font-size: 0.75rem;
    color: var(--hz-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

/* Sidebar popular posts */
.hz-sidebar__popular {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hz-sidebar__popular-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: color 0.15s;
}

.hz-sidebar__popular-item:hover .hz-sidebar__popular-title {
    color: var(--hz-primary);
}

.hz-sidebar__popular-num {
    font-family: var(--hz-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.08);
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
}

.hz-sidebar__popular-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hz-heading-color);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.hz-sidebar__popular-date {
    display: block;
    font-size: 0.75rem;
    color: var(--hz-muted);
    margin-top: 0.125rem;
}

/* Sidebar tags */
.hz-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.hz-sidebar__tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hz-muted);
    border: 1px solid var(--hz-border);
    border-radius: 50px;
    transition: all 0.15s;
}

.hz-sidebar__tag:hover {
    color: var(--hz-primary);
    border-color: var(--hz-primary);
}

/* --------------------------------------------------------------------------
   21. Newsletter Section
   -------------------------------------------------------------------------- */
.hz-newsletter {
    background: var(--hz-hero-bg);
    color: var(--hz-hero-text);
    padding: var(--hz-section-spacing) 0;
}

.hz-newsletter__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.25rem;
}

.hz-newsletter__title {
    font-family: var(--hz-font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--hz-heading-weight);
    color: var(--hz-hero-text) !important;
}

.hz-newsletter__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.hz-newsletter__form {
    width: 100%;
    max-width: 480px;
}

.hz-newsletter__form-row {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .hz-newsletter__form-row { flex-direction: column; }
}

.hz-newsletter__input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--hz-radius);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.hz-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hz-newsletter__input:focus { border-color: var(--hz-primary); }

.hz-newsletter__btn {
    flex-shrink: 0;
}

.hz-newsletter__disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.625rem;
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.hz-footer {
    background: var(--hz-footer-bg);
    color: var(--hz-footer-text);
    padding: 3rem 0 0;
    margin-top: auto;
}

.hz-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .hz-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hz-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.hz-footer__brand {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hz-footer__logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hz-footer__brand-text {
    font-family: var(--hz-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.hz-footer__about {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--hz-footer-text);
    margin-bottom: 1rem;
}

.hz-footer__social {
    display: flex;
    gap: 0.625rem;
}

.hz-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--hz-footer-text);
    transition: all 0.15s;
}

.hz-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hz-footer__heading {
    font-family: var(--hz-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hz-footer__links li { margin-bottom: 0.5rem; }

.hz-footer__links a {
    font-size: 0.875rem;
    color: var(--hz-footer-text);
    transition: color 0.15s;
}

.hz-footer__links a:hover { color: #fff; }

.hz-footer__col-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--hz-footer-text);
    margin-bottom: 0.875rem;
}

.hz-footer__newsletter {
    display: flex;
    gap: 0.375rem;
}

.hz-footer__newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: calc(var(--hz-radius) * 0.75);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.hz-footer__newsletter-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.hz-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 0;
    font-size: 0.8rem;
}

.hz-footer__copyright {
    color: rgba(255, 255, 255, 0.5);
}

.hz-footer__bottom-links {
    display: flex;
    gap: 1rem;
}

.hz-footer__bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.15s;
}

.hz-footer__bottom-links a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   23. Related Posts Section
   -------------------------------------------------------------------------- */
.hz-related {
    padding: var(--hz-section-spacing) 0;
    border-top: 1px solid var(--hz-border);
    background: var(--hz-bg);
}

/* --------------------------------------------------------------------------
   24. Comments
   -------------------------------------------------------------------------- */
.hz-comments {
    padding: var(--hz-section-spacing) 0;
    background: var(--hz-bg);
}

.hz-comments__container {
    max-width: 780px;
}

.hz-comments__count {
    font-weight: 400;
    color: var(--hz-muted);
    font-size: 0.85em;
}

.hz-comments__empty {
    font-size: 0.95rem;
    color: var(--hz-muted);
    padding: 1rem 0;
}

.hz-comments__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hz-comment {
    padding: 1rem 1.25rem;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    background: var(--hz-card-bg);
}

.hz-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hz-comment__author {
    font-size: 0.9rem;
    color: var(--hz-heading-color);
}

.hz-comment__date {
    font-size: 0.8rem;
    color: var(--hz-muted);
}

.hz-comment__body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--hz-text);
}

.hz-comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hz-border);
}

.hz-comment-form__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hz-comment-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius);
    background: var(--hz-bg);
    color: var(--hz-text);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
}

.hz-comment-form__textarea:focus {
    border-color: var(--hz-primary);
}

.hz-comment-form__error {
    font-size: 0.825rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.hz-comments__login {
    font-size: 0.9rem;
    color: var(--hz-muted);
    padding: 1rem 0;
}

.hz-link {
    color: var(--hz-primary);
    font-weight: 600;
    transition: opacity 0.15s;
}

.hz-link:hover { opacity: 0.8; }

/* --------------------------------------------------------------------------
   25. Pagination
   -------------------------------------------------------------------------- */
.hz-pagination {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.hz-pagination nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hz-pagination nav > div:first-child {
    display: none;
}

.hz-pagination nav a,
.hz-pagination nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: calc(var(--hz-radius) * 0.6);
    border: 1px solid var(--hz-border);
    color: var(--hz-text);
    background: var(--hz-bg);
    transition: all 0.15s;
}

.hz-pagination nav a:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.hz-pagination nav span[aria-current="page"] {
    background: var(--hz-primary);
    border-color: var(--hz-primary);
    color: #fff;
}

.hz-pagination nav span[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
}

/* --------------------------------------------------------------------------
   26. Empty State
   -------------------------------------------------------------------------- */
.hz-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hz-muted);
    gap: 1rem;
}

.hz-empty__icon {
    color: var(--hz-border);
}

/* --------------------------------------------------------------------------
   27. Utility & Accessibility
   -------------------------------------------------------------------------- */
[x-cloak] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--hz-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

/* Print styles */
@media print {
    .hz-nav-wrap,
    .hz-hero,
    .hz-categories,
    .hz-newsletter,
    .hz-footer,
    .hz-sidebar,
    .hz-share,
    .hz-post-nav,
    .hz-toc,
    .hz-pagination,
    .hz-related,
    .hz-comments { display: none !important; }

    .hz-post-layout--sidebar .hz-post-article {
        max-width: 100% !important;
    }

    body { font-size: 12pt; color: #000; background: #fff; }
}
