/* Blog-specific styles */

.blog-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.blog-main {
    padding: 60px 0;
    min-height: 60vh;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.blog-posts {
    min-height: 400px;
}

.post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 32px;
    transition: var(--transition);
    cursor: pointer;
}

.post-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.post-date {
    font-family: var(--font-mono);
}

.post-category {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--text-secondary);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-read-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

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

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.category-list a:hover,
.category-list a.active {
    color: var(--text-primary);
}

.recent-updates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.update-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Single Post View */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.post-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-content code {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text-primary);
}

.post-content pre {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.post-content blockquote {
    border-left: 3px solid var(--border-color);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-section {
        margin-bottom: 16px;
    }
    
    .post-card {
        padding: 24px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}