/* ===== CSS Variables ===== */
:root {
  --bg: #ffffff;
  --surface: #f9fafb;
  --text: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #f5f3ff;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --green: #059669;
  --green-bg: #ecfdf5;
  --yellow-bg: #fffbeb;
  --red: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Navigation ===== */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero (Homepage) ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  color: var(--text-secondary);
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 24px;
}
.hero .trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.trust-badges span { display: flex; align-items: center; gap: 6px; }

/* ===== Article Cards Grid ===== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-img {
  height: 180px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.card-body { padding: 20px; }
.card-body .tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.card-body .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ===== Article Page ===== */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  text-align: center;
}
.article-header .category {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.article-header h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-header .meta {
  color: var(--text-secondary);
  font-size: 14px;
}
.article-content {
  max-width: 720px;
  margin: 0 auto 80px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.3px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ===== Product Card (in articles) ===== */
.product-review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 28px 0;
}
.product-review.best-pick {
  border-color: #fbbf24;
  border-width: 2px;
  background: #fffdf5;
}
.best-badge {
  display: inline-block;
  background: #fbbf24;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.product-review h3 { margin-top: 0; font-size: 22px; }
.product-review .price {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 12px;
}
.product-review .specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.spec-item {
  font-size: 14px;
  color: var(--text-secondary);
}
.spec-item strong { color: var(--text); }
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.pros, .cons { font-size: 14px; }
.pros h4 { color: var(--green); font-size: 15px; margin-bottom: 6px; }
.cons h4 { color: var(--red); font-size: 15px; margin-bottom: 6px; }
.pros ul, .cons ul { list-style: none; margin-left: 0; }
.pros li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.cons li::before { content: "✗ "; color: var(--red); font-weight: 700; }

/* ===== CTA Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-secondary {
  background: var(--accent);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  text-decoration: none;
}

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.comparison-table th {
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .winner { color: var(--green); font-weight: 600; }

/* ===== Disclaimer Box ===== */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .copyright { font-size: 14px; color: var(--text-secondary); }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text); }

/* ===== Author Box ===== */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 40px 0;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.author-info h4 { font-size: 16px; margin-bottom: 4px; }
.author-info p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ===== Table of Contents ===== */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.toc ol {
  margin-left: 20px;
  font-size: 15px;
}
.toc li { margin-bottom: 6px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .article-header h1 { font-size: 26px; }
  .articles-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .hero .trust-badges { flex-direction: column; gap: 8px; }
}
