/* =========================
   FERRAMENTAS PAGE
========================= */

main {
  position: relative;
  overflow-x: hidden;
}

/* Background exclusivo da página */

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(circle at top left, rgba(41, 227, 208, 0.13), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(30, 100, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #050b12 0%, #07101b 100%);
}

.tools-hero {
  padding-bottom: 35px;
}

.tools-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  letter-spacing: -0.05em;
}

.tools-hero h1 span {
  background: linear-gradient(90deg, #29e3d0, #8ffff4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tools-hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   TABS
========================= */

.tools-tabs {
  width: fit-content;
  max-width: calc(100% - 32px);

  margin: 10px auto 40px;
  padding: 10px;

  background: rgba(8, 17, 29, 0.72);

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;

  backdrop-filter: blur(16px);
}

.tab-btn {
  font-weight: 600;
}

.tab-btn.active {
  box-shadow:
    0 0 0 1px rgba(41, 227, 208, 0.18),
    0 10px 30px rgba(41, 227, 208, 0.08);
}

/* =========================
   GRID
========================= */

.tools-grid {
  margin-top: 20px;
  margin-bottom: 90px;
}

/* =========================
   TOOL CARD
========================= */

.tool-card {
  position: relative;
  overflow: hidden;

  min-height: 285px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top right, rgba(41, 227, 208, 0.13), transparent 34%);

  opacity: 0;
  transition: 0.25s ease;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 18px;

  border-radius: 16px;

  background: rgba(41, 227, 208, 0.09);
  border: 1px solid rgba(41, 227, 208, 0.18);

  font-size: 1.5rem;
}

.tool-card h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.03em;

  margin-bottom: 12px;
}

.tool-card p {
  margin-bottom: 28px;
  min-height: 74px;
}

.tool-card a {
  width: fit-content;

  padding: 11px 15px;

  border-radius: 12px;

  background: rgba(41, 227, 208, 0.08);
  border: 1px solid rgba(41, 227, 208, 0.16);
}

.tool-card a:hover {
  background: rgba(41, 227, 208, 0.13);
}

/* Usado pelo JS ao filtrar */

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

/* =========================
   EMPTY STATE
========================= */

.empty-tools {
  display: none;

  max-width: 600px;
  margin: 40px auto 100px;
  padding: 28px;

  text-align: center;

  background: #0b1522;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-tools.show {
  display: block;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .tools-hero {
    padding-top: 85px;
  }

  .tools-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .tool-card {
    min-height: auto;
  }

  .tool-card p {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .tools-hero h1 {
    font-size: 2.45rem;
  }

  .tools-hero p {
    font-size: 1rem;
  }

  .tool-card {
    padding: 24px;
  }
}