/* Blog-specific styles */

.blog-card {
    cursor: pointer;
}

.blog-card img {
    object-fit: cover;
}

/* Code blocks styling for blog posts */
.blog-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.blog-content code {
    font-family: 'Courier New', Courier, monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    color: #d4d4d4;
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.blog-content ol {
    list-style-type: decimal;
    margin-left: 2rem;
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}

.blog-content strong {
    font-weight: 600;
    color: #1f2937;
}

.blog-content a {
    color: #8b5cf6;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #7c3aed;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-top: 0 !important;
    font-size: 1.25rem;
}

.toc ul {
    margin-left: 1rem;
}

.toc a {
    text-decoration: none;
    color: #6b7280;
}

.toc a:hover {
    color: #8b5cf6;
}

/* Reading time indicator */
.reading-time {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
