/* ==========================================================================
   tools-page.css — "Packaging Tools" listing page
   Self-contained, includes its own responsive rules.
   ========================================================================== */

/* ---- Hero ---- */
.tp-toolshero {
  background: linear-gradient(180deg, #f6f8f7 0%, #ffffff 100%);
  padding: 1.5rem 0 2.5rem;
}

.tp-toolshero__crumb {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--tp-muted);
  margin-bottom: 1.25rem;
}
.tp-toolshero__crumb a { color: var(--tp-muted); }
.tp-toolshero__crumb a:hover { color: var(--tp-green); }
.tp-toolshero__crumb .sep { color: #c2c8c4; }

.tp-toolshero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tp-text);
}
.tp-toolshero__title .is-green { color: var(--tp-green); }

.tp-toolshero__text {
  margin: 1rem 0 1.5rem;
  font-size: 1.08rem;
  color: var(--tp-muted);
  max-width: 32em;
}

.tp-toolshero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.tp-toolshero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tp-text);
}
.tp-toolshero__badges img { width: 20px; height: 20px; }

.tp-toolshero__art { width: 100%; height: auto; }

/* ---- All tools header + search ---- */
.tp-toolshead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tp-toolshead__title {
  position: relative;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--tp-text);
  padding-bottom: 0.6rem;
}
.tp-toolshead__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 3px;
  background: var(--tp-green);
}

.tp-toolssearch {
  display: flex;
  align-items: center;
  width: 320px;
  max-width: 100%;
  border: 1px solid var(--tp-border);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
}
.tp-toolssearch input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--tp-text);
}
.tp-toolssearch button {
  flex: 0 0 auto;
  width: 44px;
  align-self: stretch;
  border: 0;
  background-image: var(--tp-green-gradient);
  cursor: pointer;
}
.tp-toolssearch button img { width: 18px; height: 18px; }

/* ---- Reused index .tp-tool-card (from tools.css) — only page-specific extras here ---- */
.tp-tool-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tp-green);
  background: #e3f1e8;
  border-radius: 999px;
}
.tp-tool-card__badge--soon { color: #6b7280; background: #eceeed; }
.tp-tool-card__link--muted { color: var(--tp-muted); }

/* Idea card */
.tp-ideacard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #eef6f0 0%, #e3f1e8 100%);
  border: 1px solid #d8eadf;
}
.tp-ideacard__title { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 700; color: var(--tp-green); }
.tp-ideacard__text { margin: 0 0 1.2rem; font-size: 0.9rem; color: var(--tp-muted); }
.tp-ideacard__img {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 96px; height: auto;
  opacity: 0.85;
  pointer-events: none;
}

/* ---- Why use (features) ---- */
.tp-why { background: #fff; }
.tp-why__head { text-align: center; margin-bottom: 2.5rem; }
.tp-why__title {
  position: relative; display: inline-block; margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--tp-text);
  padding-bottom: 0.7rem;
}
.tp-why__title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: var(--tp-green);
}
.tp-feature { text-align: center; padding: 0.5rem; }
.tp-feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 50%; background: #e3f1e8;
}
.tp-feature__icon img { width: 28px; height: 28px; }
.tp-feature__title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; color: var(--tp-text); }
.tp-feature__text { margin: 0; font-size: 0.9rem; color: var(--tp-muted); }

/* ---- Bottom panels ---- */
.tp-panel {
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 1rem;
}
.tp-panel__title { margin: 0 0 1.4rem; font-size: 1.2rem; font-weight: 700; color: var(--tp-text); }

/* steps */
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.tp-steps li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; color: #374151; }
.tp-steps__num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  font-size: 0.82rem; font-weight: 700; color: #fff;
  background-image: var(--tp-green-gradient);
  border-radius: 50%;
}
.tp-howwork__img { width: 100%; height: auto; max-width: 320px; margin-left: auto; display: block; }

/* popular tools list */
.tp-poplist { list-style: none; margin: 0; padding: 0; display: grid; }
.tp-poplist li a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tp-border);
  font-size: 0.95rem; font-weight: 500; color: var(--tp-text);
  transition: color 0.15s ease;
}
.tp-poplist li:last-child a { border-bottom: 0; }
.tp-poplist li a:hover { color: var(--tp-green); }
.tp-poplist__ico {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 0.5rem; background: #eef6f0;
}
.tp-poplist__ico img { width: 18px; height: 18px; }
.tp-poplist__chev { margin-left: auto; width: 18px; height: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .tp-toolshero__art { max-width: 460px; margin: 1.5rem auto 0; display: block; }
  .tp-howwork__img { margin: 1.5rem auto 0; }
}

@media (max-width: 575.98px) {
  .tp-toolshead { flex-direction: column; align-items: stretch; }
  .tp-toolssearch { width: 100%; }
  .tp-toolshero__badges { gap: 1rem; }
}
