/*
 * js/pages/create/create.css: what /create adds on top of pons.css. The frame is pons's own launch form
 * (.launchpad-create-shell, .launchpad-form, .launchpad-field, .launchpad-token-preview); this file adds the Ponduo
 * sections (Genesis, Allocation, Vesting, Liquidity), the three-share row, the unit pickers, the example chip on the
 * preview image and the Genesis card preview.
 */

.launchpad-create-page { margin: 0 auto; width: 100%; }
.launchpad-create-page > .split-shell-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ponduo-create-loading { min-height: 520px; }
.ponduo-create-loading .ponduo-muted { color: var(--text-muted); font-size: 14px; }

/* sections: a divider and a small heading, pons's disclosure line weight */
.ponduo-create-section { border-top: 1px solid #11111114; padding-top: 18px; margin-top: 6px; display: grid; gap: 4px; }
html[data-theme="dark"] .ponduo-create-section { border-color: #ffffff14; }
.ponduo-create-section h2 { font-size: 17px; font-weight: 400; letter-spacing: var(--tracking); margin: 0; }
.ponduo-create-section p { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0; max-width: 60ch; }

/* three fields in one row (the allocation shares, the holder vesting) */
.ponduo-create-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ponduo-create-trio-field { gap: 8px; }
.ponduo-create-sum { font-size: 12px; line-height: 1.45; color: var(--text-muted); margin: 0; }
.ponduo-create-sum.is-error { color: var(--accent-red); }

/* the unit picker inside a field (hours or days) */
.launchpad-prefixed-input select.ponduo-unit {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 13px; padding: 12px 26px 12px 8px; margin-right: 4px; cursor: pointer; flex: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
  border-radius: 10px;
}
.launchpad-prefixed-input select.ponduo-unit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.launchpad-prefixed-input select.ponduo-unit option { color: #111; }
.launchpad-prefixed-input:has(select.ponduo-unit) input { padding-left: 14px; }
.launchpad-prefixed-input .launchpad-suffix { font-size: 13px; }

/* the two-way pills (mint start, pool fee) use pons's version pill */
.ponduo-choice.tabs-pill { width: fit-content; max-width: 100%; }
.ponduo-choice .tabs-list { min-height: 46px; align-items: center; }
.ponduo-choice .launchpad-create-version-tab, .ponduo-choice .tabs-tab { min-width: 64px; padding: 9px 16px; font-size: 13px; }

.launchpad-field-note.is-error { color: var(--accent-red); }
.launchpad-upload-copy > span { font-size: 14px; }

/* the locked-forever line */
.ponduo-create-lock { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #11111106; border: 1px solid #1111111a; color: var(--text-muted); }
html[data-theme="dark"] .ponduo-create-lock { background: #ffffff06; border-color: #ffffff14; }
.ponduo-create-lock .ui-icon { flex: none; margin-top: 2px; color: var(--text-primary); }
.ponduo-create-lock p { margin: 0; font-size: 13px; line-height: 1.5; }
.ponduo-create-lock strong { color: var(--text-primary); font-weight: 500; }

/* the holder window disclosure (pons animates the height with GSAP) */
.launchpad-advanced-shell { transition: height .4s cubic-bezier(.22, 1, .36, 1); }
.ponduo-advanced-sub { color: var(--text-muted); font-size: 12px; }
.launchpad-advanced-chevron { transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.ponduo-holder-fields { display: grid; gap: 16px; }
.launchpad-switch-label { text-align: left; }

/* footer: the status line under the button */
.ponduo-create-status { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); min-height: 0; }
.ponduo-create-status:empty { display: none; }
.ponduo-create-status.is-error { color: var(--accent-red); }
.launchpad-create-actions { border-top: 1px solid #11111114; padding-top: 18px; }
html[data-theme="dark"] .launchpad-create-actions { border-color: #ffffff14; }

/* the preview: pons's box, a chip on the example picture, and the Genesis card under it */
.launchpad-preview-panel { justify-content: flex-start; padding-top: 48px; }
.ponduo-create-preview { width: 100%; max-width: 320px; display: grid; gap: 22px; justify-items: center; }
@media (min-width: 820px) {
  .ponduo-create-preview { position: sticky; top: calc(var(--header-offset) + 8px); }
}
.ponduo-example-chip {
  font-size: 11px; line-height: 1; padding: 6px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--text-muted); background: #1111110d; border: 1px solid #1111111a;
}
html[data-theme="dark"] .ponduo-example-chip { background: #ffffff0f; border-color: #ffffff1a; }
.launchpad-preview-details dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.launchpad-preview-details dt { color: var(--text-muted); flex: none; }
.ponduo-create-card { margin: 0; width: 100%; max-width: 220px; display: grid; gap: 8px; justify-items: center; }
.ponduo-create-card .ponduo-genesis-svg { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: var(--shadow-card); }
.ponduo-create-card figcaption { color: var(--text-muted); font-size: 12px; text-align: center; }
.ponduo-create-genesis { width: 100%; }

/* phones: one column; the three-share rows stack, the pills keep 44px targets */
@media (max-width: 560px) {
  .launchpad-form { grid-template-columns: minmax(0, 1fr); }
  .ponduo-create-trio { grid-template-columns: minmax(0, 1fr); }
  .launchpad-create-form { padding: 28px 18px; }
  .split-shell-preview { padding: 28px 18px; }
}
@media (max-width: 768px) {
  .ponduo-choice .tabs-tab { min-height: 44px; }
  .launchpad-prefixed-input select.ponduo-unit { min-height: 44px; }
}
@media (max-width: 768px) {
  .launchpad-prefixed-input input { min-height: 44px; }
  .launchpad-switch { min-height: 44px; }
  .launchpad-create-topbar .token-buy-back { min-height: 44px; }
}

/* the second pair (v2): the other asset shown like a field, the share, what open() does, the live conversion check */
.ponduo-pair2-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ponduo-pair2-asset-box {
  display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #1111111a; background: #11111106; font-size: 14px;
}
html[data-theme="dark"] .ponduo-pair2-asset-box { border-color: #ffffff14; background: #ffffff06; }
.ponduo-pair2-asset { gap: 8px; }
.ponduo-pair2-asset .token-icon { width: 18px; height: 18px; }
.ponduo-pair2-explain { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ponduo-pair2-check { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-primary); padding: 10px 12px; border-radius: 12px; background: #11111108; }
html[data-theme="dark"] .ponduo-pair2-check { background: #ffffff08; }
.ponduo-pair2-check.is-error { color: var(--accent-red); background: #ff3b3012; }
.ponduo-pool-split { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
@media (max-width: 560px) { .ponduo-pair2-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) { .ponduo-pair2-asset-box { min-height: 44px; } }
