/* static/css/blog.css */

.blog-container {
    width: 90%;
    max-width: 860px;
    margin: 40px auto;
    color: var(--text-dim);
    animation: fadeIn 0.8s ease-in-out;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 10px;
}

.blog-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Post List Card --- */
.post-list-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.post-list-card:hover {
    box-shadow: 0 10px 35px rgba(79, 135, 242, 0.2);
    border-color: rgba(79, 135, 242, 0.3);
    transform: translateY(-3px);
}

.post-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-list-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-list-content h2 {
    margin: 0 0 8px 0;
}

.post-list-content h2 a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color var(--transition);
}

.post-list-content h2 a:hover {
    color: var(--accent);
}

.post-list-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-list-content p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--text);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
}

/* --- Post Detail --- */
.post-detail-content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-detail-content h1 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.post-detail-content h2,
.post-detail-content h3 {
    color: var(--text);
    margin-top: 2em;
}

.post-detail-header img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 20px 0 30px;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .post-list-card {
        grid-template-columns: 1fr;
    }

    .post-list-card a img {
        height: 200px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }
}
