/* Vireza — single post */

.vz-single {
    background: #f4f4f4;
}

body.single-post .site-main {
    min-height: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.vz-single-hero {
    position: relative;
    height: 650px;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.vz-single-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vz-single-hero-img,
.vz-single-hero-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vz-single-hero-ph {
    display: block;
    background: linear-gradient(145deg, #1a1a1a, #333);
}

.vz-single-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.28) 38%,
        rgba(0, 0, 0, 0.08) 68%,
        rgba(0, 0, 0, 0.04) 100%
    );
    pointer-events: none;
}

.vz-single-hero .vz-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 48px;
}

.vz-single-hero-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.vz-single-title {
    font-family: var(--vz-display);
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.vz-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
}

.vz-single-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.vz-single-meta-author:hover {
    color: #fff;
    opacity: 0.9;
}

.vz-single-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Layout: share | content | sidebar
   -------------------------------------------------------------------------- */

.vz-single-layout {
    display: grid;
    grid-template-columns: 52px minmax(0, 820px) 300px;
    justify-content: center;
    column-gap: 44px;
    row-gap: 32px;
    align-items: start;
    padding-top: 44px;
    padding-bottom: 56px;
}

.vz-single-main {
    min-width: 0;
    width: 100%;
    max-width: 820px;
}

/* --------------------------------------------------------------------------
   Sticky share
   -------------------------------------------------------------------------- */

.vz-share {
    position: sticky;
    top: calc(var(--vz-header-h) + 24px);
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vz-share-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vz-muted);
    writing-mode: horizontal-tb;
}

.vz-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--vz-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vz-share-btn:hover {
    transform: translateY(-2px);
    background: var(--vz-accent);
    color: #fff;
}

.vz-share-btn.is-copied {
    background: #16a34a;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Article typography
   -------------------------------------------------------------------------- */

.vz-single-article {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Entry content typography */
.vz-entry-content {
    font-size: 1.1875rem;
    line-height: 1.85;
    color: var(--vz-ink-soft);
}

.vz-entry-content > *:first-child {
    margin-top: 0;
}

.vz-entry-content > * + * {
    margin-top: 1.35em;
}

.vz-entry-content h2,
.vz-entry-content h3,
.vz-entry-content h4 {
    font-family: var(--vz-display);
    color: var(--vz-ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 2em;
    scroll-margin-top: calc(var(--vz-header-h) + 16px);
}

.vz-entry-content h2 {
    font-size: 1.75rem;
}

.vz-entry-content h3 {
    font-size: 1.4rem;
}

.vz-entry-content p {
    margin: 0;
}

.vz-entry-content a {
    color: var(--vz-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vz-entry-content ul,
.vz-entry-content ol {
    padding-left: 1.35em;
}

.vz-entry-content ul {
    list-style: disc;
}

.vz-entry-content ol {
    list-style: decimal;
}

.vz-entry-content li + li {
    margin-top: 0.4em;
}

.vz-entry-content blockquote {
    margin: 1.5em 0;
    padding: 12px 0 12px 20px;
    border-left: 3px solid var(--vz-accent);
    font-family: var(--vz-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--vz-ink);
}

.vz-entry-content img,
.vz-entry-content figure {
    border-radius: 12px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.vz-entry-content figcaption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--vz-muted);
    text-align: center;
}

.vz-entry-content pre,
.vz-entry-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.vz-entry-content pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #f5f5f5;
}

.vz-entry-content .alignwide,
.vz-entry-content .alignfull {
    max-width: 100%;
}

.vz-pagebreak-message {
    margin: 2em 0 20px;
    max-width: none;
    font-family: var(--vz-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #2e7d32;
    text-align: center;
}

.vz-paginated {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.5em;
    padding: 36px 28px 32px;
    border: 1px solid var(--vz-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.vz-pagebreak-message + .vz-paginated {
    margin-top: 0;
}

.vz-paginated > a {
    display: inline-flex;
    text-decoration: none;
    margin: 0 0 22px;
}

.vz-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 36px;
    border-radius: 999px;
    background: #34a853;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(52, 168, 83, 0.28);
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.vz-continue-arrow {
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease;
}

.vz-paginated > a:hover .vz-continue-btn {
    background: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(46, 125, 50, 0.34);
    color: #fff;
}

.vz-paginated > a:hover .vz-continue-arrow {
    transform: translateX(3px);
}

.vz-paginated > a:active .vz-continue-btn {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(52, 168, 83, 0.24);
}

.vz-page-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vz-paginated > .vz-page-progress:first-child {
    margin-top: 0;
}

.vz-paginated-status {
    margin: 0;
    font-family: var(--vz-font);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--vz-muted);
}

.vz-page-progress-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.vz-page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.vz-page-dot.is-active {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    transform: scale(1.12);
}

.vz-single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--vz-line);
}

.vz-single-tags-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vz-muted);
}

.vz-tag {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f4f4f4;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vz-ink-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.vz-tag:hover {
    background: var(--vz-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Prev / Next
   -------------------------------------------------------------------------- */

.vz-post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 20px;
    margin-top: 40px;
}

.vz-post-nav:not(.vz-post-nav--has-next) {
    grid-template-columns: 1fr;
}

.vz-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vz-post-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
    color: inherit;
}

.vz-post-nav-link--empty {
    visibility: hidden;
    pointer-events: none;
}

.vz-post-nav-link--prev {
    justify-content: center;
    min-height: 100%;
}

.vz-post-nav-link--next {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    min-height: 140px;
}

.vz-post-nav-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #ddd;
    min-height: 140px;
}

.vz-post-nav-img,
.vz-post-nav-ph {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vz-post-nav-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #cfcfcf);
}

.vz-post-nav-link--next:hover .vz-post-nav-img {
    transform: scale(1.05);
}

.vz-post-nav-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 22px 24px;
    text-align: left;
}

.vz-post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vz-accent);
}

.vz-post-nav-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.vz-post-nav-link--next:hover .vz-post-nav-arrow {
    transform: translateX(4px);
}

.vz-post-nav-title {
    font-family: var(--vz-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--vz-ink);
}

.vz-post-nav-link--next .vz-post-nav-title {
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.vz-single-sidebar {
    position: sticky;
    top: calc(var(--vz-header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--vz-header-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.vz-single .vz-widget {
    margin-bottom: 22px;
    padding: 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.vz-single .vz-widget:last-child {
    margin-bottom: 0;
}

.vz-single .vz-widget-title {
    font-family: var(--vz-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vz-accent);
}

.vz-single .vz-side-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vz-single .vz-side-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 6px;
    margin: -6px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.vz-single .vz-side-item:hover {
    background: #f6f6f6;
}

.vz-single .vz-side-thumb {
    display: block;
    width: 112px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e5e5;
    flex-shrink: 0;
}

.vz-single .vz-side-thumb img,
.vz-single .vz-side-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vz-single .vz-side-item:hover .vz-side-thumb img {
    transform: scale(1.07);
}

.vz-single .vz-side-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d0d0d0);
}

.vz-single .vz-side-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--vz-ink);
    transition: color 0.2s ease;
}

.vz-single .vz-side-item:hover .vz-side-title,
.vz-single .vz-side-title:hover {
    color: var(--vz-accent);
}

.vz-single .vz-side-body time {
    display: block;
    font-size: 0.75rem;
    color: var(--vz-muted);
}

/* --------------------------------------------------------------------------
   Related
   -------------------------------------------------------------------------- */

.vz-related {
    padding: 48px 0 56px;
    background: #eee;
}

.vz-single .vz-section-head {
    margin-bottom: 24px;
}

.vz-single .vz-section-title {
    font-family: var(--vz-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.vz-single .vz-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--vz-accent);
    border-radius: 2px;
}

.vz-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.vz-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vz-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.vz-related-media {
    display: block;
    aspect-ratio: 16 / 11;
    min-height: 200px;
    overflow: hidden;
    background: #ddd;
}

.vz-related-img,
.vz-related-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vz-related-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d6d6d6);
}

.vz-related-card:hover .vz-related-img {
    transform: scale(1.05);
}

.vz-related-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 22px;
}

.vz-related-title {
    font-family: var(--vz-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.vz-related-title a {
    color: var(--vz-ink);
}

.vz-related-title a:hover {
    color: var(--vz-accent);
}

/* --------------------------------------------------------------------------
   Shared single media
   -------------------------------------------------------------------------- */

.vz-single .vz-single-hero-img,
.vz-single .vz-post-nav-img,
.vz-single .vz-related-img {
    max-width: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .vz-single-layout {
        grid-template-columns: 48px minmax(0, 1fr) 280px;
        column-gap: 28px;
    }

    .vz-single-hero {
        height: 560px;
        min-height: 560px;
    }

    .vz-post-nav-link--next {
        grid-template-columns: 160px minmax(0, 1fr);
        min-height: 128px;
    }

    .vz-post-nav-media,
    .vz-post-nav-img,
    .vz-post-nav-ph {
        min-height: 128px;
    }

    .vz-single .vz-side-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .vz-single .vz-side-thumb {
        width: 96px;
        height: 72px;
    }
}

/* Tablet — 2 related columns */
@media (max-width: 1024px) {
    .vz-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 960px) {
    .vz-single-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .vz-share {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
        gap: 12px;
        padding: 4px 0;
    }

    .vz-single-main {
        order: 1;
        max-width: none;
    }

    .vz-single-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        order: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .vz-single .vz-widget {
        margin-bottom: 0;
    }

    .vz-post-nav {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .vz-post-nav-link--next {
        grid-template-columns: 150px minmax(0, 1fr);
        min-height: 120px;
    }

    .vz-post-nav-media,
    .vz-post-nav-img,
    .vz-post-nav-ph {
        min-height: 120px;
    }

    .vz-paginated {
        margin-top: 28px;
        padding: 32px 22px 28px;
    }
}

/* Mobile — 1 related column */
@media (max-width: 680px) {
    .vz-single-hero {
        height: 400px;
        min-height: 400px;
    }

    .vz-single-hero .vz-container {
        padding-top: 56px;
        padding-bottom: 28px;
    }

    .vz-single-hero-content {
        gap: 12px;
    }

    .vz-single-layout {
        padding-top: 18px;
        padding-bottom: 28px;
        gap: 20px;
    }

    .vz-single-article {
        padding: 20px 16px 26px;
        border-radius: 12px;
    }

    .vz-entry-content {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .vz-post-nav-link--next {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 100px;
    }

    .vz-post-nav-media,
    .vz-post-nav-img,
    .vz-post-nav-ph {
        min-height: 100px;
    }

    .vz-post-nav-copy {
        padding: 14px 16px;
        gap: 6px;
    }

    .vz-post-nav-link--next .vz-post-nav-title {
        font-size: 1.05rem;
    }

    .vz-post-nav-link--empty {
        display: none;
    }

    .vz-single-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vz-single .vz-side-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
    }

    .vz-single .vz-side-thumb {
        width: 100px;
        height: 76px;
    }

    .vz-related {
        padding: 28px 0 36px;
    }

    .vz-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vz-related-media {
        min-height: 180px;
    }

    .vz-single .vz-section-head {
        margin-bottom: 16px;
    }

    .vz-paginated {
        padding: 28px 18px 24px;
        border-radius: 16px;
    }

    .vz-pagebreak-message {
        font-size: 18px;
        margin: 1.75em 0 18px;
    }

    .vz-paginated > a {
        display: flex;
        width: 100%;
        max-width: 360px;
        margin-bottom: 20px;
    }

    .vz-continue-btn {
        width: 100%;
        min-height: 52px;
        padding: 0 22px;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .vz-single-hero {
        height: 340px;
        min-height: 340px;
    }

    .vz-single-avatar {
        width: 32px;
        height: 32px;
    }

    .vz-single-article {
        padding: 18px 14px 22px;
    }

    .vz-post-nav-link--next {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
