/* ==========================================================================
   Blog CSS - Blog-specific styles and content
   ========================================================================== */

/* 1. Blog Layout
   ========================================================================== */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 2. Blog Posts
   ========================================================================== */
.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post-header {
    margin-bottom: 1.5rem;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-post-meta .author {
    font-weight: 500;
}

.blog-post-meta .date {
    margin-left: 1rem;
}

.blog-post-tags {
    margin-top: 1rem;
}

.blog-tag {
    display: inline-block;
    background-color: var(--hover-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-tag:hover {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

/* 3. Blog Content
   ========================================================================== */
.blog-content {
    line-height: 1.7;
    font-size: 1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h1 {
    font-size: 2rem;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-content code {
    background-color: var(--hover-color);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.blog-content pre {
    background-color: var(--hover-color);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

/* 4. Blog Navigation
   ========================================================================== */
.blog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-nav-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-nav-link:hover {
    color: var(--text-color);
}

.blog-nav-link i {
    margin: 0 0.5rem;
}

/* 5. Blog Sidebar (if needed)
   ========================================================================== */
.blog-sidebar {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.blog-sidebar-section {
    margin-bottom: 2rem;
}

.blog-sidebar-section:last-child {
    margin-bottom: 0;
}

.blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
}

.blog-sidebar-list li {
    margin-bottom: 0.5rem;
}

.blog-sidebar-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.blog-sidebar-list a:hover {
    color: var(--primary-color);
}

/* 6. Blog Comments (if implemented)
   ========================================================================== */
.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.blog-comment {
    margin-bottom: 2rem;
        padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.blog-comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-comment-content {
    line-height: 1.6;
}

/* 7. Dark Theme Blog Adjustments
   ========================================================================== */
body.dark-theme .blog-container,
body.dark-theme .blog-post,
body.dark-theme .blog-sidebar,
body.dark-theme .blog-comment {
    background-color: var(--dark-bg);
    border-color: var(--dark-border);
}

body.dark-theme .blog-title,
body.dark-theme .blog-post-title,
body.dark-theme .blog-sidebar-title,
body.dark-theme .blog-comments-title,
body.dark-theme .blog-comment-author {
    color: var(--dark-text);
}

body.dark-theme .blog-content code,
body.dark-theme .blog-content pre {
    background-color: var(--dark-card-bg);
}

body.dark-theme .blog-tag {
    background-color: var(--dark-card-bg);
    color: var(--dark-text);
}

body.dark-theme .blog-tag:hover {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

/* 8. Responsive Blog Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-sidebar {
        padding: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0.5rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-post-title {
        font-size: 1.25rem;
    }
    
    .blog-comment {
        padding: 1rem;
    }
}