/* Tools Page Styles */

.tools-page {
  padding-bottom: 3rem;
}

/* ----- Hero ----- */
.tools-hero {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.tools-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tools-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tools-hero-description {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.tools-hero-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
}

.tools-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tools-hero-links a:hover {
  opacity: 0.9;
  color: var(--secondary-color);
}

.tools-hero-links a i {
  font-size: 0.75em;
  opacity: 0.85;
}

/* ----- Tool sections ----- */
.tool-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tool-section-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Image placeholder frame */
.tool-image-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(33, 39, 47, 0.6);
  border: 2px dashed rgba(16, 172, 132, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}

.tool-image-frame .tool-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-image-frame:has(.tool-image) .tool-image-placeholder,
.tool-image-frame:has(.tool-image) .tool-image-caption {
  display: none;
}

.tool-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  color: var(--primary-color);
  opacity: 0.5;
}

.tool-image-placeholder i {
  font-size: 3rem;
}

.tool-image-caption {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
  opacity: 0.5;
  padding-bottom: 1rem;
}

/* Content */
.tool-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--secondary-color);
  margin: 0;
}

.tool-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85;
  color: var(--secondary-color);
  margin: 0;
  max-width: 560px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.tool-link:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.tool-link:active {
  transform: scale(0.98);
}

.tool-link i {
  font-size: 0.85em;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
  .tool-section-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-image-frame {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tools-hero-title {
    font-size: 1.75rem;
  }

  .tools-hero-description {
    font-size: 0.98rem;
  }

  .tools-hero-links {
    flex-direction: column;
    align-items: center;
  }

  .tool-section {
    padding: 1.5rem 1rem;
  }

  .tool-title {
    font-size: 1.6rem;
  }

  .tool-description {
    font-size: 0.95rem;
  }

  .tool-link {
    width: 100%;
    justify-content: center;
  }
}

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

  .tool-title {
    font-size: 1.35rem;
  }

  .tool-image-frame {
    min-height: 140px;
  }

  .tool-image-placeholder i {
    font-size: 2.25rem;
  }
}

@media (hover: none) {
  .tool-link:hover {
    background: transparent;
    color: var(--primary-color);
  }
  .tool-link:active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
  }
}
