/* ==========================================
   tools.css — Tool Cards & Grid Styles
   FormFixer
   ========================================== */

.tools-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--blue-pale), transparent);
}

/* ---- TOOLS GRID ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* ---- TOOL CARD ---- */
.tool-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;

  /* entrance animation */
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.4s ease forwards;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
  opacity: 0;
  transition: opacity 0.22s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-pale);
}
.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ---- CARD ANIMATION DELAYS ---- */
.tools-grid .tool-card:nth-child(1)  { animation-delay: 0.05s; }
.tools-grid .tool-card:nth-child(2)  { animation-delay: 0.10s; }
.tools-grid .tool-card:nth-child(3)  { animation-delay: 0.15s; }
.tools-grid .tool-card:nth-child(4)  { animation-delay: 0.20s; }
.tools-grid .tool-card:nth-child(5)  { animation-delay: 0.25s; }
.tools-grid .tool-card:nth-child(6)  { animation-delay: 0.30s; }
.tools-grid .tool-card:nth-child(7)  { animation-delay: 0.35s; }
.tools-grid .tool-card:nth-child(8)  { animation-delay: 0.40s; }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-card   { padding: 1rem 0.5rem; }
  .tool-card h3 { font-size: 0.72rem; }
  .tools-section { padding: 1.5rem 1rem; }
}
