/* FILE: css/blog.css */

.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-item:hover .blog-title a {
    color: var(--primary-color);
}

.blog-meta {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.read-more {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-weight: 600;
}

.blog-excerpt {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.read-more[aria-disabled="true"] {
    color: var(--text-muted);
    cursor: not-allowed;
}

.return-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.return-link:hover {
    color: var(--primary-color);
}


/* --- BLOG POST DETAIL --- */

.post-container {
    max-width: 740px;
    margin: 0 auto;
    padding-top: 2rem;
}

.post-header {
    margin-bottom: 3rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}


/* Prism.js Overrides for Theme Compatibility */

pre[class*="language-"] {
    background: var(--code-bg, #1a1a1d) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 2rem 0 !important;
    padding: 1.5rem !important;
}

code[class*="language-"] {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem;
    text-shadow: none !important;
}