/* ===== Tools Page ===== */

/* Hero */
.tools-hero {
  padding: 80px 0 48px;
}

.tools-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.tools-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.tools-lead {
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Search bar */
.tools-search-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 72px;
  z-index: 40;
  padding-block: 12px;
}

.tools-search-inner {
  position: relative;
}

.tools-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  display: flex;
}

.tools-search-input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}

.tools-search-input::placeholder {
  color: var(--ink-muted);
}

.tools-search-input:focus {
  border-color: var(--accent);
  background: var(--bg);
}

/* List section */
.tools-list-section {
  padding: 48px 0 80px;
}

.tools-count {
  font-size: .82rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.tools-count strong {
  color: var(--ink);
  font-weight: 600;
}

/* Tool card — horizontal list item */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.tool-card:first-child {
  border-top: 1px solid var(--line);
}

.tool-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tool-body {
  flex: 1;
  min-width: 0;
}

.tool-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
}

.tool-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tool-desc {
  font-size: .9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-badge {
  font-size: .72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-band);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.tool-action {
  flex-shrink: 0;
  align-self: center;
}

.tool-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}

.tool-github-btn::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%236b7280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.58 2 12.26c0 4.5 2.87 8.32 6.84 9.67.5.1.68-.22.68-.49 0-.24-.01-.87-.01-1.71-2.78.62-3.37-1.37-3.37-1.37-.45-1.18-1.11-1.49-1.11-1.49-.91-.64.07-.62.07-.62 1 .07 1.53 1.06 1.53 1.06.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.37-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.3.1-2.71 0 0 .84-.27 2.75 1.05a9.36 9.36 0 015 0c1.91-1.32 2.75-1.05 2.75-1.05.55 1.41.2 2.45.1 2.71.64.72 1.03 1.63 1.03 2.75 0 3.94-2.34 4.81-4.57 5.06.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.6.69.49A10.02 10.02 0 0022 12.26C22 6.58 17.52 2 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.tool-github-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.no-results {
  padding: 48px 0;
  color: var(--ink-muted);
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 600px) {
  .tools-hero { padding: 48px 0 32px; }

  .tool-card {
    flex-wrap: wrap;
    gap: 16px;
  }

  .tool-action {
    width: 100%;
  }

  .tool-github-btn {
    width: 100%;
    justify-content: center;
  }
}
