/**
 * blog.css
 * Styling for blog articles
 */

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================== ARTICLE HEADER ==================== */
.article-header {
    margin-bottom: 40px;
}

.breadcrumbs {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #007AFF;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-header h1 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b6b6b;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

/* ==================== TABLE OF CONTENTS ==================== */
.toc {
    background: #f8f9fa;
    border-left: 4px solid #007AFF;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.toc h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.toc a:hover {
    color: #0051D5;
    text-decoration: underline;
}

/* ==================== ARTICLE CONTENT ==================== */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
}

.article-content .lead {
    font-size: 20px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-left: 4px solid #007AFF;
    border-radius: 4px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
    scroll-margin-top: 100px; /* For smooth scrolling */
}

.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #374151;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #4b5563;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ol,
.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 15px;
}

.article-content li strong {
    color: #1a1a1a;
    font-weight: 700;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #e74c3c;
}

.article-content pre {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    color: #10b981;
    padding: 0;
    font-size: 14px;
}

/* ==================== PRO/CON BOXES ==================== */
.pro-con-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pros,
.cons {
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background: #ecfdf5;
    border: 2px solid #10b981;
}

.cons {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.pros h4,
.cons h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.pros ul,
.cons ul {
    margin: 0;
    padding-left: 20px;
}

.pros li,
.cons li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ==================== HIGHLIGHT & CTA BOXES ==================== */
.highlight-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.highlight-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #92400e;
}

.highlight-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #78350f;
}

.cta-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: white;
}

.cta-box p {
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
}

.comparison-table th {
    background: #f3f4f6;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.faq-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
    margin: 60px 0 40px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: #007AFF;
    box-shadow: 0 8px 20px rgba(0,122,255,0.15);
    transform: translateY(-2px);
}

.related-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.related-card p {
    margin: 0;
    font-size: 14px;
    color: #6b6b6b;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .pro-con-box {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
