/* SEO System - Minimal, Fast CSS */
:root {
  --text: #1a1a2e;
  --bg: #ffffff;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --max-width: 740px;
  --max-width-wide: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --bg: #0f172a;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --muted: #94a3b8;
    --border: #334155;
    --surface: #1e293b;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
header .container-wide { display: flex; justify-content: space-between; align-items: center; }
header .site-title { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
nav a:hover { color: var(--accent); }

/* Article */
article { padding: 2rem 0 4rem; }
article h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
article h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
article h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
article p { margin-bottom: 1.25rem; }
article ul, article ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.5rem; }
article a { color: var(--accent); text-decoration: underline; }
article a:hover { color: var(--accent-hover); }
article img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; }
tr:hover { background: var(--surface); }

/* Verdict/CTA Box */
.verdict-box, .quick-pick {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.verdict-box h3 { margin-top: 0; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.cta-button:hover { background: var(--accent-hover); color: #fff; }

/* Meta info */
.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }
.meta span + span::before { content: " · "; }

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.toc h4 { margin-bottom: 0.5rem; font-size: 0.9rem; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { margin-bottom: 0.25rem; }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { color: var(--accent); }

/* Breadcrumb */
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Cards (category/homepage) */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card p { color: var(--muted); font-size: 0.9rem; }
.article-card .meta { margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  z-index: 1000;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1rem;
}

/* Ad slots */
.ad-slot { text-align: center; margin: 2rem 0; min-height: 90px; }

/* Reading time */
.reading-time { color: var(--muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  article h1 { font-size: 1.6rem; }
  article h2 { font-size: 1.3rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem; }
  .article-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  header, footer, .cookie-banner, .ad-slot, .toc { display: none; }
  article { padding: 0; }
}
