/* Blog layout and general styles */
/* Blog hero section */
.blog-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-hero h1,
.blog-hero .post-meta {
    text-align: center;
}

.blog-hero .post-meta {
    justify-content: center;
    color: var(--primary-color);  /* Using the orange accent color */
}



/* Blog filters section */
.blog-filters {
    padding: 30px 0;
    border-bottom: 1px solid var(--shadow-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-filter {
    padding: 8px 12px;
    border: 1px solid var(--shadow-color);
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    background-color: var(--ui-background);
}

/* Post tags styling (consistent across all pages) */
.post-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-tag {
    background-color: #2a3f50;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.post-tag:hover {
    background-color: #3a516a;
    transform: translateY(-2px);
}

/* Active state for filter tags */
.post-tag[data-tag].active {
    background-color: var(--primary-color);
}

/* View options */
.view-options {
    margin-top: 20px;
}

.view-toggle {
    padding: 8px 16px;
    background: var(--ui-background);
    border: 1px solid var(--shadow-color);
    border-radius: 4px;
    cursor: pointer;
}

/* Blog posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Featured post */
.blog-post.featured {
    grid-column: 1 / -1;
    background-color: var(--ui-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

/* Post title styles */
.post-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.blog-post.featured .post-title {
    font-size: 32px;
    margin-bottom: 15px;
}

/* Regular post styles */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--shadow-color);
}

.blog-post:last-child {
    border-bottom: none;
}

/* Post metadata */
.post-meta {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Read more link */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    margin-bottom: 15px;
}

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

/* Post sections styling */
.post-tags-section,
.post-share-section {
    margin-top: 40px;
}

.post-tags-section h3,
.post-share-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Share buttons section */
.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-button {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn.btn-primary.share-button {
    background-color: var(--primary-color);
    color: white;
}

.btn.btn-primary.share-button:hover {
    background-color: var(--btn-hover-color);
    transform: translateY(-2px);
}

/* Blog post content styles */
.blog-post-content {
    padding: 60px 0;
    background-color: var(--background-color);
}

.blog-post-content .container {
    max-width: 800px;
}

.blog-post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.blog-post-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.blog-post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.blog-post-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-color);
}

.post-body {
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.load-more {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.load-more:hover {
    background-color: var(--btn-hover-color);
}

/* List view modifications */
.posts-grid.list-view {
    display: block;
}

.posts-grid.list-view .blog-post {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .posts-grid.list-view .blog-post {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .post-tags-section,
    .post-share-section {
        padding: 20px;
    }

    .blog-post-content {
        padding: 40px 0;
    }

    .blog-post-content h2 {
        font-size: 28px;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 16px;
    }

    .share-buttons {
        justify-content: center;
    }
}

