/* BLOG POST READABILITY FIXES */

/* Main blog content container */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e8e8e8;
    max-width: 100%;
}

/* Paragraphs - much better spacing */
.blog-content p {
    margin-bottom: 1.75rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

/* Headings - clear hierarchy */
.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #e0e0e0;
}

/* Code blocks - terminal style */
.blog-content pre {
    background: #0a0a0a !important;
    border: 1px solid #2a2a2a;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blog-content pre code {
    background: transparent !important;
    color: #00ff00;
    font-family: "SF Mono", "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0;
    border: none;
}

/* Inline code */
.blog-content code {
    background: #1a1a1a;
    color: #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: "SF Mono", "Consolas", "Monaco", monospace;
    font-size: 0.95em;
    border: 1px solid #333;
}

/* Lists - better spacing */
.blog-content ul,
.blog-content ol {
    margin: 1.75rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.blog-content ul li::marker {
    color: #3b82f6;
}

/* Strong/Bold text */
.blog-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Links */
.blog-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: #3b82f6;
}

.blog-content a:hover {
    color: #93c5fd;
}

/* Blockquotes */
.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #b0b0b0;
}

/* Better mobile readability */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1.05rem;
    }
    
    .blog-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-content h3 {
        font-size: 1.35rem;
    }
    
    .blog-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}
/* Related Posts Section */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.dark .related-posts {
    border-top-color: #374151;
}

.related-posts h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111827;
}

.dark .related-posts h2 {
    color: #f9fafb;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.dark .related-post-card {
    background: #1f2937;
    border-color: #374151;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .related-post-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.related-post-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-post-card h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.dark .related-post-card h3 a {
    color: #f9fafb;
}

.related-post-card h3 a:hover {
    color: #3b82f6;
}

.dark .related-post-card h3 a:hover {
    color: #60a5fa;
}

.related-post-card .meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.dark .related-post-card .meta {
    color: #9ca3af;
}

.related-post-card .excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

.dark .related-post-card .excerpt {
    color: #d1d5db;
}
