/* ── Post Card ───────────────────────────────────────────────────────────── */

.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
    border-color: var(--color-neutral-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-neutral-100);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.02);
}

.post-card__image-link {
    display: block;
}

.post-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    flex: 1;
}

.post-card__title {
    margin-bottom: 0;
}

.post-card__title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--color-accent);
}

.post-card__excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    color: var(--color-text-tertiary);
    margin-top: auto;
    padding-top: 0.5rem;
}

.post-card__sep {
    margin: 0 0.25rem;
}

/* ── Category Badge ─────────────────────────────────────────────────────── */

.category-badge {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.category-badge:hover {
    color: var(--color-text-primary);
}

/* ── Product Badge ──────────────────────────────────────────────────────── */

.product-badge {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.product-badge:hover {
    opacity: 0.7;
}

/* ── Product Header Strip ───────────────────────────────────────────────── */

.product-header {
    margin-bottom: 2rem;
}

.product-header__strip {
    height: 4px;
    background-color: var(--color-accent);
}

.product-header__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.product-header__logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.product-header__name {
    margin-bottom: 0;
}

.product-header__tagline {
    color: var(--color-text-secondary);
    margin: 0.25rem 0 0;
}

/* ── Author Bio Box ─────────────────────────────────────────────────────── */

.author-bio {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin: 3rem 0;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius);
    background-color: var(--color-neutral-50);
}

.author-bio__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio__name {
    margin-bottom: 0.25rem;
}

.author-bio__name a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.author-bio__name a:hover {
    color: var(--color-accent);
}

.author-bio__description {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ── Post Meta Line ─────────────────────────────────────────────────────── */

.post-meta {
    color: var(--color-text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.post-meta__sep {
    margin: 0 0.5rem;
    color: var(--color-text-tertiary);
}

.post-meta a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--color-accent);
}

/* ── CTA Banner ─────────────────────────────────────────────────────────── */

.cta-banner {
    background-color: var(--color-neutral-50);
    border-top: 1px solid var(--color-neutral-200);
    border-bottom: 1px solid var(--color-neutral-200);
    padding: 3rem 0;
    margin-top: 3rem;
}

.cta-banner__inner {
    text-align: center;
}

.cta-banner__text {
    margin-bottom: 1.5rem;
}

.cta-banner__button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-black);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.cta-banner__button:hover {
    background-color: var(--color-soft-black);
    color: var(--color-white);
}

/* ── Related Posts ──────────────────────────────────────────────────────── */

.related-posts {
    padding-top: 2rem;
    border-top: 1px solid var(--color-neutral-200);
}

.related-posts__heading {
    margin-bottom: 1.5rem;
}

/* ── Hub Product Section ────────────────────────────────────────────────── */

.hub-product {
    padding: 2rem;
    border: 1px solid var(--color-neutral-200);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    background-color: var(--color-white);
}

.hub-product__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hub-product__logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.hub-product__name {
    margin-bottom: 0;
}

.hub-product__tagline {
    color: var(--color-text-secondary);
    margin: 0.25rem 0 0;
}

.hub-product__posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-product__post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-neutral-100);
}

.hub-product__post-item:last-child {
    border-bottom: none;
}

.hub-product__post-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
}

.hub-product__post-link:hover {
    color: var(--color-accent);
}

.hub-product__post-date {
    color: var(--color-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-product__empty {
    color: var(--color-text-tertiary);
}

.hub-product__view-all {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.hub-product__view-all:hover {
    color: var(--color-text-primary);
}

/* ── Archive Header ─────────────────────────────────────────────────────── */

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-neutral-200);
}

.archive-header__title {
    margin-bottom: 0.5rem;
}

.archive-header__description {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ── Author Header (for author archive) ─────────────────────────────────── */

.author-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-neutral-200);
}

.author-header__avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.author-header__name {
    margin-bottom: 0.25rem;
}

.author-header__bio {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .author-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-bio {
        flex-direction: column;
    }
}
