/* Meta Tag Pixel Checker — page styles
   Shares the .tool-hero / .author-chip / .trust-pill / .tool-app / .tapp-*
   foundations defined in sitemap-url-extractor.css; the rules below are
   additive and tool-specific. */

/* ─── Tool hero (mirrors sitemap-extractor; kept self-contained) ─────── */
.tool-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(108px,11vw,150px);
  padding-bottom: clamp(72px,8vw,110px);
}
.tool-hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .45;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 100%);
}
.tool-hero-glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 720px; height: 720px;
  top: -260px; right: -200px;
  background: radial-gradient(circle, rgba(16,185,129,.18), transparent 60%);
}
.tool-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

.tool-hero-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}

.tool-breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--slate-lt); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tool-breadcrumb a { color: var(--slate); transition: color .2s; }
.tool-breadcrumb a:hover { color: var(--sky); }
.tool-breadcrumb .sep { color: var(--border-hi); }
.tool-breadcrumb .current { color: var(--sky-dim); }

.tool-hero-tag { margin-bottom: 18px; }

.author-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 4px 14px 4px 4px;
  border-radius: 100px;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.author-chip:hover { border-color: var(--sky-mid); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.author-chip:hover .author-chip-arrow { transform: translateY(2px); color: var(--sky); }
.author-chip-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(170deg, var(--sky-mid) 0%, #8ab8d8 100%);
  border: 1.5px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--sky-mid);
}
.author-chip-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-chip-text { display: flex; flex-direction: column; line-height: 1; }
.author-chip-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate-lt);
}
.author-chip-name { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.author-chip-arrow { font-family: var(--mono); font-size: 12px; color: var(--slate-lt); margin-left: 2px; transition: transform .25s, color .2s; }

.tool-h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: .92;
  margin-bottom: 24px;
  max-width: 1280px;
  letter-spacing: -1.5px;
  text-wrap: balance;
}
.tool-h1 em { color: var(--grass); font-style: normal; }
.tool-lead { max-width: 1080px; margin-bottom: 28px; font-size: clamp(16px,1.55vw,19px); line-height: 1.65; color: var(--slate); }

.tool-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.06);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: 100px; padding: 6px 13px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  color: #0F8762; letter-spacing: .06em;
}
.trust-pill .trust-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--grass); flex: none;
}

/* ─── Tool app card ──────────────────────────────────────────────────── */
.tool-app {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.mtp-app { max-width: 1280px; margin: 0 auto; }

.tapp-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--border);
}
.tapp-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.04));
  border: 1px solid rgba(16,185,129,.25);
  color: var(--grass);
  display: grid; place-items: center;
  flex: none;
}
.tapp-title { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); letter-spacing: -.4px; color: var(--navy); line-height: 1.2; margin-bottom: 4px; }
.tapp-sub { font-size: 13px; color: var(--slate); line-height: 1.5; }

.tapp-input-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.tapp-input-wrap {
  flex: 1 1 380px; min-width: 0;
  position: relative;
  display: flex; align-items: center;
}
.tapp-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--slate-lt); pointer-events: none;
}
.tapp-input-wrap input {
  width: 100%; padding: 12px 14px 12px 40px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px; color: var(--navy);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.tapp-input-wrap input::placeholder { color: var(--slate-lt); }
.tapp-input-wrap input:focus {
  outline: none;
  border-color: var(--grass);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

.tapp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s, color .2s;
  cursor: pointer;
}
.tapp-btn-primary {
  background: var(--grass); color: #fff;
  box-shadow: 0 6px 18px rgba(16,185,129,.32);
}
.tapp-btn-primary:hover:not(:disabled) {
  background: #0F8762;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16,185,129,.42);
}
.tapp-btn:disabled { opacity: .55; cursor: not-allowed; }

.tapp-mini-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate);
  border-radius: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
  cursor: pointer;
}
.tapp-mini-btn:hover:not(:disabled) { border-color: var(--grass); color: var(--grass); background: rgba(16,185,129,.04); }
.tapp-mini-btn-danger:hover:not(:disabled) { border-color: #DC2626; color: #DC2626; background: rgba(220,38,38,.05); }
.tapp-mini-btn:disabled { opacity: .55; cursor: not-allowed; }

.tapp-status {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--mono);
  line-height: 1.5;
}
.tapp-status.is-info    { background: rgba(59,159,232,.08); border: 1px solid rgba(59,159,232,.3); color: var(--sky-dim); }
.tapp-status.is-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3); color: #0F8762; }
.tapp-status.is-error   { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.3); color: #B91C1C; }

/* ─── Two-column grid: editors | previews ────────────────────────────── */
.mtp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .mtp-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── LEFT: fields, meters, hints ────────────────────────────────────── */
.mtp-col-edit { display: flex; flex-direction: column; gap: 22px; }

.mtp-field { display: flex; flex-direction: column; gap: 8px; }

.mtp-field-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.mtp-label {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700; color: var(--navy);
  letter-spacing: .01em;
}
.mtp-label-sub { font-weight: 500; color: var(--slate-lt); font-size: 11.5px; }

.mtp-meter-mini {
  font-family: var(--mono); font-size: 11px; color: var(--slate);
  display: inline-flex; align-items: center; gap: 6px;
}
.mtp-meter-mini .mtp-unit { color: var(--slate-lt); margin-left: 1px; }
.mtp-meter-mini .mtp-dot-sep { color: var(--border-hi); }

.mtp-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px; line-height: 1.5; color: var(--navy);
  font-family: var(--sans);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.mtp-input::placeholder { color: var(--slate-lt); }
.mtp-input:focus {
  outline: none;
  border-color: var(--grass);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.mtp-textarea { resize: vertical; min-height: 84px; }

/* Pixel progress bar */
.mtp-bar {
  position: relative;
  height: 6px;
  background: var(--off2);
  border-radius: 99px;
  overflow: hidden;
}
.mtp-bar-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: var(--grass);
  border-radius: 99px;
  transition: width .15s ease-out, background .2s;
}
.mtp-bar-fill.is-warn   { background: #F59E0B; }
.mtp-bar-fill.is-over   { background: #DC2626; }

/* The truncation marker — sits at the Google-truncation point on the bar */
.mtp-bar-marker {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px;
  background: var(--navy);
  opacity: .55;
  border-radius: 1px;
  pointer-events: none;
}

.mtp-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate-lt);
  line-height: 1.5;
  letter-spacing: .01em;
}
.mtp-hint.is-warn  { color: #B45309; }
.mtp-hint.is-over  { color: #B91C1C; }
.mtp-hint.is-ok    { color: #0F8762; }

.mtp-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}

/* ─── RIGHT: SERP previews ───────────────────────────────────────────── */
.mtp-col-preview { display: flex; flex-direction: column; gap: 22px; }

.mtp-preview-wrap {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.mtp-preview-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  gap: 10px; flex-wrap: wrap;
}
.mtp-device-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 99px;
}
.mtp-preview-meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--slate-lt);
  letter-spacing: .04em;
}

/* SERP card — sized to match Google's actual rendered widths */
.mtp-serp {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: Arial, sans-serif;
  line-height: 1.3;
}
.mtp-serp-desktop {
  max-width: 600px;     /* Google's desktop SERP card width is ~600px */
}
.mtp-serp-mobile {
  max-width: 380px;     /* Google's mobile SERP card */
  border-radius: 16px;
  padding: 14px 14px 16px;
}

.mtp-serp-site {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.mtp-serp-favicon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5E7EB, #CBD5E1);
  flex: none;
  position: relative; overflow: hidden;
  border: 1px solid #E5E7EB;
}
.mtp-serp-favicon::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--mtp-favicon-img, none);
  background-size: cover; background-position: center;
}
.mtp-serp-site-text {
  display: flex; flex-direction: column;
  line-height: 1.25;
  min-width: 0; overflow: hidden;
}
.mtp-serp-sitename {
  font-size: 14px;
  color: #202124;
  font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtp-serp-url {
  font-size: 12px;
  color: #4D5156;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Title: Google uses Arial 20px (~1.25rem) for desktop, slightly smaller on mobile */
.mtp-serp-title {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  color: #1A0DAB;          /* Google's link blue */
  margin-top: 6px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  word-break: break-word;
}
.mtp-serp-title:hover { text-decoration: underline; }
.mtp-serp-desktop .mtp-serp-title { max-width: 600px; }

.mtp-serp-mobile .mtp-serp-title {
  font-size: 18px;
  line-height: 1.32;
}

/* Description: Google uses Arial 14px on desktop */
.mtp-serp-desc {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.58;
  color: #4D5156;
  margin-top: 4px;
  word-break: break-word;
}
.mtp-serp-mobile .mtp-serp-desc { font-size: 14px; line-height: 1.5; }

/* Truncation visual: ellipsis class added by JS when content exceeds px limit */
.mtp-serp-title.is-truncated::after,
.mtp-serp-desc.is-truncated::after {
  content: "…";
  margin-left: 0;
}

/* ─── About / info cards ─────────────────────────────────────────────── */
.tool-about-section { padding: 80px 36px; max-width: 1320px; margin: 0 auto; }
.tool-section-lead { max-width: 880px; margin-bottom: 36px; }

.tool-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .tool-info-grid { grid-template-columns: 1fr; } }

.tool-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px 22px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16,185,129,.4);
  box-shadow: var(--shadow-md);
}
.tool-info-icon {
  font-size: 26px; line-height: 1; margin-bottom: 10px;
}
.tool-info-cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--grass); font-weight: 700;
  margin-bottom: 8px;
}
.tool-info-t {
  font-family: var(--serif); font-size: 19px; color: var(--navy);
  letter-spacing: -.3px; margin-bottom: 14px;
}
.tool-info-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--slate); line-height: 1.55;
}
.tool-info-list li { padding-left: 16px; position: relative; }
.tool-info-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--grass); font-family: var(--mono); font-weight: 700;
}
.tool-info-list strong { color: var(--navy); font-weight: 700; }
.tool-info-ol { counter-reset: oli; }
.tool-info-ol li::before { content: counter(oli, decimal-leading-zero); counter-increment: oli; font-size: 11.5px; }
.tool-info-list code {
  background: var(--off2); padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--navy);
}
.tool-info-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--slate-lt); line-height: 1.5;
}

/* ─── Compact tweaks: small screens ──────────────────────────────────── */
@media (max-width: 640px) {
  .tool-app { padding: 20px 16px; border-radius: 16px; }
  .tapp-head { flex-direction: column; align-items: flex-start; }
  .mtp-preview-wrap { padding: 12px; }
  .mtp-serp { padding: 12px; }
  .mtp-serp-title { font-size: 18px; }
}
