/* ─── CATEGORY PAGE ──────────────────────────────────────────
   Blogest Theme — category.css
   Inherits all CSS variables from front-page.css / style.css
──────────────────────────────────────────────────────────── */

/* Fix: remove ghost whitespace after footer on category pages */
.cat-page {
    overflow: hidden;
}

html, body {
    height: auto;
    min-height: unset;
}

/* ── Breadcrumb ── */
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.cat-breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

.cat-breadcrumb a:hover {
    color: var(--brand);
}

.crumb-sep {
    color: var(--light);
}

/* ── Category Hero ── */
.cat-hero {
    padding: 36px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.cat-hero-title {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 10px;
    /* Purple underline accent */
    display: inline-block;
    border-bottom: 3px solid var(--brand);
    padding-bottom: 6px;
}

.cat-hero-desc {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.7;
    max-width: 560px;
    margin-top: 14px;
}

.cat-hero-meta {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ── Posts Grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-bottom: 48px;
}

/* ── Individual Card ── */
.cat-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cat-card:hover .cat-card-title {
    color: var(--brand);
}

.cat-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-section);
    margin-bottom: 12px;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.04);
}

.cat-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-card-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--near-black);
    transition: color 0.15s;
}

.cat-card-date {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

/* ── Empty State ── */
.cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 0;
    color: var(--muted);
    font-size: 14px;
}

/* ── Load More ── */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 72px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 40px;
    background: var(--white);
    color: var(--brand);
    border: 1.5px solid var(--brand);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 180px;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--brand);
    color: var(--white);
}

.load-more-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cat-hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .cat-hero {
        padding: 28px 0 32px;
        margin-bottom: 32px;
    }

    .cat-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }

    .cat-hero-title {
        font-size: 24px;
    }

    .load-more-btn {
        width: 100%;
    }
}
