/* ToolSignal — category.css
   Styles for category listing pages.
   Loaded by build-site.js buildCategoryPages(). */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  line-height: 1.6;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-desc {
  color: var(--muted);
  max-width: 600px;
}

.count {
  display: inline-block;
  background: var(--surface2);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: .2rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin-top: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.card-desc {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: .8rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-score {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card-score span {
  font-weight: 700;
  color: var(--accent);
}

.score-bar {
  width: 60px;
  background: var(--surface2);
  border-radius: 4px;
  height: 4px;
}

.score-fill {
  background: var(--accent);
  height: 4px;
  border-radius: 4px;
}

.card-price {
  font-size: .75rem;
  color: var(--muted);
  background: var(--surface2);
  padding: .2rem .5rem;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem 1.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1rem;
  }
  .card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1rem 1rem;
  }
  h1 {
    font-size: 1.25rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
}
