/* ============================================================
   ApnaShow Host Wizard — additive stylesheet
   Reuses existing theme variables (--gold, --card, --dark2, --border2,
   --muted, --muted2) already defined in events.html. Nothing here
   overrides or removes any existing selector.
   ============================================================ */

.wiz-shell { display: flex; flex-direction: column; gap: 1.5rem; }

/* ---- Progress bar ---- */
.wiz-progress { display: flex; align-items: flex-start; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.wiz-progress::-webkit-scrollbar { height: 4px; }
.wiz-step-dot { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; min-width: 74px; cursor: pointer; position: relative; }
.wiz-step-dot .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--dark2); border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); transition: all 0.2s; }
.wiz-step-dot .lbl { font-size: 0.62rem; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.wiz-step-dot.active .dot { background: var(--gold); border-color: var(--gold); color: #000; }
.wiz-step-dot.active .lbl { color: var(--gold); }
.wiz-step-dot.done .dot { background: rgba(34,197,94,0.15); border-color: #4ade80; color: #4ade80; }
.wiz-step-dot.done .lbl { color: #4ade80; }
.wiz-step-dot:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 58%; width: 84%; height: 1.5px; background: var(--border2); z-index: -1; }
.wiz-step-dot.done:not(:last-child)::after { background: #4ade80; }

/* ---- Autosave indicator ---- */
.wiz-autosave { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; justify-content: flex-end; min-height: 16px; }
.wiz-autosave .dot-pulse { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

/* ---- Step panels ---- */
.wiz-panel { display: none; flex-direction: column; gap: 1.25rem; animation: wizFadeIn 0.25s ease; }
.wiz-panel.active { display: flex; }
@keyframes wizFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.wiz-panel-title { font-family: 'Cinzel', serif; font-size: 1.15rem; font-weight: 700; color: #fff; }
.wiz-panel-sub { font-size: 0.8rem; color: var(--muted); margin-top: -0.9rem; }

/* ---- Char counter ---- */
.wiz-char-count { font-size: 0.68rem; color: var(--muted); text-align: right; margin-top: -0.3rem; }
.wiz-char-count.warn { color: #f87171; }

/* ---- Chips (tags) ---- */
.wiz-chip-input-row { display: flex; gap: 0.5rem; }
.wiz-chip-input-row input { flex: 1; }
.wiz-chip-add-btn { background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4); color: var(--gold); border-radius: 8px; padding: 0 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.wiz-chip-add-btn:hover { background: rgba(245,166,35,0.25); }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.wiz-chip { background: var(--dark2); border: 1px solid var(--border2); color: var(--muted2); font-size: 0.78rem; padding: 0.3rem 0.5rem 0.3rem 0.75rem; border-radius: 20px; display: flex; align-items: center; gap: 0.4rem; }
.wiz-chip button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; line-height: 1; padding: 0; }
.wiz-chip button:hover { color: #f87171; }

/* ---- Thumbnail / logo mini upload ---- */
.wiz-mini-upload { border: 2px dashed var(--border2); border-radius: 8px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.wiz-mini-upload:hover { border-color: var(--gold); background: rgba(245,166,35,0.03); }
.wiz-mini-upload input { display: none; }
.wiz-mini-upload img { max-height: 110px; border-radius: 8px; display: none; margin: 0 auto 0.5rem; object-fit: contain; }
.wiz-mini-upload p { font-size: 0.76rem; color: var(--muted); }

/* ---- Repeater cards (artists / gallery / faqs / tickets) ---- */
.wiz-repeater-list { display: flex; flex-direction: column; gap: 0.9rem; }
.wiz-repeater-card { background: var(--dark2); border: 1px solid var(--border2); border-radius: 12px; padding: 1rem 1.1rem; position: relative; }
.wiz-repeater-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.wiz-repeater-head .idx { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.06em; color: var(--gold); font-size: 0.85rem; }
.wiz-repeater-actions { display: flex; gap: 0.4rem; }
.wiz-mini-btn { background: none; border: 1px solid var(--border2); color: var(--muted2); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.wiz-mini-btn:hover { border-color: var(--gold); color: var(--gold); }
.wiz-mini-btn.danger:hover { border-color: #f87171; color: #f87171; }
.wiz-repeater-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.wiz-repeater-grid .full { grid-column: 1 / -1; }
.wiz-add-btn { background: transparent; border: 1px dashed rgba(245,166,35,0.4); color: var(--gold); border-radius: 8px; padding: 0.65rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; }
.wiz-add-btn:hover { background: rgba(245,166,35,0.07); border-style: solid; }
.wiz-empty-hint { font-size: 0.78rem; color: var(--muted); text-align: center; padding: 0.75rem 0; }

/* ---- Gallery thumb grid ---- */
.wiz-gallery-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border2); display: none; margin-bottom: 0.5rem; }

/* ---- Revenue estimate box ---- */
.wiz-revenue-box { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; padding: 0.85rem 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.wiz-revenue-box .label { font-size: 0.78rem; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.05em; }
.wiz-revenue-box .amount { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: #4ade80; }

/* ---- Nav buttons ---- */
.wiz-nav-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--card) 30%); padding-top: 1rem; }
.wiz-btn { flex: 1; padding: 0.8rem; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; }
.wiz-btn-back { background: transparent; border: 1px solid var(--border2); color: var(--muted2); }
.wiz-btn-back:hover { border-color: var(--gold); color: #fff; }
.wiz-btn-next { background: var(--gold); color: #000; }
.wiz-btn-next:hover { background: #e09410; transform: translateY(-1px); }
.wiz-btn-ghost { background: transparent; border: 1px solid rgba(245,166,35,0.35); color: var(--gold); flex: 0 0 auto; }
.wiz-btn-ghost:hover { background: rgba(245,166,35,0.08); }

/* ---- Field error highlight ---- */
.wiz-field-error { border-color: #f87171 !important; }
.wiz-field-error-msg { font-size: 0.72rem; color: #f87171; margin-top: -0.25rem; }

/* ---- Draft recovery banner ---- */
.wiz-draft-banner { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.25); border-radius: 10px; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted2); flex-wrap: wrap; }
.wiz-draft-banner .actions { display: flex; gap: 0.5rem; }
.wiz-draft-banner button { background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4); color: var(--gold); border-radius: 6px; padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.wiz-draft-banner button.discard { background: none; border-color: var(--border2); color: var(--muted); }

/* ---- Preview panel ---- */
.wiz-preview { background: var(--dark2); border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; }
.wiz-preview-banner { width: 100%; aspect-ratio: 16/7; background: #141414; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wiz-preview-banner img { width: 100%; height: 100%; object-fit: cover; }
.wiz-preview-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.wiz-preview-title { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700; }
.wiz-preview-meta { font-size: 0.82rem; color: var(--muted2); display: flex; flex-direction: column; gap: 0.3rem; }
.wiz-preview-section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.4rem; }
.wiz-preview-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(70px,1fr)); gap: 0.4rem; }
.wiz-preview-gallery img { width: 100%; height: 60px; object-fit: cover; border-radius: 6px; }
.wiz-preview-artist { display: flex; gap: 0.6rem; align-items: center; background: var(--card); border: 1px solid var(--border2); border-radius: 8px; padding: 0.5rem 0.75rem; }
.wiz-preview-artist img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #111; }
.wiz-preview-faq { border-bottom: 1px solid var(--border2); padding-bottom: 0.5rem; }
.wiz-preview-faq .q { font-weight: 700; font-size: 0.85rem; color: #fff; }
.wiz-preview-faq .a { font-size: 0.8rem; color: var(--muted2); margin-top: 0.2rem; }
.wiz-publish-checklist { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; color: var(--muted2); }
.wiz-publish-checklist .item { display: flex; align-items: center; gap: 0.5rem; }
.wiz-publish-checklist .item.ok { color: #4ade80; }
.wiz-publish-checklist .item.missing { color: var(--muted); }

@media (max-width: 640px) {
  .wiz-repeater-grid { grid-template-columns: 1fr; }
  .wiz-step-dot .lbl { display: none; }
}
