/* ============================================================
   Visualize Your Room — the free ChatGPT-prompt tool
   Shares tokens + chrome with page.css. Everything below is
   specific to the three-step uploader/picker/prompt widget.
   ============================================================ */

.vz-tool {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gut) clamp(3rem, 8vh, 5rem);
}

.vz-step {
  margin: 0 0 clamp(2.6rem, 6vh, 3.6rem);
}
.vz-step-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0 0 0.6rem;
}
.vz-step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-deep);
  line-height: 1;
}
.vz-step h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  color: var(--bone);
  margin: 0;
}
.vz-step-note {
  font-size: 0.86rem;
  font-weight: 200;
  line-height: 1.7;
  color: var(--bone-faint);
  margin: 0 0 1.1rem;
  max-width: 56ch;
}

/* ---------- step 1: upload ---------- */

.vz-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 160px;
  border: 1px dashed rgba(198,161,91,0.35);
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  padding: 1.6rem;
  transition: border-color 0.4s, background 0.4s;
}
.vz-dropzone:hover,
.vz-dropzone.is-drag { border-color: var(--gold); background: rgba(198,161,91,0.06); }
.vz-dropzone-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.vz-dropzone-hint { font-size: 0.8rem; color: var(--bone-faint); }
.vz-dropzone input[type="file"] { display: none; }

.vz-preview {
  display: none;
  margin-top: 1rem;
  border: 1px solid rgba(198,161,91,0.22);
  background: var(--ink-06);
  border-radius: 2px;
  overflow: hidden;
}
.vz-preview.on { display: block; }
.vz-preview img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.vz-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(198,161,91,0.15);
}
.vz-preview-name { font-size: 0.76rem; color: var(--bone-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-clear {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  flex: 0 0 auto;
  transition: color 0.3s;
}
.vz-clear:hover { color: var(--gold); }

/* ---------- step 2: collection picker ---------- */

.vz-collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
}
.vz-cbtn {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(198,161,91,0.18);
  background: rgba(255,255,255,0.015);
  border-radius: 2px;
  transition: border-color 0.35s, background 0.35s;
}
.vz-cbtn:hover { border-color: rgba(198,161,91,0.45); }
.vz-cbtn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(198,161,91,0.09);
}
.vz-cbtn-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--bone);
  margin-bottom: 0.15rem;
}
.vz-cbtn[aria-pressed="true"] .vz-cbtn-name { color: var(--gold-lit); }
.vz-cbtn-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--bone-faint);
}

/* ---------- step 3: the prompt ---------- */

.vz-promptbox {
  display: none;
}
.vz-promptbox.on { display: block; }
.vz-prompt {
  width: 100%;
  min-height: 220px;
  background: var(--ink-06);
  color: var(--bone);
  border: 1px solid rgba(198,161,91,0.24);
  border-radius: 2px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.6;
  resize: vertical;
}
.vz-prompt:focus { outline: 1px solid var(--gold); outline-offset: 2px; }

.vz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.vz-btn {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(198,161,91,0.55);
  color: var(--gold);
  border-radius: 2px;
  transition: 0.4s;
}
.vz-btn:hover { background: var(--gold); color: #0a0703; }
.vz-btn.ghost { border-color: rgba(198,161,91,0.28); color: var(--bone-dim); }
.vz-btn.ghost:hover { background: rgba(198,161,91,0.12); color: var(--gold-lit); }
.vz-copied {
  font-size: 0.72rem;
  color: var(--gold-lit);
  align-self: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.vz-copied.on { opacity: 1; }

.vz-placeholder {
  font-size: 0.86rem;
  color: var(--bone-faint);
  font-style: italic;
  font-family: var(--serif);
}

@media (max-width: 560px) {
  .vz-collections { grid-template-columns: 1fr 1fr; }
}
