/* AI Search Prompt Generator (/tools/ai-search-prompt-generator/).
   On top of tool-page.css and tool-page-v2.css; only what the prompt results,
   the sample card and the "describe your business" fallback need. */

/* ── Buying stage pills ─────────────────────────────────────── */
.pg-stage {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pg-stage--awareness { background: var(--pill-bg); color: var(--sona-navy); }
.pg-stage--consideration { background: rgba(245, 158, 11, 0.14); color: #a16207; }
.pg-stage--decision { background: rgba(238, 43, 126, 0.1); color: var(--sona-pink); }

/* ── Sample card in the hero ────────────────────────────────── */
.pg-sample-domain {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--pill-bg);
  border-radius: 9999px;
  padding: 4px 12px;
}
.pg-sample-topic {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}
.pg-sample-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}
.pg-sample-row .pg-stage { width: 112px; justify-content: center; }

/* ── "Describe your business" fallback ──────────────────────── */
.pg-hint {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: #fff;
}
.pg-hint[hidden] { display: none; }
.pg-hint label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}
.pg-hint textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border-button);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-heading);
}
.pg-hint textarea:focus { outline: 2px solid var(--pill-border); outline-offset: 0; }
.pg-hint .tp2-btn { align-self: flex-start; border: none; cursor: pointer; }
.pg-hint .tp2-btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Results ────────────────────────────────────────────────── */
.pg-profile { margin-bottom: 24px; }
.pg-profile-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted-2);
}
.pg-profile-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-heading);
}
.pg-profile-cat {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sona-navy);
}
.pg-profile-sum,
.pg-profile-note {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.pg-profile-note {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--text-body);
}

.pg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.pg-chips, .pg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chip, .pg-action, .pg-copy {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border-button);
  border-radius: 9999px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
}
.pg-chip span { color: var(--text-muted-2); margin-left: 2px; }
.pg-chip.is-active {
  background: var(--sona-navy);
  border-color: var(--sona-navy);
  color: #fff;
}
.pg-chip.is-active span { color: var(--text-on-dark-body); }
.pg-action:hover, .pg-copy:hover, .pg-chip:not(.is-active):hover { border-color: var(--sona-navy); }

.pg-topic { padding-top: 28px; }
.pg-topic-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}
.pg-topic-desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.pg-prompts { list-style: none; margin: 12px 0 0; padding: 0; }
.pg-prompt {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
}
.pg-prompt .pg-stage { justify-content: center; margin-top: 1px; }
.pg-prompt-main { min-width: 0; }
.pg-prompt-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-heading);
}
.pg-prompt-why {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.pg-prompt-links { display: flex; gap: 16px; margin-top: 6px; }
.pg-prompt-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--sona-pink-link);
  text-decoration: none;
}
.pg-prompt-links a:hover { text-decoration: underline; }
.pg-copy { height: 30px; padding: 0 12px; font-size: 13px; }

@media (max-width: 640px) {
  .tp2-results { padding: 20px 16px; }
  .pg-profile-title { font-size: 20px; }
  .pg-prompt { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .pg-prompt .pg-stage { grid-column: 1 / -1; justify-self: start; }
  .pg-sample-row { flex-direction: column; gap: 6px; }
  .pg-sample-row .pg-stage { width: auto; }
  .pg-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ── Mode switch: A website | SEO keywords (SON-5780) ──────────── */
.pg-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border-light);
}
.pg-mode {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pg-mode:hover { color: var(--sona-navy); }
.pg-mode.is-active { background: var(--sona-navy); color: #fff; }
.pg-mode:focus-visible { outline: 2px solid var(--pill-border); outline-offset: 2px; }
.tp2-form[hidden] { display: none; }

/* ── Keyword form ───────────────────────────────────────────── */
.pg-kw {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 45, 130, 0.1), 0 0 0 1px rgba(29, 45, 130, 0.04);
}
.pg-kw[hidden] { display: none; }
.pg-kw label,
.pg-kw-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}
.pg-kw-label { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pg-kw label span,
.pg-kw-label span { font-size: 13px; font-weight: 400; color: var(--text-muted-2); }
.pg-kw textarea,
.pg-kw input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-button);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-heading);
  background: #fff;
}
.pg-kw textarea { resize: vertical; min-height: 104px; }
.pg-kw textarea:focus,
.pg-kw input:focus { outline: 2px solid var(--pill-border); outline-offset: 0; border-color: transparent; }
.pg-kw textarea::placeholder,
.pg-kw input::placeholder { color: var(--text-muted-2); }
.pg-kw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-kw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-kw-count { font-size: 13px; color: var(--text-muted-2); }
.pg-kw-count.is-over { color: var(--sona-pink); font-weight: 600; }

/* Keyword groups in the results */
.pg-topic-kw {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--pill-bg);
  color: var(--sona-navy);
}
.pg-topic-warn {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .pg-modes { display: flex; width: 100%; box-sizing: border-box; }
  .pg-mode { flex: 1; padding: 0 10px; }
  .pg-kw-row { grid-template-columns: 1fr; }
  .pg-kw-foot { flex-direction: column-reverse; align-items: stretch; }
  .pg-kw-foot .tp2-check { width: 100%; }
}
