/* All Tools Page Styles */
.tools-main {
  padding: 24px 0 48px;
}

/* Header & Search Area */
.tools-header {
  text-align: center;
  margin-bottom: 24px;
}

.tools-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--c-text-main);
}

.search-wrapper {
  max-width: 560px;
  margin: 0 auto 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text-main);
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* Tools Sections */
.category-section {
  margin-bottom: 32px;
}

.category-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-main);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-title .badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-muted);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* List of Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.tool-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-main);
  margin: 0;
}

.tool-card-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-primary);
  background: #eff6ff;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

.tool-card-desc {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Empty State */
.empty-state {
  display: none;
  text-align: center;
  padding: 48px 0;
  color: var(--c-text-muted);
  font-size: 14px;
}

.empty-state svg {
  margin-bottom: 12px;
  color: #94a3b8;
}

/* Dynamic filtering utilities */
.category-section.hidden {
  display: none !important;
}

.tool-card.hidden {
  display: none !important;
}
