/* ============================================================
   TagNexus Tracking Checker - scoped styles
   Prefixed .tnx-tc- throughout so nothing here can collide with
   or override the shared site styles in tagnexus.css. Only
   enqueued on the Tracking Checker template (see functions.php).
   ============================================================ */

.tnx-tc-input-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 8px;
  background: #fff;
  padding: 8px;
  border-radius: 100px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.tnx-tc-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: oklch(0.2 0.02 255);
  min-width: 0;
}
.tnx-tc-input-row .btn-primary {
  border-radius: 100px;
  white-space: nowrap;
  padding: 12px 26px;
}
@media (max-width: 560px) {
  .tnx-tc-input-row { flex-direction: column; border-radius: 20px; background: #fff; }
  .tnx-tc-input-row input { text-align: center; padding: 10px 12px; }
  .tnx-tc-input-row .btn-primary { justify-content: center; }
}

.tnx-tc-form-error {
  max-width: 560px;
  margin: 10px auto 0;
  color: oklch(0.75 0.16 40);
  font-size: 13.5px;
  font-weight: 600;
}

.tnx-tc-loading {
  text-align: center;
  padding: 60px 5%;
}
.tnx-tc-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  animation: tnx-tc-spin 0.8s linear infinite;
}
@keyframes tnx-tc-spin { to { transform: rotate(360deg); } }
.tnx-tc-loading p { color: var(--text2); font-size: 14.5px; margin: 0; }

.tnx-tc-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.tnx-tc-link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.tnx-tc-report-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
}
.tnx-tc-report-top {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tnx-tc-gauge-wrap { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.tnx-tc-gauge-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tnx-tc-gauge-track { fill: none; stroke: var(--border); stroke-width: 10; }
.tnx-tc-gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.tnx-tc-gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tnx-tc-gauge-score { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--heading); line-height: 1; }
.tnx-tc-gauge-max { font-size: 11px; color: var(--text3); font-weight: 500; }

.tnx-tc-report-meta { flex: 1; min-width: 200px; }
.tnx-tc-report-url { font-size: 13px; color: var(--text3); font-weight: 600; margin-bottom: 6px; word-break: break-all; }
.tnx-tc-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tnx-tc-grade-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  padding: 5px 14px; border-radius: 100px;
}
.tnx-tc-fp-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  padding: 5px 14px; border-radius: 100px;
}
.tnx-tc-grade-label { font-size: 15px; color: var(--heading); font-weight: 600; }

.tnx-tc-recommended-services {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 24px;
}
.tnx-tc-recommended-label { font-size: 12.5px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.tnx-tc-recommended-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tnx-tc-recommended-item {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border-blue); color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 100px;
  text-decoration: none; transition: all 0.2s;
}
.tnx-tc-recommended-item:hover { background: var(--blue); color: #fff; }

/* Email-me-this-report mini form - a lighter, single-row ask that sits
   right under the findings, distinct from the heavier lead-capture
   panel below it (that one asks for a name and promises a call; this
   one just sends the report, so it should read as smaller and easier). */
.tnx-tc-email-report {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.tnx-tc-email-report-eyebrow { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 3px; }
.tnx-tc-email-report-body { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.tnx-tc-email-report-form { display: flex; gap: 10px; flex-wrap: wrap; }
.tnx-tc-email-report-form input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 10px 16px; font-family: var(--font-body); font-size: 14px;
  color: oklch(0.2 0.02 255); background: #fff;
}
.tnx-tc-email-report-form input:focus { outline: none; border-color: var(--border-blue); }
.tnx-tc-email-report-form .btn-secondary { border-radius: 100px; padding: 10px 20px; white-space: nowrap; }
.tnx-tc-email-report-result { margin-top: 10px; font-weight: 600; font-size: 13.5px; padding: 10px 14px; border-radius: 8px; }
.tnx-tc-email-report-privacy { font-size: 12px; color: var(--text3); margin-top: 8px; }
@media (max-width: 480px) {
  .tnx-tc-email-report-form { flex-direction: column; }
  .tnx-tc-email-report-form .btn-secondary { justify-content: center; }
}

.tnx-tc-findings-list { display: flex; flex-direction: column; gap: 14px; }
.tnx-tc-finding { display: flex; gap: 14px; align-items: flex-start; }
.tnx-tc-finding-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 2px;
}
.tnx-tc-finding-body { flex: 1; min-width: 0; }
.tnx-tc-finding-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 3px; }
.tnx-tc-finding-detail { font-size: 13.5px; color: var(--text2); line-height: 1.6; }
.tnx-tc-finding-cta { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.tnx-tc-finding-cta:hover { text-decoration: underline; }

/* status colors, used on both the gauge and each finding icon */
.tnx-tc-status-pass .tnx-tc-finding-icon,
.tnx-tc-grade-pill.tnx-tc-status-pass { background: oklch(0.92 0.09 150); color: oklch(0.4 0.13 150); }
.tnx-tc-status-warn .tnx-tc-finding-icon,
.tnx-tc-grade-pill.tnx-tc-status-warn { background: var(--yellow-dim); color: oklch(0.5 0.13 80); }
.tnx-tc-status-fail .tnx-tc-finding-icon,
.tnx-tc-grade-pill.tnx-tc-status-fail { background: oklch(0.92 0.08 30); color: oklch(0.5 0.18 30); }
.tnx-tc-status-info .tnx-tc-finding-icon,
.tnx-tc-grade-pill.tnx-tc-status-info { background: oklch(0.92 0.06 255); color: var(--blue); }

.tnx-tc-fail-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; margin-bottom: 28px; text-align: center;
}
.tnx-tc-fail-card h3 { font-family: var(--font-head); font-size: 20px; color: var(--heading); margin-bottom: 10px; }
.tnx-tc-fail-card p { font-size: 14.5px; color: var(--text2); line-height: 1.7; max-width: 480px; margin: 0 auto 8px; }

.tnx-tc-lead-panel { max-width: 100%; }
.tnx-tc-lead-panel .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .tnx-tc-lead-panel .form-row { grid-template-columns: 1fr; } }
.tnx-tc-lead-panel .form-field { margin-bottom: 16px; }
