/* ============================================
   TOOLS PAGE — Styles
   ============================================ */

/* ── Tools Hero ── */
.tools-hero {
  padding: 48px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tools-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.tools-hero .search-box {
  margin-bottom: 0;
  max-width: 560px;
}

/* ── Filters ── */
.tools-filters {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.filter-section {
  margin-bottom: 16px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.filter-section .category-pills {
  justify-content: flex-start;
}

.filter-section .subcategory-row {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Pricing Pills */
.pricing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  cursor: pointer;
}
.pricing-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.pricing-pill.active {
  background: #3f6212;
  color: #ecfccb;
  border-color: #3f6212;
  font-weight: 600;
}
.pricing-pill.active i {
  color: #bef264;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.result-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Tools Section ── */
.tools-section {
  padding: 32px 0 80px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.page-btn {
  min-width: 40px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #1a2e05;
}
.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.page-ellipsis {
  color: var(--text-tertiary);
  padding: 0 2px;
  user-select: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tools-hero { padding: 32px 0 28px; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
}
