/* =============================================================================
   Post Card — shared styling
   Used by archive.php, search.php, single.php related posts.
   ============================================================================= */

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY( -2px );
    box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
}

/* ── Image ───────────────────────────────────────────────────────────────── */

.post-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.post-card__image-link:hover img {
    transform: scale( 1.03 );
}

.post-card__image-link--placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card__image-link--placeholder .skeleton {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.post-card__image-link--placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.post-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1 1 auto;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.post-card__separator {
    opacity: 0.5;
}

.post-card__category {
    font-weight: 500;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    text-decoration: underline;
}

.post-card__brief {
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.8;
    margin: 0;
}

.post-card__author {
    font-size: 0.8rem;
    opacity: 0.65;
    margin: 0;
    margin-top: auto;
    padding-top: 0.5rem;
}
