/* blog.css */

/* Blog post list styles */
.posts article {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.posts article:last-child {
    border-bottom: none;
}

.posts h2 {
    margin-bottom: 0.5rem;
}

.posts h2 a {
    text-decoration: none;
    color: var(--bs-link-color);
}

.posts h2 a:hover {
    text-decoration: underline;
}

.posts .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Individual blog post styles - typography inherited from main.css */
.content p {
    margin-bottom: 1.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Category sidebar styles */
.categories {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.categories h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.categories ul {
    list-style-type: none;
    padding: 0;
}

.categories ul li {
    margin-bottom: 0.5rem;
}

.category-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.category-link:hover {
    background-color: #e9e9e9;
}

.category-link.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Responsive design for blog */
@media (min-width: 768px) {
    .blog-container {
        display: flex;
        gap: 2rem;
    }

    .posts {
        flex: 3;
    }

    .categories {
        flex: 1;
    }
}

.post-preview, .posts article {
    max-width: 800px;
    margin: 0 auto;
}

.post-thumbnail, .post-cover-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-category-link {
    text-decoration: none;
    color: var(--bs-link-color);
}

.post-category-link:hover {
    text-decoration: underline;
} 