:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #059669;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--secondary); }

.nav { display: flex; gap: 28px; }

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.lang-switch {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.lang-switch:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-affiliate {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
}

.btn-affiliate:hover { background: #047857; }

/* Ad Units */
.ad-unit {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 24px 0;
}

.ad-unit-leaderboard { min-height: 90px; }
.ad-unit-medium { min-height: 250px; max-width: 300px; margin: 24px auto; }
.ad-unit-responsive { min-height: 280px; }

/* Content */
.content-section { padding: 60px 0; }

.content-section.alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover { text-decoration: underline; }

/* Article */
.article-page { padding: 40px 0 80px; }

.article-page .container { max-width: 780px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }

.article-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 14px;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content a { color: var(--primary); }

.article-content strong { color: var(--text); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tr:hover { background: var(--bg-alt); }

.comparison-table .winner { background: #ecfdf5; font-weight: 600; }

.comparison-table .cta-cell { text-align: center; }

/* Tool Review Box */
.tool-review {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  background: var(--bg);
}

.tool-review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-review-header img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
}

.tool-review-header h3 {
  font-size: 1.3rem;
  margin: 0;
}

.tool-review-header .rating {
  color: #f59e0b;
  font-size: 1rem;
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.tag-highlight {
  background: #dbeafe;
  color: var(--primary);
}

.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

@media (max-width: 640px) {
  .tool-pros-cons { grid-template-columns: 1fr; }
}

.tool-pros-cons h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pros h4 { color: var(--accent); }
.cons h4 { color: #dc2626; }

.tool-pros-cons ul { padding-left: 18px; font-size: 0.95rem; }

.tool-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.tool-price span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Quick Pick Box */
.quick-pick {
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  border-left: 4px solid var(--primary);
}

.quick-pick h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.quick-pick p { margin-bottom: 12px; font-size: 1.05rem; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-light);
  display: none;
}

.faq-item.open p { display: block; }

/* CTA Box */
.cta-box {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 { font-size: 1.5rem; margin-bottom: 12px; }

.cta-box p { color: #94a3b8; margin-bottom: 20px; }

/* Table of Contents */
.toc {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.toc ul { list-style: none; padding: 0; }

.toc li { margin-bottom: 8px; }

.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc a:hover { color: var(--primary); }

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; display: inline-block; }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 10px; }

.footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Button color override — must come after .article-content a */
a.btn,
a.btn-primary,
a.btn-secondary,
a.btn-affiliate { color: #fff !important; }
