/* ============================================================
   article.css  —  AIToolsRecap article page styles
   Served from /Assets/article.css
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.art-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 40px 44px;
  border-bottom: 3px solid var(--accent);
}
.art-hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.art-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 820px;
}
.art-hero-excerpt {
  font-size: 16px;
  color: rgba(245, 242, 236, .72);
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 26px;
}
.art-hero-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, .45);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}

/* ── Cover image ────────────────────────────────────────────── */
.art-cover {
  width: 100%;
  overflow: hidden;
  max-height: 480px;
  background: #111;
}
.art-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Layout ─────────────────────────────────────────────────── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* ── Article body ───────────────────────────────────────────── */
.art-body {
  padding-right: 48px;
  padding-top: 32px;
  border-right: 1px solid var(--rule);
}
.art-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}
.art-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 10px;
}
.art-body p {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.art-body ul,
.art-body ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.art-body li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.art-body strong { color: var(--ink); }

.art-body .article-callout {
  background: rgba(201, 162, 39, .08);
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

/* Article table (site-specific, not the comparison-table) */
.art-body .article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.art-body .article-table th {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.art-body .article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.art-body .article-table tr:nth-child(even) td { background: var(--cream); }

/* ── Sidebar ────────────────────────────────────────────────── */
.art-sidebar {
  padding-left: 28px;
  padding-top: 32px;
}
.sb-box {
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}
.sb-box-title {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.sb-box-body { padding: 14px 16px; }

/* ── Not found ──────────────────────────────────────────────── */
.not-found { text-align: center; padding: 80px 40px; }

/* ── ai-article content styles (used inside litContent) ──────── */
.ai-article {
  font-family: 'Georgia', serif;
  max-width: 780px;
  margin: 0 auto;
  color: #1a1a1a;
  line-height: 1.75;
  font-size: 17px;
}
.ai-article h2 {
  font-family: 'Georgia', serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #111;
}

/* ── Verdict box ────────────────────────────────────────────── */
.verdict-box {
  background: #f0f7ff;
  border: 1.5px solid #2563eb;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 2rem;
}
.verdict-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 8px;
}

/* ── Comparison table ───────────────────────────────────────── */
.comparison-table {
  overflow-x: auto;
  margin: 1.25rem 0;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: system-ui, sans-serif;
}
.comparison-table th {
  background: #1e293b;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}
.comparison-table tr:nth-child(even) td { background: #f9fafb; }
.comparison-table tr:hover td { background: #eff6ff; }

/* ── Choose box ─────────────────────────────────────────────── */
.choose-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}
.choose-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
.choose-option strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #111827;
}
.choose-option ul {
  padding-left: 18px;
  margin: 0 0 12px;
  color: #4b5563;
}
.choose-option li { margin-bottom: 4px; }

/* ── Steps list ─────────────────────────────────────────────── */
.steps-list { margin: 1rem 0; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-family: system-ui, sans-serif;
  font-size: 15px;
}
.step:last-child { border-bottom: none; }
.step-num {
  background: #2563eb;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Tool cards ─────────────────────────────────────────────── */
.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 1rem 0;
  font-family: system-ui, sans-serif;
  font-size: 15px;
}
.tool-header {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.tool-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 10px;
}

/* ── FAQ section ────────────────────────────────────────────── */
.faq-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin: 2rem 0;
  font-family: system-ui, sans-serif;
}
.faq-section h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 6px;
  cursor: pointer;
}
.faq-q::before {
  content: "Q: ";
  color: #2563eb;
}
.faq-a {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* ── CTA box ────────────────────────────────────────────────── */
.cta-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 24px;
  margin: 2rem 0;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.cta-box p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 14px;
}
.cta-box .btn-primary,
.cta-box .btn-secondary { margin: 4px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-ok   { background: #dcfce7; color: #15803d; }
.badge-warn { background: #fef9c3; color: #a16207; }
.badge-info { background: #dbeafe; color: #1d4ed8; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  border-radius: 7px;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}
.btn-secondary:hover { background: #eff6ff; }
.btn-outline {
  background: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
  font-size: 13px;
  padding: 6px 14px;
}
.btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ── Tag pills (rendered from litTags in code-behind) ────────── */
.art-tag {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  margin: 2px 3px 2px 0;
  color: var(--ink);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .art-hero { padding: 32px 16px; }
  .art-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .art-body { padding-right: 0; border-right: none; }
  .art-sidebar { padding-left: 0; }
  .art-cover { max-height: 220px; }
  .art-cover img { max-height: 220px; }
  .choose-box { grid-template-columns: 1fr; }
}

/* ── Dark mode ──────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .ai-article { color: #e2e8f0; }
  .verdict-box { background: #1e2a3a; border-color: #3b82f6; }
  .comparison-table th { background: #0f172a; }
  .comparison-table td { color: #cbd5e1; border-color: #1e293b; }
  .comparison-table tr:nth-child(even) td { background: #1e293b; }
  .comparison-table tr:hover td { background: #1e3a5f; }
  .choose-option { background: #1e293b; border-color: #334155; color: #cbd5e1; }
  .choose-option strong { color: #e2e8f0; }
  .tool-card { background: #1e293b; border-color: #334155; }
  .faq-section { background: #1e293b; }
  .faq-q { color: #e2e8f0; }
  .faq-a { color: #94a3b8; }
  .btn-secondary { color: #60a5fa; border-color: #60a5fa; }
  .btn-outline { color: #cbd5e1; border-color: #475569; }
  .btn-outline:hover { background: #1e293b; }
}

/* ============================================================
   APPEND TO END OF /Assets/site.css
   These styles were previously inline in Site.Master on every
   page load. Moving them here means they're cached with site.css.
   ============================================================ */

/* ── List Tool CTA pill in nav ─────────────────────────────── */
.nav-list-tool {
    background: var(--gold, #f59e0b) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 6px 14px !important;
    margin-left: 6px;
}

    .nav-list-tool:hover {
        opacity: 0.88 !important;
    }

/* ── Topbar divider ─────────────────────────────────────────── */
.topbar-divider {
    color: rgba(255,255,255,0.2);
    margin: 0 4px;
}

/* ── AI Tools Bar (site-wide) ───────────────────────────────── */
.ai-tools-bar {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 14px 0;
}

.ai-tools-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-tools-bar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-tools-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .ai-tools-bar-links a {
        font-size: 12px;
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
        padding: 4px 10px;
        border: 1px solid var(--rule);
        border-radius: 20px;
        transition: border-color .15s, color .15s;
        white-space: nowrap;
    }

        .ai-tools-bar-links a:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

/* ── Membership tab styles ──────────────────────────────────── */
.mem-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #f59e0b);
    margin-bottom: 12px;
}

.mem-reviewer-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .mem-reviewer-cta a {
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        transition: color 0.15s;
    }

        .mem-reviewer-cta a:hover {
            color: #fff;
            border-bottom-color: #fff;
        }

/* ── Responsive (from Site.Master) ─────────────────────────── */
@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .masthead {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
    }

    .masthead-tagline {
        display: none;
    }

    .masthead h1 {
        font-size: 28px;
    }

    .masthead-actions {
        display: none;
    }

    nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 0 8px;
        gap: 0;
        scrollbar-width: none;
    }

        nav::-webkit-scrollbar {
            display: none;
        }

        nav a {
            padding: 12px 14px;
            font-size: 12px;
            flex-shrink: 0;
        }

    .cards-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
    }

    .section {
        padding: 24px 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 4px;
    }

    .category-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 16px;
    }

    .category-icon-large {
        font-size: 40px;
    }

    .filter-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .filter-results {
        margin-left: 0;
    }

    .lb-table th:nth-child(3), .lb-table td:nth-child(3) {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .featured-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 32px 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px;
    }

    .compare-layout {
        flex-direction: column-reverse;
    }

    .compare-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .compare-main {
        padding: 20px 16px;
        border-right: none;
    }

    .review-header {
        padding: 24px 16px;
    }

    .score-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    h1 {
        font-size: 26px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    .btn {
        padding: 8px 16px;
    }

    .nav-list-tool {
        margin-left: 0 !important;
    }

    .ai-tools-bar-inner {
        padding: 0 16px;
    }
}
