/* Shared styles for SEO landing pages: comparison and guide pages.
   Matches the dark theme of landing.html. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --accent:#3b82f6; --bg:#111827; --card:#1e293b; --border:#334155; --text:#f1f5f9; --muted:#94a3b8; --dim:#64748b; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav (matches landing.html) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(17,24,39,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--accent); flex-shrink: 0; }
.nav-logo a { color: var(--accent); }
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; }
.nav-links a { color: var(--muted); margin-left: 24px; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #2563eb; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(59,130,246,0.1); text-decoration: none; }

/* Article container */
.article { max-width: 880px; margin: 0 auto; padding: 120px 24px 60px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 8px; color: var(--dim); }

.article h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article .lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.article h2 { font-size: 28px; font-weight: 700; margin: 48px 0 16px; line-height: 1.3; }
.article h3 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; }
.article p { margin-bottom: 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 16px 24px; color: var(--text); }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 600; }
.article code { background: var(--card); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: #e2e8f0; }
.article pre { background: var(--card); border: 1px solid var(--border); padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.article pre code { background: transparent; border: none; padding: 0; font-size: 13px; }
.article blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 16px 0; color: var(--muted); background: rgba(59,130,246,0.06); border-radius: 4px; }

/* Comparison table */
.compare-table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { color: var(--text); font-weight: 600; background: var(--card); }
.compare-table td:first-child { color: var(--muted); }
.compare-table .yes { color: #22c55e; font-weight: 600; }
.compare-table .no { color: #ef4444; }
.compare-table .partial { color: #f59e0b; }
.compare-table tbody tr:hover { background: rgba(59,130,246,0.04); }

/* CTA */
.cta { text-align: center; padding: 60px 24px; background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 48px 0; border-radius: 12px; }
.cta h2 { font-size: 28px; margin: 0 0 12px; }
.cta p { color: var(--muted); margin-bottom: 20px; font-size: 17px; }

/* Related links / internal linking block */
.related { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 32px 0; }
.related h2 { margin: 0 0 12px; font-size: 20px; }
.related ul { margin: 0; list-style: none; }
.related li { margin: 8px 0; padding-left: 0; }
.related li::before { content: '> '; color: var(--accent); font-weight: 700; }

/* Footer (matches landing.html) */
footer { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--border); }
footer .links a { color: var(--dim); margin-left: 16px; font-size: 13px; }
footer .links a:hover { color: var(--text); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { padding: 12px 14px; gap: 8px; }
  .nav-links .btn { padding: 8px 12px; font-size: 13px; margin-left: 8px; flex-shrink: 0; min-height: 0; }
  .btn { min-height: 44px; }
  .article { padding: 100px 16px 40px; }
  .cta { padding: 40px 16px; }
  footer { flex-direction: column; text-align: center; }
  footer .links a { margin: 4px 8px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px; }
}
@media (max-width: 420px) {
  .nav-logo-text { display: none; }
}
