/*!
 * GGLOT SRT Tools — styles (namespaced .gst-*, self-contained).
 * Brand: pink #C4148F (AA-compliant on white), ink #383838, blue #3964FF.
 */
/* Hidden until the JS repositions it after the hero — avoids a flash at page top.
   No-JS users get it revealed via a <noscript> override printed in wp_head. */
.gglot-srt-toolwrap[data-after-hero] { display: none; }

.gglot-srt-toolwrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 44px;
}
.gst-head { text-align: center; max-width: 720px; margin: 0 auto 22px; }
.gst-title {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 10px;
}
.gst-blurb { font-size: 16px; line-height: 1.55; color: #6b7280; margin: 0; }

.gglot-srt-tool {
  --gst-pink: #C4148F;
  --gst-pink-d: #A00F76;
  --gst-ink: #2b2b2b;
  --gst-mut: #6b7280;
  --gst-line: #e3e6ea;
  --gst-bg: #ffffff;
  --gst-soft: #f7f8fa;
  --gst-radius: 12px;
  max-width: 860px;
  margin: 0 auto 8px;
  font-family: inherit;
  color: var(--gst-ink);
  box-sizing: border-box;
}
.gglot-srt-tool *,
.gglot-srt-tool *::before,
.gglot-srt-tool *::after { box-sizing: border-box; }

.gst-tool {
  background: var(--gst-bg);
  border: 1px solid var(--gst-line);
  border-radius: var(--gst-radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
}

/* input area */
.gst-inputwrap { margin-bottom: 14px; }
.gst-drop {
  border: 2px dashed var(--gst-line);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
  background: var(--gst-soft);
}
.gst-drop.is-drag { border-color: var(--gst-pink); background: #fdf2fa; }
.gst-in, .gst-out {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gst-ink);
  resize: vertical;
  min-height: 150px;
  outline: none;
}
.gst-out {
  background: var(--gst-soft);
  border: 1px solid var(--gst-line);
  border-radius: 10px;
}
.gst-inputbar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.gst-file { display: none; }
.gst-outlabel { display: block; font-size: 12px; font-weight: 600; color: var(--gst-mut); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }

/* timing controls */
.gst-timing, .gst-uni-row {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  padding: 14px; margin-bottom: 14px;
  background: var(--gst-soft); border: 1px solid var(--gst-line); border-radius: 10px;
}
.gst-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--gst-mut); }
.gst-field select, .gst-field input {
  font: 14px/1.2 inherit; font-weight: 500; color: var(--gst-ink);
  padding: 8px 10px; border: 1px solid var(--gst-line); border-radius: 8px; background: #fff; min-width: 90px;
}
.gst-field input[type=number] { width: 110px; }
.gst-uni-lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gst-mut); }
.gst-detected { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3964FF; font-weight: 700; font-size: 12px; }

/* buttons */
.gst-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.gst-btn {
  appearance: none; cursor: pointer; border: 1px solid transparent; border-radius: 8px;
  padding: 11px 20px; font: 600 14px/1 inherit; text-decoration: none; display: inline-block;
  transition: background .15s, border-color .15s, transform .05s;
}
.gst-btn:active { transform: translateY(1px); }
.gst-btn-primary { background: var(--gst-pink); color: #fff; }
.gst-btn-primary:hover { background: var(--gst-pink-d); color: #fff; }
.gst-btn-ghost { background: #fff; color: var(--gst-ink); border-color: var(--gst-line); }
.gst-btn-ghost:hover { background: var(--gst-soft); }

/* status messages */
.gst-msgs { margin-top: 12px; }
.gst-status { font-size: 14px; padding: 10px 12px; border-radius: 8px; margin-top: 8px; }
.gst-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.gst-warn { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.gst-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.gst-info { background: var(--gst-soft); color: var(--gst-mut); }
.gst-erritem { font-size: 13px; color: #b42318; padding: 2px 4px; }

/* upsell CTA */
.gst-cta {
  margin-top: 20px; padding: 22px; text-align: center;
  background: linear-gradient(135deg, #fdf2fa 0%, #eef2ff 100%);
  border: 1px solid #f4d9ee; border-radius: var(--gst-radius);
}
.gst-cta-lead { font-size: 17px; font-weight: 700; color: var(--gst-ink); margin: 0 0 6px; }
.gst-cta-sub { font-size: 14px; color: var(--gst-mut); margin: 0 0 16px; }
.gst-btn-cta { background: var(--gst-pink); color: #fff; padding: 13px 26px; font-size: 15px; }
.gst-btn-cta:hover { background: var(--gst-pink-d); color: #fff; }

/* related-converters block (injected on spokes) */
.gglot-srt-related {
  max-width: 860px; margin: 24px auto; padding: 18px 20px;
  border: 1px solid var(--gst-line, #e3e6ea); border-radius: 12px; background: #f7f8fa;
}
.gglot-srt-related h2 { font-size: 16px; margin: 0 0 12px; color: #2b2b2b; }
.gglot-srt-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.gglot-srt-related a {
  display: inline-block; padding: 7px 13px; background: #fff; border: 1px solid #e3e6ea;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #C4148F; text-decoration: none;
}
.gglot-srt-related a:hover { background: #fdf2fa; border-color: #f4d9ee; }

.gst-printframe { position: absolute; width: 0; height: 0; border: 0; left: -9999px; }
.gst-hide { display: none !important; }

@media (max-width: 600px) {
  .gst-tool { padding: 15px; }
  .gst-actions .gst-btn { flex: 1 1 auto; text-align: center; }
  .gst-field input[type=number] { width: 100%; }
}
