/* Blog list page styles */

.blog-list-page {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    position: relative;
}

/* Extended horizontal border for page header */
.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    border-top: 1px dashed #e5dcc8;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-family: "IBM Plex Serif", Georgia, serif;
}

.page-description {
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 700px;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Post card */
.post-card {
    background: #fff;
    border: 1px dashed #e5dcc8;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d4c8ad;
}

.post-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.post-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "IBM Plex Serif", Georgia, serif;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-card:hover h2 {
    color: #007bff;
}

/* Post meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-date,
.post-author {
    display: inline-block;
}

.post-author::before {
    content: "• ";
    margin-right: 0.25rem;
}

/* Post excerpt */
.post-excerpt {
    margin-bottom: 0;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #4f46e5;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}

.no-posts p {
    font-size: 1.15rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-list-page {
        margin: 1rem auto;
    }

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

    .page-header h1 {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .post-card-content {
        padding: 1.25rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}
