/* ==========================================================================
   ImageResizerAI - Tool Directory Dashboard SaaS Stylesheet v4.0
   ========================================================================== */

.all-tools-section {
  padding: 48px 0;
  background: var(--bg, #f8fafc);
}

.all-tools-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: inherit;
}

.all-tools-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.all-tools-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.all-tools-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

/* Tool Live Search Input Bar */
.tool-search-wrapper {
  max-width: 540px;
  margin: 0 auto 28px auto;
  position: relative;
}

.tool-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.tool-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.tool-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

/* Filter Pills Navigation */
.tools-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-pill {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.04);
}

.filter-pill:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.filter-pill.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.25);
}

/* Tools Dashboard Responsive Grid */
.tools-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  contain: layout style;
}

/* Dashboard Tool Card */
.tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 14px);
  padding: 22px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.1);
  border-color: #3b82f6;
}

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

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-box {
  transform: scale(1.08);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.tool-icon {
  width: 22px !important;
  height: 22px !important;
  color: #2563eb;
}

.tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Category Pill Badges on Cards */
.tool-cat-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  width: fit-content;
  margin-top: auto;
}
