/* Prompt Lab — tool styles on top of assets/landing.css. Shares the
   gate-card / cta-card patterns with the other Studio tools. */

.tool-hero { padding-bottom: 28px; }

/* Category filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.filter-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.filter-chip:hover { color: var(--text); border-color: var(--glass-line-hover); }

.filter-chip.active {
  color: #fff;
  background: var(--accent-a);
  border-color: var(--accent-a);
}

/* Card grid */
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.prompt-card:hover { border-color: var(--glass-line-hover); transform: translateY(-3px); }

.prompt-card.locked { opacity: 0.88; }

.prompt-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}

.prompt-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px;
}

.prompt-body h3 { margin: 9px 0 7px; font-size: 17.5px; letter-spacing: -0.01em; }
.prompt-body p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.prompt-chips { display: flex; gap: 6px; }

.cat-chip, .free-chip, .lock-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 2.5px 9px;
}

.cat-chip { color: var(--text-dim); background: var(--bg-inset); border: 1px solid var(--line); }
.cat-build { color: #93c5fd; }
.cat-visual { color: var(--accent-c); }
.cat-marketing { color: #86efac; }

.free-chip { color: #fff; background: var(--accent-a); }
.lock-chip { color: var(--text-muted); border: 1px dashed var(--line); }

.prompt-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proof-link { font-size: 13px; font-weight: 600; }

.btn-small { padding: 8px 14px; font-size: 13px; }

/* Dialog */
#prompt-dialog {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  width: min(720px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
}

#prompt-dialog::backdrop { background: rgba(4, 4, 6, 0.7); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: sticky;
  top: -22px;
  z-index: 2;
  background: var(--bg-raised);
  padding: 12px 0;
}

.dialog-head h3 { margin: 0; font-size: 18px; }

#prompt-dialog pre {
  margin: 0;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font: 12px/1.55 ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow: visible;
  max-height: none;
}

.dlg-example { margin-top: 12px; }
.dlg-example h4 {
  margin: 0 0 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.dlg-example pre { border-left: 3px solid var(--accent-a); }

.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  position: sticky;
  bottom: -22px;
  background: var(--bg-raised);
  padding: 12px 0;
}

.dlg-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 12px 0 16px; padding: 16px; background: var(--bg-inset); border: 1px solid var(--line); border-radius: 10px; }
.dlg-builder p, .dlg-builder label:first-of-type, .dlg-builder textarea { grid-column: 1 / -1; }
.dlg-builder p { margin: 0 0 5px; color: var(--text-dim); font-size: 12px; }
.dlg-builder label { font-size: 12px; font-weight: 650; }
.dlg-builder input, .dlg-builder textarea, .dlg-builder select { min-width: 0; width: 100%; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: 12px; padding: 8px 10px; }
#dlg-status { color: var(--text-dim); font-size: 12px; margin: 0; }
.gate-privacy { font-size: 11px !important; color: var(--text-muted) !important; margin: 12px 0 0 !important; }

/* Gate (shared pattern) */
.gate-card {
  margin-top: 28px;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.gate-card.pulse { animation: gatePulse 0.8s ease-in-out 2; }

@keyframes gatePulse {
  50% { transform: scale(1.015); box-shadow: 0 0 34px rgba(255, 107, 44, 0.25); }
}

.gate-card h3 { margin: 0 0 6px; font-size: 17px; }
.gate-card p { margin: 0 0 16px; font-size: 13.5px; color: var(--text-dim); }
.gate-card form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.gate-card input[type="email"] {
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  width: min(300px, 100%);
}

.gate-card input[type="email"]:focus { outline: 1px solid var(--accent-b); }
.gate-error { color: #f87171 !important; margin-top: 10px !important; }

/* CTA (shared pattern) */
.cta-card {
  margin: 36px 0 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.cta-card h3 { margin: 0 0 8px; font-size: 19px; }
.cta-card p { margin: 0 0 18px; font-size: 14px; color: var(--text-dim); max-width: 620px; }

@media (max-width: 720px) {
  .prompt-grid { grid-template-columns: 1fr; }
}
