/* Vireza — category archive */

.vz-category {
    background: #f4f4f4;
}

body.category .site-main {
    min-height: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.vz-cat-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c1218 55%, #1a1a1a 100%);
    color: #fff;
}

.vz-cat-hero--has-image {
    min-height: 380px;
}

.vz-cat-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vz-cat-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vz-cat-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.vz-cat-hero .vz-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 72px;
    padding-bottom: 40px;
}

.vz-cat-hero-content {
    max-width: 720px;
}

.vz-cat-hero-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.vz-cat-hero-title {
    font-family: var(--vz-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 14px;
}

.vz-cat-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 54ch;
    margin-bottom: 16px;
}

.vz-cat-hero-desc p {
    margin: 0;
}

.vz-cat-hero-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.vz-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 56px;
}

.vz-category-main {
    min-width: 0;
}

.vz-category-empty {
    padding: 40px 24px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    color: var(--vz-muted);
}

/* --------------------------------------------------------------------------
   Featured
   -------------------------------------------------------------------------- */

.vz-cat-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 36px;
}

.vz-cat-featured-media {
    display: block;
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #ddd;
}

.vz-cat-featured-img,
.vz-cat-featured-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.vz-cat-featured-ph {
    display: block;
    min-height: 340px;
    background: linear-gradient(135deg, #ececec, #d0d0d0);
}

.vz-cat-featured:hover .vz-cat-featured-img {
    transform: scale(1.04);
}

.vz-cat-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 36px 32px;
}

.vz-cat-featured-title {
    font-family: var(--vz-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.vz-cat-featured-title a {
    color: var(--vz-ink);
}

.vz-cat-featured-title a:hover {
    color: var(--vz-accent);
}

.vz-cat-featured-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vz-muted);
}

.vz-cat-featured-more {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--vz-accent);
}

.vz-cat-featured-more:hover {
    color: var(--vz-accent-dark);
}

/* --------------------------------------------------------------------------
   Grid cards
   -------------------------------------------------------------------------- */

.vz-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vz-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vz-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.vz-cat-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e5e5;
}

.vz-cat-card-img,
.vz-cat-card-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vz-cat-card-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d6d6d6);
}

.vz-cat-card:hover .vz-cat-card-img {
    transform: scale(1.05);
}

.vz-cat-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 22px;
    flex: 1;
}

.vz-cat-card-title {
    font-family: var(--vz-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.vz-cat-card-title a {
    color: var(--vz-ink);
}

.vz-cat-card-title a:hover {
    color: var(--vz-accent);
}

.vz-cat-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--vz-muted);
}

.vz-category .vz-card-meta {
    font-size: 0.75rem;
}

.vz-category .vz-meta-read {
    color: var(--vz-muted);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.vz-category-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;
}

.vz-category .vz-widget {
    margin-bottom: 20px;
    padding: 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.vz-category .vz-widget:last-child {
    margin-bottom: 0;
}

.vz-category .vz-widget-title {
    font-family: var(--vz-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vz-accent);
}

.vz-category .vz-side-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vz-category .vz-side-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.vz-category .vz-side-thumb {
    display: block;
    width: 100px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e5e5;
}

.vz-category .vz-side-thumb img,
.vz-category .vz-side-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vz-category .vz-side-item:hover .vz-side-thumb img {
    transform: scale(1.06);
}

.vz-category .vz-side-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d0d0d0);
}

.vz-category .vz-side-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--vz-ink);
}

.vz-category .vz-side-title:hover {
    color: var(--vz-accent);
}

.vz-category .vz-side-body time {
    display: block;
    font-size: 0.72rem;
    color: var(--vz-muted);
}

.vz-category .vz-cat-list li {
    border-bottom: 1px solid #eee;
}

.vz-category .vz-cat-list li:last-child {
    border-bottom: 0;
}

.vz-category .vz-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.vz-category .vz-cat-list .current-cat > a {
    color: var(--vz-accent);
    font-weight: 700;
}

.vz-category .vz-cat-list .count {
    font-size: 0.72rem;
    color: var(--vz-muted);
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.vz-pagination {
    margin-top: 40px;
}

.vz-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.vz-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--vz-line);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vz-ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vz-pagination a.page-numbers:hover {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: #fff;
}

.vz-pagination .page-numbers.current {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: #fff;
}

.vz-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.vz-pagination .prev,
.vz-pagination .next {
    min-width: auto;
    padding: 0 16px;
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.vz-newsletter--category {
    padding: 48px 0;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.vz-newsletter--category .vz-newsletter-inner {
    max-width: 560px;
    margin-inline: auto;
}

.vz-newsletter--category .vz-newsletter-title {
    font-family: var(--vz-display);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.vz-newsletter--category .vz-newsletter-text {
    font-size: 0.975rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}

.vz-newsletter--category .vz-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin-inline: auto;
}

.vz-newsletter--category .vz-newsletter-input {
    flex: 1;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.vz-newsletter--category .vz-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.vz-newsletter--category .vz-newsletter-btn {
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--vz-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.vz-newsletter--category .vz-newsletter-btn:hover {
    background: var(--vz-accent-dark);
}

.vz-category .vz-cat-hero-img,
.vz-category .vz-cat-featured-img,
.vz-category .vz-cat-card-img {
    max-width: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .vz-category-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 28px;
    }
}

@media (max-width: 960px) {
    .vz-cat-featured {
        grid-template-columns: 1fr;
    }

    .vz-cat-featured-media {
        min-height: 260px;
    }

    .vz-category-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .vz-category-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .vz-category-sidebar > .vz-widget:last-child {
        grid-column: 1 / -1;
    }

    .vz-category .vz-widget {
        margin-bottom: 0;
    }

    .vz-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 680px) {
    .vz-cat-hero,
    .vz-cat-hero--has-image {
        min-height: 280px;
    }

    .vz-cat-hero .vz-container {
        padding-top: 56px;
        padding-bottom: 28px;
    }

    .vz-cat-featured-body {
        padding: 24px 20px;
        gap: 12px;
    }

    .vz-category-layout {
        padding-top: 20px;
        padding-bottom: 32px;
        gap: 22px;
    }

    .vz-cat-featured {
        margin-bottom: 24px;
    }

    .vz-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vz-category-sidebar {
        grid-template-columns: 1fr;
    }

    .vz-pagination {
        margin-top: 28px;
    }

    .vz-newsletter--category {
        padding: 36px 0;
    }

    .vz-newsletter--category .vz-newsletter-form {
        flex-direction: column;
    }

    .vz-newsletter--category .vz-newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .vz-cat-hero-title {
        font-size: 1.85rem;
    }

    .vz-cat-featured-media {
        min-height: 220px;
    }
}
