/* ========== BLOG STYLES - AI-OPTIMIZED ========== */

/* Body Background */
body {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    margin: 0;
    padding: 0;
}

/* Blog Post Article */
.blog-post {
    background: #ffffff;
    margin: 2rem auto;
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Container */
.blog-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: #2196F3;
    text-decoration: none;
}

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

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.category-badge {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reading-time::before {
    content: '•';
    margin-right: 0.5rem;
}

.article-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.6;
}

/* Quick Answer Box */
.quick-answer {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 4px solid #2196F3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.quick-answer strong {
    color: #1976D2;
    font-size: 1.1rem;
}

/* Table of Contents */
.table-of-contents {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* Article Content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.article-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 2rem 0 1rem;
    line-height: 1.4;
}

.article-content h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content a {
    color: #2196F3;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1976D2;
}

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

/* Causes List */
.causes-list {
    counter-reset: cause-counter;
    list-style: none;
    padding-left: 0;
}

.causes-list > li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
    counter-increment: cause-counter;
}

.causes-list > li::before {
    content: counter(cause-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.causes-list > li strong {
    font-size: 1.2rem;
    color: #1976D2;
    display: block;
    margin-bottom: 0.5rem;
}

.causes-list > li p {
    margin-bottom: 0.5rem;
}

/* DIY Steps */
.diy-steps {
    margin: 2rem 0;
}

.diy-step {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.diy-step h3 {
    color: #2196F3;
    margin-top: 0;
}

.step-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.step-meta span {
    display: flex;
    align-items: center;
}

.diy-step ol {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.warning {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

.warning strong {
    color: #F57C00;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.comparison-table .yes {
    color: #27AE60;
    font-weight: 600;
}

.comparison-table .maybe {
    color: #FF9800;
    font-weight: 600;
}

.comparison-table .no {
    color: #E53935;
    font-weight: 600;
}

.comparison-table .low {
    color: #27AE60;
}

.comparison-table .medium {
    color: #FF9800;
}

.comparison-table .high {
    color: #E53935;
}

/* Red Flags */
.red-flags {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.red-flags li {
    background: #FFEBEE;
    border-left: 4px solid #E53935;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #27AE60;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box h4 {
    font-family: 'Fredoka', sans-serif;
    color: #1B5E20;
    margin-top: 0;
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 1.5rem auto;
}

.benefits-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.cta-button,
.cta-button-primary {
    display: inline-block;
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 1rem 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cta-button:hover,
.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button-secondary {
    display: inline-block;
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 1rem 0.5rem;
    transition: all 0.3s;
}

.cta-button-secondary:hover {
    background: #2196F3;
    color: white;
    text-decoration: none;
}

.cta-phone {
    font-size: 1rem;
    margin-top: 1rem;
}

.cta-phone a {
    color: #2196F3;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.25rem;
}

.cta-phone a:hover {
    text-decoration: underline;
}

/* Tip Box */
.tip-box {
    background: #FFF9C4;
    border-left: 4px solid #FBC02D;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.tip-box h4 {
    color: #F57F17;
    margin-top: 0;
}

/* Decision Grid */
.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.decision-box {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
}

.decision-box.repair {
    background: #E8F5E9;
    border-color: #27AE60;
}

.decision-box.replace {
    background: #FFEBEE;
    border-color: #E53935;
}

.decision-box h4 {
    margin-top: 0;
    font-size: 1.25rem;
}

.decision-box.repair h4 {
    color: #1B5E20;
}

.decision-box.replace h4 {
    color: #B71C1C;
}

.decision-box ul {
    list-style: none;
    padding-left: 0;
}

.decision-box li::before {
    content: '→';
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Expert Tips */
.expert-tips {
    margin: 2rem 0;
}

.tip-item {
    background: #F3E5F5;
    border-left: 4px solid #9C27B0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.tip-item h3 {
    color: #7B1FA2;
    margin-top: 0;
}

.maintenance-schedule {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.maintenance-schedule li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.maintenance-schedule li:last-child {
    border-bottom: none;
}

.tip-highlight {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #2196F3;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2196F3;
}

.faq-item h3 {
    color: #2196F3;
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin-bottom: 0;
    color: #555;
}

/* Article Conclusion */
.article-conclusion {
    margin: 4rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.final-cta {
    margin-top: 2rem;
}

.final-cta h3 {
    font-family: 'Fredoka', sans-serif;
    color: #1976D2;
}

.final-cta ul {
    list-style: none;
    padding: 0;
}

.final-cta li {
    padding: 0.5rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.related-articles h3 {
    font-family: 'Fredoka', sans-serif;
    color: #333;
    margin-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #2196F3;
}

.related-card h4 {
    color: #2196F3;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.related-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Blog Footer */
.blog-footer {
    background: #1976D2;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.blog-footer p {
    margin: 0.5rem 0;
}

.blog-footer a {
    color: white;
    text-decoration: underline;
}

.blog-footer a:hover {
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        font-size: 0.8rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .causes-list > li {
        padding-left: 3rem;
    }

    .causes-list > li::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .step-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-button,
    .cta-button-primary,
    .cta-button-secondary {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

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

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.5rem;
    }

    .quick-answer {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .article-content h2 {
        font-size: 1.375rem;
    }

    .diy-step {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .breadcrumbs,
    .table-of-contents,
    .cta-box,
    .cta-button,
    .cta-buttons,
    .related-articles,
    .blog-footer {
        display: none;
    }

    .blog-container {
        max-width: 100%;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* ========== ARTICLE IMAGES ========== */
.article-image {
    margin: 3rem 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .article-image {
        margin: 2rem 0;
    }

    .article-image img {
        border-radius: 8px;
    }

    .image-caption {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}
