/* Blog-specific styles - extends index.html theme system */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 12px 0;
}
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Page title */
.page-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}
.page-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* Blog grid */
.blog-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

/* Blog card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px var(--shadow);
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--accent);
}
.blog-card h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card h2 a:hover {
    color: var(--accent);
}
.blog-card .meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.blog-card .excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}
.blog-card .read-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.blog-card .read-more:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Empty state */
.empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* Article (blog detail) */
.article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px var(--shadow);
    margin-bottom: 24px;
}
.article h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Article content typography */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.article-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
    color: var(--accent);
    line-height: 1.4;
}
.article-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 10px;
    color: var(--text-primary);
}
.article-content p {
    margin-bottom: 16px;
}
.article-content ul,
.article-content ol {
    margin: 16px 0 16px 28px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
.article-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--accent);
}
.article-content pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}
.article-content a {
    color: var(--accent);
    text-decoration: underline;
}
.article-content a:hover {
    opacity: 0.8;
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Back link */
.back-link {
    display: inline-block;
    margin: 16px 0 32px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Related articles */
.related {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.related h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.related-list {
    display: grid;
    gap: 12px;
}
.related-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    transition: transform 0.2s, border-color 0.2s;
}
.related-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}
.related-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.related-item a:hover {
    color: var(--accent);
}
.related-item .excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .page-title {
        font-size: 1.6rem;
    }
    .article {
        padding: 24px 20px;
    }
    .article h1 {
        font-size: 1.5rem;
    }
    .blog-card {
        padding: 20px;
    }
}
