/* =============================================================================
 * Blog Archive
 * ========================================================================== */

/* Blog Hero */
.blog-hero {
    background: #1a1a1a;
    padding: 60px 0 70px;
}

.blog-hero__title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 12px;
}

.blog-hero__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
}

/* Blog Grid */
.blog-grid {
    padding-top: 10px;
}

/* Featured Post */
.blog-featured {
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 40px;
}

.blog-featured__link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.blog-featured__image {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-featured__link:hover .blog-featured__image img {
    transform: scale(1.03);
}

.blog-featured__placeholder {
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.blog-featured__content {
    padding: 10px 0;
}

.blog-featured__title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 8px 0 15px;
    color: #1a1a1a;
}

.blog-featured__excerpt {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

/* Blog Card */
.blog-card {
    margin-bottom: 30px;
}

.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card__image {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
}

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

.blog-card__link:hover .blog-card__image img {
    transform: scale(1.03);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

.blog-card__content {
    padding: 0 2px;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-card__sep {
    color: #ccc;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 10px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.blog-card__link:hover .blog-card__title {
    color: var(--primary, #333);
}

.blog-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 14px;
}

.blog-card__read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #1a1a1a);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card__read-more span {
    transition: transform 0.2s ease;
}

.blog-card__link:hover .blog-card__read-more span {
    transform: translateX(3px);
}

/* Blog Empty */
.blog-empty {
    text-align: center;
    padding: 80px 0;
}

.blog-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-empty p {
    color: #666;
}

/* =============================================================================
 * Single Post
 * ========================================================================== */

/* Post Hero */
.post-hero {
    background: #1a1a1a;
    padding: 60px 0 70px;
}

.post-hero__inner {
    max-width: 780px;
}

.post-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-hero__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.post-hero__cat:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.post-hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.post-hero__author {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.post-hero__sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Post Content */
.post-content {
    padding: 50px 0 30px;
}

.post-content__wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.post-content__featured-image {
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.post-content__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Body — prose styles */
.post-content__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.post-content__body h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: #1a1a1a;
}

.post-content__body h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    color: #1a1a1a;
}

.post-content__body h4 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
}

.post-content__body p {
    margin: 0 0 20px;
}

.post-content__body img {
    border-radius: 6px;
    margin: 10px 0;
}

.post-content__body blockquote {
    border-left: 3px solid var(--primary, #1a1a1a);
    margin: 30px 0;
    padding: 5px 0 5px 24px;
    font-style: italic;
    color: #555;
}

.post-content__body blockquote p:last-child {
    margin-bottom: 0;
}

.post-content__body ul,
.post-content__body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.post-content__body li {
    margin-bottom: 6px;
}

.post-content__body a {
    color: var(--primary, #1a1a1a);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content__body a:hover {
    color: #000;
}

/* Post Footer */
.post-content__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.post-content__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-content__tags-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.post-content__tag {
    font-size: 0.8rem;
    background: #f1f1f1;
    color: #555;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.post-content__tag:hover {
    background: #e0e0e0;
    color: #333;
}

.post-content__share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-content__share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.post-content__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.post-content__share-link:hover {
    background: var(--primary, #1a1a1a);
    color: #fff;
}

/* Related Posts */
.related-posts {
    background: #f8f8f8;
    padding: 60px 0;
}

.related-posts__heading {
    font-size: 1.6rem;
    margin: 0 0 30px;
    color: #1a1a1a;
}

/* Post CTA */
.post-cta {
    padding: 70px 0;
}

.post-cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.post-cta__heading {
    font-size: 1.8rem;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.post-cta__text {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 28px;
}

.post-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.post-cta__btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-cta__btn--primary {
    background: var(--primary, #1a1a1a);
    color: #fff;
    border: 2px solid var(--primary, #1a1a1a);
}

.post-cta__btn--primary:hover {
    background: transparent;
    color: var(--primary, #1a1a1a);
}

.post-cta__btn--outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.post-cta__btn--outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* =============================================================================
 * Responsive
 * ========================================================================== */

@media (max-width: 991px) {
    .blog-featured__link {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-featured__title {
        font-size: 1.5rem;
    }

    .post-hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .blog-hero,
    .post-hero {
        padding: 40px 0 50px;
    }

    .blog-hero__title {
        font-size: 2rem;
    }

    .blog-featured {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .blog-featured__title {
        font-size: 1.3rem;
    }

    .blog-featured__excerpt {
        display: none;
    }

    .post-hero__title {
        font-size: 1.75rem;
    }

    .post-hero__meta {
        font-size: 0.8rem;
    }

    .post-content {
        padding: 30px 0 20px;
    }

    .post-content__body {
        font-size: 1rem;
    }

    .post-content__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-posts {
        padding: 40px 0;
    }

    .post-cta {
        padding: 50px 0;
    }

    .post-cta__heading {
        font-size: 1.5rem;
    }
}
