/* AI Tool Finder — Clean, Fast Theme */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1a1a2e;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --accent: #10b981;
  --radius: 8px;
  --max-width: 1100px;
  --content-width: 760px;
}

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

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--text); }
nav a { margin-left: 1.5rem; text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a.active { color: var(--primary); }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Article Grid */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card a { text-decoration: none; color: inherit; }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }
.card .meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.card-category { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }

/* Category Cards */
.category-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.cat-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.cat-card:hover { border-color: var(--primary); }
.cat-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.cat-card h3 { margin-bottom: 0.3rem; }
.cat-card p { font-size: 0.9rem; color: var(--text-light); }

/* Single Post */
.single-post { max-width: var(--content-width); margin: 0 auto; padding: 2rem 0 4rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; line-height: 1.25; margin-bottom: 0.75rem; }
.post-header .meta { color: var(--text-light); font-size: 0.9rem; }
.category-tag { background: var(--bg-alt); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.8rem; text-decoration: none; color: var(--primary); }
.updated-notice { color: var(--accent); font-size: 0.9rem; margin-top: 0.5rem; }

/* Table of Contents */
.table-of-contents {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.table-of-contents h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.table-of-contents ul { padding-left: 1.25rem; }
.table-of-contents li { margin-bottom: 0.3rem; }
.table-of-contents a { color: var(--primary); text-decoration: none; }

/* Post Content */
.post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.post-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a { color: var(--primary); }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content th, .post-content td { padding: 0.75rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-alt); font-weight: 600; }
.post-content img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

/* Affiliate CTA Box */
.affiliate-cta {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.affiliate-cta .btn { margin-top: 0.75rem; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pros, .cons { padding: 1rem; border-radius: var(--radius); }
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pros h4::before { content: "✅ "; }
.cons h4::before { content: "❌ "; }

/* Newsletter */
.newsletter-form { display: flex; gap: 0.5rem; max-width: 450px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.home-newsletter, .post-newsletter {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.social-proof { font-size: 0.85rem; color: var(--text-light); margin-top: 0.75rem; }

/* Sections */
section { padding: 2rem 0; }
.latest-posts h2, .categories-overview h2 { text-align: center; margin-bottom: 0.5rem; }

/* List Page */
.list-page { padding: 2rem 0 4rem; }
.list-page h1 { font-size: 2rem; margin-bottom: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
  background: var(--bg-alt);
}
.footer-newsletter { max-width: var(--content-width); margin: 0 auto 2rem; text-align: center; }
.footer-links { text-align: center; color: var(--text-light); font-size: 0.9rem; }
.footer-links a { color: var(--text-light); }
.disclosure-note { font-size: 0.8rem; margin-top: 0.5rem; font-style: italic; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .post-header h1 { font-size: 1.7rem; }
  .article-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  nav { display: none; } /* TODO: hamburger menu */
}
