/* CarSnipe Pages Stylesheet - Terms, Privacy, Download, Blog */

/* Inline Brand Favicons */
.favicon { display: inline-block; vertical-align: middle; border-radius: 3px; }
h2 .favicon, h3 .favicon { margin-right: 8px; }
th .favicon { margin-right: 6px; vertical-align: middle; }

/* Blog Comparison Tables (table-base) */
.table-wrap { overflow-x: auto; margin: 24px 0 32px; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid var(--gray-200); }
.table-base { width: 100%; border-collapse: collapse; background: white; font-size: 14px; line-height: 1.5; }
.table-base thead { background: var(--gray-50); }
.table-base th { padding: 14px 16px; font-size: 13px; font-weight: 700; color: var(--gray-700); text-align: center; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.table-base th:first-child { text-align: left; color: var(--gray-500); font-weight: 600; }
.table-base td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); text-align: center; }
.table-base td:first-child { text-align: left; color: var(--gray-800); font-weight: 500; }
.table-base tbody tr:last-child td { border-bottom: none; }
.table-base tbody tr:hover { background: var(--gray-50); }
/* Zebra stripe for table rows */
.table-base tbody tr:nth-child(even) { background: var(--gray-50); }
.table-base tbody tr:nth-child(even):hover { background: var(--gray-100); }

/* Page Header */
.page-header { background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%); padding: 80px 0 60px; text-align: center; }
.page-header h1 { font-size: 42px; font-weight: 800; color: white; margin-bottom: 16px; }
.page-header p { color: var(--gray-400); font-size: 16px; }

/* Page Content (Terms, Privacy) */
.page-content { padding: 64px 0; background: var(--gray-50); }
.page-content .container { max-width: 800px; }
.page-content h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--gray-800); margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; color: var(--gray-600); }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; color: var(--gray-600); }
.page-content li { margin-bottom: 8px; }
.page-content strong { color: var(--gray-800); }
.page-content a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
.page-content a:hover { color: var(--accent); text-decoration: underline; }
.page-content a.btn { color: white; text-decoration: none; }
.page-content a.btn:hover { color: white; text-decoration: none; }
.page-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* Download Page */
.download-box { text-align: center; background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 48px; margin-bottom: 48px; }
.download-icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.download-icon i { font-size: 36px; color: var(--accent-dark); }
.download-icon img { width: 56px; height: 56px; max-width: 56px; max-height: 56px; object-fit: contain; }
.download-box h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.download-reqs { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.btn-lg { padding: 20px 40px; font-size: 18px; }
.download-version { color: var(--gray-500); font-size: 13px; margin-top: 16px; }
.install-steps { max-width: 640px; margin: 0 auto; }
.install-steps h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 32px; text-align: center; }
.install-step { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.install-num { width: 40px; height: 40px; min-width: 40px; background: var(--accent); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.install-step h3 { font-size: 18px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.install-step p { color: var(--gray-600); font-size: 15px; margin: 0; }
.page-faq { max-width: 800px; margin: 64px auto 0; }
.page-faq h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 32px; text-align: center; }

/* Extension Cards Grid */
.ext-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.ext-grid .download-box { margin-bottom: 0; }
.ext-grid details { text-align: left; margin-top: 24px; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.ext-grid details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-dark); display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.ext-grid details summary:hover { background: var(--gray-50); }
.ext-grid details summary::-webkit-details-marker { display: none; }
.ext-grid details summary::marker { display: none; content: ''; }
.ext-grid details summary i { font-size: 14px; transition: transform 0.2s; }
.ext-grid details[open] summary i { transform: rotate(180deg); }
.ext-grid details ol { margin-top: 12px; padding-left: 24px; color: var(--gray-600); font-size: 14px; line-height: 2; }
.ext-grid details ol li { margin-bottom: 2px; }
.ext-grid details code { background: var(--gray-100); padding: 2px 8px; border-radius: 4px; font-size: 13px; font-family: 'SF Mono', 'Consolas', monospace; }

/* Desktop Agent Fallback */
.desktop-fallback { text-align: center; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 36px 40px; margin: 48px auto; max-width: 560px; }
.desktop-fallback .fallback-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.desktop-fallback .fallback-header img { width: 24px; height: 24px; }
.desktop-fallback .fallback-label { font-size: 16px; font-weight: 600; color: var(--gray-700); margin: 0; }
.desktop-fallback p { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.desktop-fallback .btn { display: inline-flex; background: var(--gray-800); color: white; border-color: var(--gray-800); }
.desktop-fallback .btn:hover { background: var(--gray-700); border-color: var(--gray-700); }
.desktop-fallback .fallback-meta { color: var(--gray-500); font-size: 12px; margin-top: 12px; margin-bottom: 0; }

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */
.blog-header { background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%); padding: 100px 0 80px; text-align: center; }
.blog-header h1 { font-size: 48px; font-weight: 800; color: white; margin-bottom: 16px; letter-spacing: -1px; }
.blog-header p { color: var(--gray-400); font-size: 18px; max-width: 500px; margin: 0 auto; }
.blog-main { padding: 64px 0; background: var(--gray-50); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.blog-card { background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 40px; text-decoration: none; display: flex; flex-direction: column; gap: 16px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.blog-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(59,130,246,0.15); transform: translateY(-6px); }
.blog-card-tag { display: inline-flex; align-items: center; background: var(--accent-light); color: var(--accent-dark); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; width: fit-content; }
.blog-card h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin: 0; }
.blog-card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; flex: 1; margin: 0; }
.blog-card-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gray-500); }
.blog-card-read { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; transition: gap 0.2s; }
.blog-card:hover .blog-card-read { gap: 8px; }
.blog-cta-box { background: var(--accent); border-radius: 16px; padding: 48px; text-align: center; max-width: 1000px; margin: 48px auto 0; }
.blog-cta-box h2 { font-size: 28px; font-weight: 700; color: white; margin-bottom: 12px; }
.blog-cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 16px; }
.blog-cta-box .btn { background: white; color: var(--accent-dark); }
.blog-cta-box .btn:hover { background: var(--gray-50); transform: translateY(-2px); }

/* Sticky CTA banner (blog articles) */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--gray-900); border-top: 1px solid rgba(59, 130, 246, 0.3); padding: 10px 0; box-shadow: 0 -2px 12px rgba(0,0,0,0.3); }
.sticky-cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.sticky-cta-text { color: var(--gray-200); font-size: 14px; font-weight: 500; }
.sticky-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: white; padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.2s; white-space: nowrap; }
.sticky-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); color: white; }
.sticky-cta-close { background: none; border: none; color: var(--gray-400); font-size: 20px; cursor: pointer; padding: 4px 8px; line-height: 1; transition: color 0.2s; }
.sticky-cta-close:hover { color: white; }
@media (max-width: 600px) {
    .sticky-cta-text { display: none; }
    .sticky-cta-inner { justify-content: center; }
}

/* ============================================================
   BLOG ARTICLE PAGES
   ============================================================ */
.article-header { background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%); padding: 100px 0 80px; }
.article-header .container { max-width: 860px; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-400); margin-bottom: 24px; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.article-breadcrumb a:hover { color: white; }
.article-breadcrumb-sep { color: var(--gray-600); }
.article-tag { display: inline-flex; align-items: center; background: var(--accent-light); color: var(--accent); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; width: fit-content; }
.article-header h1 { font-size: 46px; font-weight: 800; color: white; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--gray-400); flex-wrap: wrap; }
.article-meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta i { font-size: 16px; color: var(--accent); }

.article-content-wrap { padding: 64px 0; background: var(--gray-50); }
.article-content-wrap .container { max-width: 860px; }

/* Table of Contents */
.article-toc { background: white; border: 1px solid var(--gray-200); border-left: 4px solid var(--accent); border-radius: 12px; padding: 28px 32px; margin-bottom: 48px; }
.article-toc h2 { font-size: 16px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.article-toc ol { padding-left: 20px; margin: 0; }
.article-toc li { margin-bottom: 8px; }
.article-toc a { color: var(--accent-dark); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Article Body */
.article-body h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin: 56px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--gray-800); margin: 32px 0 16px; }
.article-body p { color: var(--gray-600); font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 20px 0; padding-left: 28px; color: var(--gray-600); font-size: 17px; line-height: 1.8; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--gray-800); }
.article-body a { color: var(--accent-dark); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body code { background: var(--gray-100); padding: 2px 8px; border-radius: 4px; font-size: 15px; color: var(--accent-dark); }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 16px 24px; background: var(--accent-light); border-radius: 0 12px 12px 0; margin: 32px 0; }
.article-body blockquote p { margin: 0; color: var(--gray-700); font-style: italic; font-size: 18px; }

/* Inline CTA Box */
.article-cta-box { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-dark) 55%, var(--accent) 100%); border-radius: 16px; padding: 40px; margin: 48px 0; text-align: center; }
.article-cta-box h3 { font-size: 22px; font-weight: 700; color: white; margin-bottom: 12px; }
.article-cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 16px; }
.article-cta-box .btn { background: white; color: var(--accent-dark); font-weight: 700; }
.article-cta-box .btn:hover { background: var(--gray-50); transform: translateY(-2px); }
.article-cta-box .cta-sub { font-size: 14px; margin-top: 16px; margin-bottom: 0; color: rgba(255,255,255,0.95); }
.article-cta-box .cta-sub a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-cta-box .cta-sub a:hover { color: white; text-decoration: underline; }

/* Article Images */
.article-img { margin: 32px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.article-img img { display: block; width: 100%; height: auto; }
.article-img figcaption { font-size: 11px; color: var(--gray-500); text-align: right; padding: 6px 12px 4px; background: none; font-style: italic; }
.article-img--screenshot { border: 1px solid var(--gray-200); }
.article-img--half { max-width: 50%; }
@media (max-width: 768px) { .article-img--half { max-width: 100%; } }

/* Key Points / Callout */
.article-callout { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.article-callout strong { display: block; font-size: 15px; color: var(--accent-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-callout p { margin: 0; color: var(--gray-700); font-size: 16px; }

/* Real Listing Snapshot (Auto.dev data) */
.listing-snapshot { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px 24px; margin: 32px 0; }
.listing-snapshot-header { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #64748B; }
.listing-snapshot-header i { font-size: 14px; }
.listing-snapshot-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.listing-snapshot-card { display: flex !important; flex-direction: column !important; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; }
.article-body .listing-snapshot-img { display: block; width: 100%; height: 140px; object-fit: cover; flex-shrink: 0; background: #E2E8F0; border-radius: 0; }
.listing-snapshot-info { padding: 10px 12px 12px; }
.article-body .listing-snapshot-vehicle { font-size: 14px; font-weight: 600; color: #1E293B; line-height: 1.3; margin-bottom: 0; }
.article-body .listing-snapshot-meta { font-size: 13px; color: #64748B; margin: 4px 0 0; line-height: 1.4; }
.listing-snapshot-price { font-weight: 700; color: #1D4ED8; }
.article-body .listing-snapshot-dealer { font-size: 12px; color: #64748B; margin: 2px 0 0; }
.article-body .listing-snapshot-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #F1F5F9; font-size: 12px; color: #64748B; line-height: 1.4; }
@media (max-width: 640px) {
    .listing-snapshot-grid { grid-template-columns: 1fr; }
}

/* Article FAQ */
.article-faq { margin-top: 56px; }
.article-faq h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 32px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }

/* Related Articles */
.article-related { padding: 64px 0; background: white; border-top: 1px solid var(--gray-200); }
.article-related .container { max-width: 860px; }
.article-related h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.related-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--gray-900); transition: all 0.3s; display: flex; flex-direction: column; gap: 8px; }
.related-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(59,130,246,0.12); transform: translateY(-3px); }
.related-card-tag { font-size: 11px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.related-card h3 { font-size: 16px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin: 0; }
.related-card p { font-size: 13px; color: var(--gray-500); margin: 0; line-height: 1.5; }
/* article-related-card variant (3-column grid, used in newer articles) */
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-related-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--gray-900); transition: all 0.3s; display: flex; flex-direction: column; gap: 8px; }
.article-related-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(59,130,246,0.12); transform: translateY(-3px); }
.article-related-tag { font-size: 11px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.article-related-card h3 { font-size: 16px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin: 0; }
.article-related-card p { font-size: 13px; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 { font-size: 32px; }
    .page-header { padding: 60px 0 40px; }
    .page-content { padding: 40px 0; }
    .download-box { padding: 32px 20px; }
    .ext-grid { grid-template-columns: 1fr; }
    .blog-header h1 { font-size: 32px; }
    .blog-header { padding: 70px 0 50px; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 30px; }
    .article-header { padding: 70px 0 50px; }
    .article-body h2 { font-size: 22px; }
    .article-body h3 { font-size: 18px; }
    .article-body p, .article-body li { font-size: 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .article-related-grid { grid-template-columns: 1fr; }
    .article-toc { padding: 20px 24px; }
}

/* Author bio box for E-E-A-T signals */
.author-bio-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: 0 0 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.author-bio-avatar {
    font-size: 32px;
    color: var(--gray-400);
    flex-shrink: 0;
}
.author-bio-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.author-bio-text p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

/* Related Articles */
.related-articles { background: var(--gray-50); padding: 48px 0; border-top: 1px solid var(--gray-200); }
.related-articles h2 { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 24px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; background: white; border-radius: 12px; padding: 24px; text-decoration: none; border: 1px solid var(--gray-200); transition: box-shadow 0.2s, border-color 0.2s; }
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--accent); }
.related-tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); background: var(--accent-light); padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; }
.related-card h3 { font-size: 15px; font-weight: 600; color: var(--gray-800); line-height: 1.4; margin-bottom: 8px; }
.related-meta { font-size: 12px; color: var(--gray-500); }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } .related-articles { padding: 32px 0; } }
