/* ============================================================================
   Blog Article Styles
   Shared CSS for all /blog/* article pages.
   Loaded via @push('styles') in each blog article blade template.
   ========================================================================== */

/* ── Article Body Typography ──────────────────────────────────────────────── */
.article-body h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.35rem;
    margin-top: 35px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
    margin: 15px 0 25px 20px;
    font-size: 1.08rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 8px;
}

/* ── Expert Quote ─────────────────────────────────────────────────────────── */
.expert-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--accent, #FF4F00);
    padding: 28px 34px;
    border-radius: 0 12px 12px 0;
    margin: 35px 0;
    position: relative;
}

.expert-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent, #FF4F00);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.expert-quote p {
    font-style: italic;
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.expert-quote .attribution {
    font-style: normal;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent, #FF4F00);
}

/* ── Comparison Table ─────────────────────────────────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.98rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--accent, #FF4F00);
    color: white;
}

.comparison-table th {
    padding: 15px 18px;
    text-align: left;
    font-weight: 700;
}

.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

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

/* ── Warning Box ──────────────────────────────────────────────────────────── */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.warning-box strong {
    color: #856404;
}

/* ── Pro Tip Box ──────────────────────────────────────────────────────────── */
.pro-tip-box {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.pro-tip-box strong {
    color: #155724;
}

/* ── Stat Highlight ───────────────────────────────────────────────────────── */
.stat-highlight {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.stat-highlight .big-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent, #FF4F00);
    display: block;
}

/* ── TOC Box ──────────────────────────────────────────────────────────────── */
.toc-box {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.toc-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.toc-box ol {
    margin: 0;
    padding-left: 20px;
}

.toc-box li {
    margin-bottom: 8px;
}

.toc-box a {
    color: var(--accent, #FF4F00);
    text-decoration: none;
    font-weight: 500;
}

.toc-box a:hover {
    text-decoration: underline;
}

/* ── CTA Block ────────────────────────────────────────────────────────────── */
.cta-block {
    background: var(--bg-secondary, #f8f9fa);
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    border-left: 5px solid var(--accent, #FF4F00);
    text-align: center;
}

/* ── Emergency Box ────────────────────────────────────────────────────────── */
.emergency-box {
    background: #fff3f3;
    border-left: 5px solid #d9534f;
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.emergency-box h3 {
    color: #d9534f;
    margin-top: 0;
}

/* ── Inline CTA ───────────────────────────────────────────────────────────── */
.inline-cta {
    background: linear-gradient(135deg, var(--accent, #FF4F00), #c63b00);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 35px 0;
    text-align: center;
}

.inline-cta a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

/* ── FAQ Section (details/summary pattern) ────────────────────────────────── */
.faq-section details {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-section summary {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    background: #f8f9fa;
    list-style: none;
    user-select: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::before {
    content: '+ ';
    color: var(--accent, #FF4F00);
    font-weight: 800;
}

.faq-section details[open] summary::before {
    content: '\2212 ';
}

.faq-section details[open] summary {
    border-bottom: 1px solid #dee2e6;
}

.faq-section .faq-answer {
    padding: 18px 22px;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ============================================================================
   Page-Specific Styles
   ========================================================================== */

/* ── Article Meta (transmission-fluid-leak-warning-signs) ────────────────── */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
}

.article-meta .author-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent, #FF4F00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.article-meta .author-name {
    font-weight: 700;
    color: var(--text-main, #212529);
    font-size: 0.95rem;
    line-height: 1.2;
}

.article-meta .author-title {
    font-size: 0.82rem;
    color: var(--text-muted, #6c757d);
}

.article-meta .meta-divider {
    color: #dee2e6;
}

.article-meta time {
    font-weight: 500;
}

.reading-time-badge {
    background: #f0f4ff;
    color: #3b5bdb;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
}

/* ── Article Intro (transmission-fluid-leak-warning-signs) ───────────────── */
.article-intro {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-main, #212529);
    border-left: 4px solid var(--accent, #FF4F00);
    padding-left: 20px;
    margin-bottom: 30px;
}

/* ── Article Summary / Key Takeaways (transmission-fluid-leak-warning-signs) */
.article-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 26px 30px;
    margin: 30px 0;
}

.article-summary h3 {
    margin-top: 0;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #FF4F00);
}

.article-summary ul {
    margin: 0;
    padding-left: 20px;
}

.article-summary li {
    margin-bottom: 6px;
    font-size: 1.02rem;
}

/* ── Author Bio (transmission-fluid-leak-warning-signs) ──────────────────── */
.author-bio {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 48px 0 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.author-bio .bio-icon {
    background: var(--accent, #FF4F00);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.author-bio h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.author-bio .bio-role {
    font-size: 0.88rem;
    color: var(--accent, #FF4F00);
    font-weight: 700;
    margin-bottom: 8px;
}

.author-bio p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text-muted, #6c757d);
}

@media (max-width: 580px) {
    .author-bio {
        flex-direction: column;
    }
}

/* ── Sign Number Badges (transmission-fluid-leak-warning-signs) ───────────── */
.sign-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent, #FF4F00);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.sign-heading {
    display: flex;
    align-items: center;
    margin-top: 36px;
    margin-bottom: 12px;
}

.sign-heading h3 {
    margin: 0;
    font-size: 1.28rem;
}

/* ── Severity Badges (transmission-fluid-leak-warning-signs) ──────────────── */
.badge-low {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-med {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-high {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Solid vs Flash Cards (winter-car-care, check-engine-light-solid-vs-flashing) */
.solid-vs-flash {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.solid-card {
    background: #fff8e1;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 12px;
}

.solid-card h4 {
    color: #856404;
    margin-top: 0;
}

.flash-card {
    background: #fde8e8;
    border: 2px solid #d9534f;
    padding: 25px;
    border-radius: 12px;
}

.flash-card h4 {
    color: #d9534f;
    margin-top: 0;
}

@media (max-width: 600px) {
    .solid-vs-flash {
        grid-template-columns: 1fr;
    }
}

/* ── Severity Meter (winter-car-care, check-engine-light-solid-vs-flashing) ─ */
.severity-meter {
    background: linear-gradient(90deg, #28a745 0%, #ffc107 40%, #fd7e14 65%, #d9534f 85%, #721c24 100%);
    height: 20px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

.severity-meter .marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 36px;
    background: #333;
    border-radius: 2px;
}

/* ── Severity Box (suspension-steering-repair-guide) ──────────────────────── */
.severity-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 22px;
    margin: 20px 0;
}

.severity-box.severe {
    background: #f8d7da;
    border-color: var(--accent, #FF4F00);
}

.severity-box .sev-label {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.severity-box .sev-label.amber {
    color: #856404;
}

.severity-box .sev-label.red {
    color: #721c24;
}

/* ── Symptom Card (suspension-steering-repair-guide, car-ac-repair-recharge-guide) */
.symptom-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 22px;
    margin: 15px 0;
}

.symptom-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.symptom-card p {
    margin: 0;
    font-size: 1rem;
}

/* ── Component Grid (suspension-steering-repair-guide) ────────────────────── */
.component-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.component-item {
    flex: 1;
    min-width: 160px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid var(--accent, #FF4F00);
}

.component-item strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 8px;
}

.component-item p {
    font-size: 0.92rem;
    margin: 8px 0 0;
}

/* ── Diagnostic Flow (car-ac-repair-recharge-guide) ───────────────────────── */
.diag-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.diag-step {
    flex: 1;
    min-width: 160px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid var(--accent, #FF4F00);
}

.diag-step strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 8px;
}

.diag-step p {
    font-size: 0.92rem;
    margin: 8px 0 0;
}

/* ── Quick Answer Box (charleston-flooding-car-damage) ────────────────────── */
.quick-answer-box {
    background: var(--bg-secondary, #f8f9fa);
    border-left: 4px solid var(--accent, #FF4F00);
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

/* ── Risk Grid (charleston-flooding-car-damage) ───────────────────────────── */
.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 30px 0;
}

.risk-card {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.risk-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.risk-card.urgent {
    border-color: #f0c36d;
    background: #fffaf0;
}

.risk-card.hidden {
    border-color: #d3dbe5;
    background: #f8fbff;
}

@media (max-width: 700px) {
    .risk-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Checklist Section (summer-car-care-south-carolina) ───────────────────── */
.checklist-section {
    margin: 35px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.checklist-header {
    background: var(--accent, #FF4F00);
    color: white;
    padding: 18px 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.checklist-body {
    background: #f8f9fa;
    padding: 10px 25px;
}

/* ── Checklist Item (spring-storm-prep & summer-car-care-south-carolina) ─── */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.checklist-item:last-child {
    border-bottom: none;
}

/* spring-storm-prep checklist variant */
.checklist-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--accent, #FF4F00);
    color: white;
}

.checklist-item .text h4 {
    margin: 0 0 5px;
    font-size: 1.05rem;
}

.checklist-item .text p {
    margin: 0;
    color: var(--text-muted, #6c757d);
    font-size: 0.95rem;
}

/* summer-car-care checklist variant */
.checklist-item .ck-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-item .ck-content strong {
    display: block;
    font-size: 1.05rem;
}

.checklist-item .ck-content p {
    font-size: 0.95rem;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ── Penny Test Visual (spring-storm-prep) ────────────────────────────────── */
.penny-test-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.penny-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.penny-card .depth {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.penny-card .desc {
    font-size: 0.88rem;
    color: var(--text-muted, #6c757d);
}

.penny-card.danger {
    border-color: #d9534f;
    background: #fff3f3;
}

.penny-card.danger .depth {
    color: #d9534f;
}

.penny-card.warning {
    border-color: #ffc107;
    background: #fff8e1;
}

.penny-card.warning .depth {
    color: #e6a800;
}

.penny-card.safe {
    border-color: #28a745;
    background: #d4edda;
}

.penny-card.safe .depth {
    color: #28a745;
}

@media (max-width: 600px) {
    .penny-test-visual {
        grid-template-columns: 1fr;
    }
}

/* ── Season Card (summer-car-care-south-carolina) ─────────────────────────── */
.season-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 22px;
    margin: 15px 0;
}

.season-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.season-card p {
    margin: 0;
    font-size: 1rem;
}

/* ============================================================================
   Blog Article Layout & Structure
   Shared layout classes for all /blog/* article pages.
   Replaces common inline style="" attributes.
   ========================================================================== */

/* ── Blog Article Main ────────────────────────────────────────────────────── */
.blog-article-main {
    padding: 40px 0 100px;
    background: white;
}

/* ── Blog Container (narrower than default .container) ────────────────────── */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

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

/* ── Blog Breadcrumb Navigation ───────────────────────────────────────────── */
.blog-breadcrumb-nav {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Blog Content Box (white card with shadow) ────────────────────────────── */
.blog-content-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Blog Card Border (adds border to .blog-card) ─────────────────────────── */
.blog-card {
    border: 1px solid #eaeaea;
}

/* ── Blog Meta Bar (flex container for metadata) ──────────────────────────── */
.blog-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Blog Meta Card (individual metadata card) ────────────────────────────── */
.blog-meta-card {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

/* ── Related Articles Section ─────────────────────────────────────────────── */
.related-articles-section {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    padding: 40px 35px;
    margin-top: 60px;
}

.related-articles-title {
    font-size: 1.5rem;
    margin: 0 0 25px;
    text-align: center;
    color: var(--text-main);
}

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

.related-articles-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.related-article-card {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.related-article-card h4 {
    margin-top: 0;
}

.related-article-card p {
    margin-bottom: 12px;
}

.related-article-link {
    color: var(--accent, #FF4F00);
    font-weight: 700;
    text-decoration: none;
}

.related-article-link-grid {
    display: block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--accent, #FF4F00);
    transition: box-shadow 0.2s;
}

.related-article-link-grid:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-article-link-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.related-article-link-grid span {
    font-size: 0.9rem;
    color: #666;
}

/* ── Related Article Card H4/P (standalone classes) ──────────────────────── */
.related-article-card-h4 {
    margin-top: 0;
}

.related-article-card-p {
    margin-bottom: 12px;
}

/* ── Blog Call Button ─────────────────────────────────────────────────────── */
.blog-call-btn {
    display: inline-block;
    background: var(--accent, #FF4F00);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 15px 0;
}

/* ── FAQ Section Margin ───────────────────────────────────────────────────── */
.faq-section-margin {
    margin-top: 25px;
}

/* ── Serving Area Note ────────────────────────────────────────────────────── */
.serving-area-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Center Text Muted ────────────────────────────────────────────────────── */
.text-center-muted {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Article Body H1 ──────────────────────────────────────────────────────── */
.article-body h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* ── Article Image ────────────────────────────────────────────────────────── */
.article-body picture img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

/* Featured article images placed outside .article-body */
.blog-container > picture,
.blog-container picture {
    display: block;
    width: 100%;
}

.blog-container > picture img,
.blog-container picture img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

/* ── Blog Image Caption ───────────────────────────────────────────────────── */
.blog-image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

/* ── Breadcrumb Nav Links ─────────────────────────────────────────────────── */
.blog-breadcrumb-nav a {
    color: var(--accent);
}

.blog-breadcrumb-nav span {
    color: var(--text-muted);
}

/* ── Stat Highlight Paragraph ─────────────────────────────────────────────── */
.stat-highlight p {
    margin: 5px 0 0;
    font-weight: 500;
}
