/* GEOwallah — free tools hub + tool pages.
   Builds on style.css (variables, .btn, .block, .af-* form classes). */

/* ---- tools hub grid ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.tool-card .tc-ic {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--teal, #0aa89a); color: #fff;
}
.tool-card .tc-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.tool-card h3 { margin: 6px 0 0; font-size: 1.12rem; }
.tool-card p { margin: 0; font-size: .94rem; color: #5b5650; line-height: 1.5; }
.tool-card .tc-tag {
  margin-top: auto; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--violet, #6d28d9);
}

/* ---- tool form ---- */
.tool-form { max-width: 760px; margin: 30px auto 0; }
.tool-form .af-hint { text-align: center; }

/* ---- loading ---- */
.t-loading { text-align: center; padding: 40px 0; }
.t-spinner {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border: 4px solid rgba(0, 0, 0, .1); border-top-color: var(--teal, #0aa89a);
  border-radius: 50%; animation: t-spin .8s linear infinite;
}
@keyframes t-spin { to { transform: rotate(360deg); } }

/* ---- output ---- */
.t-out { max-width: 860px; margin: 24px auto 0; }
.t-out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.t-out-label { font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #6d28d9; }
.t-out-btns { display: flex; gap: 8px; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.t-code {
  margin: 0; padding: 18px; border-radius: 14px;
  background: #1c1b22; color: #e8e6f0;
  overflow: auto; max-height: 460px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.t-out-note { font-size: .9rem; color: #5b5650; margin-top: 12px; }

/* ---- NAP rows ---- */
.t-nap { display: grid; gap: 12px; }
.t-nap-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.t-nap-row .t-nap-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.t-nap-row.ok .t-nap-ic { background: #16a34a; }
.t-nap-row.bad .t-nap-ic { background: #dc2626; }
.t-nap-row b { display: block; }
.t-nap-row span { font-size: .92rem; color: #5b5650; }
.t-issues { margin: 16px 0 0; padding-left: 20px; }
.t-issues li { margin-bottom: 8px; color: #4a453f; }

/* ---- AI visibility ---- */
.t-aivis-q { text-align: center; color: #5b5650; }
.t-verdict { padding: 16px 18px; border-radius: 13px; font-size: 1.02rem; line-height: 1.55; }
.t-verdict.ok { background: #e8f7ef; border: 1px solid #16a34a33; }
.t-verdict.warn { background: #fef6e7; border: 1px solid #d9770633; }
.t-verdict.bad { background: #fdecec; border: 1px solid #dc262633; }
.t-engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.t-engine { padding: 14px; border-radius: 13px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.t-engine b { display: block; }
.t-engine span { display: block; font-size: .8rem; color: #8b857a; margin: 2px 0 8px; }
.t-engine em { font-style: normal; font-weight: 700; font-size: .88rem; }
.t-engine.ok em { color: #16a34a; }
.t-engine.bad em { color: #dc2626; }
.t-rivals { margin: 8px 0 0; padding-left: 22px; }
.t-rivals li { margin-bottom: 6px; }

/* ---- Security & Trust scanner ---- */
.t-secscore { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.t-secscore b { font-family: var(--serif, "Fraunces", serif); font-size: 2.6rem; line-height: 1; }
.t-secscore span { font-size: .95rem; color: #8b857a; font-weight: 600; }
.t-secscore.ok b { color: #16a34a; }
.t-secscore.warn b { color: #d97706; }
.t-secscore.bad b { color: #dc2626; }
.t-secsum { font-size: .92rem; color: #5b5650; margin: 0 0 16px; }
.t-secsum .ok { color: #16a34a; font-weight: 700; }
.t-secsum .warn { color: #d97706; font-weight: 700; }
.t-secsum .bad { color: #dc2626; font-weight: 700; }
.t-checks { display: grid; gap: 10px; }
.t-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 13px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.t-check .t-check-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .82rem; flex: none; }
.t-check.pass .t-check-ic { background: #16a34a; }
.t-check.warn .t-check-ic { background: #d97706; }
.t-check.fail .t-check-ic { background: #dc2626; }
.t-check.info .t-check-ic { background: #8b857a; }
.t-check b { display: block; }
.t-check span { display: block; font-size: .92rem; color: #5b5650; margin-top: 2px; }
.t-check em { display: block; font-style: normal; font-size: .86rem; color: #8b857a; margin-top: 5px; }
.t-check.fail { border-color: #dc262633; background: #fdecec55; }

/* ---- error ---- */
.t-error { max-width: 640px; margin: 24px auto 0; text-align: center; padding: 26px; border-radius: 16px; background: #fdecec; border: 1px solid #dc262633; }
.t-error h3 { margin: 0 0 8px; }

/* ---- "more tools" strip on each tool page ---- */
.more-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.more-tools a { font-size: .9rem; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); text-decoration: none; color: inherit; }
.more-tools a:hover { border-color: var(--teal, #0aa89a); }
