/* =========================================================================
   Tools listing page - styles
   Loaded via the Tools controller's $css_files array (cache-busted).
   ========================================================================= */

.tools-wrap {
  max-width: 1140px;
  margin: 0 auto 64px;
  padding: 0 16px;
}

/* ---------- Hero header ---------- */
.tools-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 34px 32px;
  margin: 24px 0 22px;
  background: linear-gradient(135deg, #0e2a45 0%, #143a63 45%, #1e5aa8 100%);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(14, 42, 69, .55);
}
.tools-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(55,118,171,.45) 0%, rgba(55,118,171,0) 70%);
  pointer-events: none;
}
.tools-hero-inner { position: relative; z-index: 1; }
.tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  margin-bottom: 14px;
}
.tools-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff !important;
}
.tools-hero-lead {
  margin: 0;
  font-size: 15.5px;
  opacity: .92;
}

/* ---------- Section ---------- */
.tools-section { margin-bottom: 30px; }
.tools-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #14243a;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6ebf1;
}

/* ---------- Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ---------- Card ---------- */
.tool-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf1;
  box-shadow: 0 6px 18px -14px rgba(14, 42, 69, .4);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(14, 42, 69, .55);
  border-color: #1e5aa8;
}
.tool-card-disabled {
  opacity: .7;
  cursor: not-allowed;
}
.tool-card-disabled:hover {
  transform: none;
  box-shadow: 0 6px 18px -14px rgba(14, 42, 69, .4);
  border-color: #e6ebf1;
}

.tool-card-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 26px;
  color: #1e5aa8;
  background: linear-gradient(135deg, #eef4fb 0%, #e0ecfa 100%);
}

.tool-card-body { flex: 1 1 auto; min-width: 0; }
.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tool-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #14243a;
}
.tool-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: #1e5aa8;
}
.tool-card-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5a6b7b;
}
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e5aa8;
}
.tool-card-cta i { transition: transform .16s ease; }
.tool-card:hover .tool-card-cta i { transform: translateX(3px); }
.tool-card-cta-soon { color: #97a3b0; }

.tools-empty {
  color: #5a6b7b;
  font-size: 15px;
}

@media (max-width: 560px) {
  .tools-hero { padding: 26px 20px; }
  .tools-hero h1 { font-size: 24px; }
}
