@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --gradient-start: #2563eb;
  --gradient-end: #7c3aed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-main); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Nav */
.site-nav { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 50; }
.site-nav .nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.site-nav .logo { font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.site-nav .logo span { color: var(--text-main); }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.site-nav ul li a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.site-nav ul li a:hover { color: var(--primary); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { max-width: 1200px; margin: 1rem auto 0; padding: 0 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 0.4rem; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; }

/* Article Body */
.article-body { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.article-body h2 { font-size: 1.65rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--text-main); }
.article-body h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1rem; color: #334155; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; color: #334155; }
.article-body strong { color: var(--text-main); }

/* Tables */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.92rem; overflow-x: auto; display: block; }
.comparison-table th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
.comparison-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #e2e8f0; }
.comparison-table tr:nth-child(even) { background: #f1f5f9; }
.comparison-table .highlight { background: #dbeafe !important; font-weight: 600; }

/* CTA Banner */
.cta-banner { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #fff; padding: 3rem 1.5rem; text-align: center; margin: 2rem 0; border-radius: 12px; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-banner h2 { color: #fff; font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 1.05rem; }
.cta-banner .btn { display: inline-block; background: #fff; color: var(--primary); font-weight: 700; padding: 0.85rem 2rem; border-radius: 8px; font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s; }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); text-decoration: none; }

/* FAQ */
.faq-section { max-width: 820px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.faq-section h2 { font-size: 1.65rem; font-weight: 700; margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid #e2e8f0; padding: 1.25rem 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.faq-item p { color: #475569; margin: 0; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 1.5rem; margin-top: 2rem; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h4 { color: #fff; font-weight: 600; margin-bottom: 0.75rem; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer ul li a { color: #94a3b8; font-size: 0.9rem; }
.site-footer ul li a:hover { color: #fff; }
.site-footer .copyright { grid-column: 1 / -1; text-align: center; padding-top: 2rem; border-top: 1px solid #1e293b; font-size: 0.85rem; margin-top: 1rem; }

/* Info Box */
.info-box { background: #eff6ff; border-left: 4px solid var(--primary); padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.info-box p { margin: 0; color: #1e40af; }

/* Code-like blocks */
.code-block { background: #1e293b; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: 8px; font-family: 'Fira Code', monospace; font-size: 0.88rem; overflow-x: auto; margin: 1rem 0 1.5rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .site-nav ul { display: none; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
}
