/* whatsthebestai.com — Core Styles */
/* Minimal, fast, mobile-first. No frameworks. */

:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #059669;
  --accent-hover: #047857;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
  --winner-bg: #ecfdf5;
  --winner-border: #a7f3d0;
  --max-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 32px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}
nav a:hover { color: var(--accent); }

/* Articles */
article h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 800;
}
article .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
article h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
article h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
article p {
  margin-bottom: 16px;
  color: #374151;
}
article strong { font-weight: 600; }
article ul, article ol { margin-bottom: 16px; padding-left: 20px; }
article li { margin-bottom: 6px; }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.comparison-table th {
  background: var(--card-bg);
  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.winner {
  background: var(--winner-bg);
  border-left: 3px solid var(--winner-border);
}
.comparison-table .check { color: var(--accent); font-weight: bold; }
.comparison-table .cross { color: #ef4444; }

/* Verdict Box */
.verdict-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}
.verdict-box h3 {
  margin-top: 0;
  font-size: 16px;
}
.verdict-box .cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}
.verdict-box .cta-button:hover { background: var(--accent-hover); }

/* Affiliate Disclaimer */
.disclaimer {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #9a3412;
  margin-bottom: 24px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--card-bg);
  font-size: 15px;
}
.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: #374151;
}

/* Best-of List */
.tool-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.tool-card .rank {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  min-width: 36px;
}
.tool-card .info { flex: 1; }
.tool-card .info h3 { margin: 0 0 4px; font-size: 17px; }
.tool-card .info .tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tool-card .info p { font-size: 14px; color: #374151; margin: 0; }
.tool-card .buy-btn {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.tool-card .buy-btn:hover { background: var(--accent-hover); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Homepage */
.home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.category-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.category-card:hover {
  border-color: var(--accent);
  background: var(--card-bg);
}

.featured-article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.featured-article:hover { border-color: var(--accent); }
.featured-article h3 { margin-bottom: 4px; font-size: 17px; }
.featured-article .desc { font-size: 14px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 600px) {
  article h1 { font-size: 24px; }
  .tool-card { flex-direction: column; }
  .tool-card .buy-btn { align-self: flex-start; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px; }
}
