﻿/* Blog-specific styles */

.blog-article {
    padding-top: 120px;
    padding-bottom: var(--spacing-3xl);
}

.article-header {
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--light-300);
    margin-bottom: var(--spacing-lg);
}

.breadcrumb a {
    color: var(--light-300);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.article-meta {
    display: flex;
    gap: var(--spacing-xl);
    color: var(--light-300);
    font-size: 0.9rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Blog Sidebar Navigation ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.blog-sidebar h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-300);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-sidebar-links a {
    display: block;
    padding: 10px 12px;
    color: var(--light-300);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1.4;
}

.blog-sidebar-links a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
}

.blog-sidebar-links a.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    font-weight: 600;
}

.blog-main {
    min-width: 0;
}

/* Responsive: Hide sidebar on mobile */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }
}

.article-content h2 {
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.2rem;
    color: var(--light-200);
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
    color: var(--light-300);
    line-height: 1.7;
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.article-content pre {
    background: var(--dark-800);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: var(--spacing-lg);
}

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

/* Table of Contents */
.toc {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.toc h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.toc ol {
    margin-bottom: 0;
    padding-left: var(--spacing-lg);
}

.toc a {
    color: var(--light-200);
}

.toc a:hover {
    color: var(--primary-light);
}

/* Callout Boxes */
.callout {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.callout-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-xl);
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: var(--dark-700);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: var(--spacing-2xl);
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-xl);
    margin: var(--spacing-2xl) 0;
}

/* Donation CTA in Articles */
.donation-cta {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

.donation-cta p {
    margin-bottom: var(--spacing-lg);
}

/* Related Posts */
.related-posts {
    background: var(--dark-800);
}

.related-posts h2 {
    margin-bottom: var(--spacing-xl);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.post-card {
    display: block;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.post-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--light-100);
}

.post-card p {
    color: var(--light-300);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Blog Index */
.blog-header {
    padding-top: 120px;
    padding-bottom: var(--spacing-2xl);
    background: var(--dark-800);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.blog-card-content {
    padding: var(--spacing-xl);
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card h2 a {
    color: var(--light-100);
}

.blog-card p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--light-300);
}