/* ============================================================
   RadioGrub — create.css
   The "create your station" wizard, now a view inside the SPA.

   Everything here is scoped to #view-create and carries the cw* prefix,
   because the wizard's own class names (.card, .chip, .field, .step)
   collide with the site's. Colours, buttons and type come from the
   shared tokens — this file adds no palette of its own.
   ============================================================ */

#view-create .wrap{ max-width: 760px; padding-block: 26px 80px; }

/* progress */
#view-create .cwSteps{ display:flex; align-items:center; gap:8px; margin-bottom:22px; }
#view-create .cwDot{ flex:1; height:6px; border-radius:999px; background:var(--line); transition:.3s; }
#view-create .cwDot.done{ background:var(--accent); }
#view-create .cwDot.active{ background:linear-gradient(90deg,var(--accent),var(--warm)); }
#view-create .cwMeta{ font-size:13px; font-weight:850; color:var(--muted2); margin-bottom:8px; }

#view-create .cwCard{
  background:var(--surface); border:1px solid var(--line2); border-radius:var(--r20);
  box-shadow:var(--shadow); padding:26px;
}
/* One H1 per page: the wizard's later steps are H2s that look identical —
   a crawler sees one heading for /apply, a reader sees no difference. */
#view-create h1, #view-create .cwTitle{ margin:0 0 6px; font-size:26px; font-weight:980; letter-spacing:-.5px; }
#view-create .cwSub{ margin:0 0 22px; color:var(--muted); font-weight:650; font-size:15px; line-height:1.5; }

#view-create .cwStep{ display:none; }
#view-create .cwStep.on{ display:block; animation:cwFade .25s ease; }
@keyframes cwFade{ from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none} }

/* who is this for */
#view-create .cwTypeGrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
#view-create .cwType{
  border:1.5px solid var(--line2); border-radius:14px; padding:16px 12px; text-align:center;
  cursor:pointer; transition:.15s; background:var(--surface);
}
#view-create .cwType:hover{ border-color:var(--accentLine); }
#view-create .cwType.sel{ border-color:var(--accentText); background:var(--accentSoft); box-shadow:0 0 0 3px var(--accentSoft); }
#view-create .cwTypeEmoji{ font-size:30px; }
#view-create .cwTypeName{ font-weight:900; font-size:13px; margin-top:8px; }

/* fields */
#view-create .cwField{ margin-bottom:16px; }
#view-create label{ display:block; font-size:13px; font-weight:900; margin-bottom:7px; }
#view-create label .cwReq{ color:var(--accentText); }
#view-create label .cwHint{ color:var(--muted2); font-weight:700; }
#view-create input[type=text], #view-create textarea{
  width:100%; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px;
  font-size:15px; font-family:inherit; color:var(--text); background:var(--surface2);
  outline:none; transition:.15s;
}
#view-create input:focus, #view-create textarea:focus{
  border-color:var(--accentLine); box-shadow:0 0 0 4px var(--accentSoft); background:var(--surface);
}
#view-create textarea{ resize:vertical; min-height:80px; }
#view-create .cwErr{ color:var(--accentText); font-size:12px; font-weight:850; margin-top:6px; display:none; }
#view-create .cwErr.show{ display:block; }

#view-create .cwChips{ display:flex; flex-wrap:wrap; gap:8px; }
#view-create .cwChip{
  border:1.5px solid var(--line2); background:var(--surface2); border-radius:999px;
  padding:8px 14px; font-weight:850; font-size:13px; cursor:pointer; transition:.15s;
}
#view-create .cwChip:hover{ border-color:var(--accentLine); }
#view-create .cwChip.sel{ border-color:var(--accentText); background:var(--accentSoft); color:var(--accentText); }

/* how it plays */
#view-create .cwMode{
  display:flex; gap:14px; align-items:flex-start; border:1.5px solid var(--line2);
  border-radius:14px; padding:16px; cursor:pointer; transition:.15s; margin-bottom:10px;
}
#view-create .cwMode:hover{ border-color:var(--accentLine); }
#view-create .cwMode.sel{ border-color:var(--accentText); background:var(--accentSoft); }
#view-create .cwModeIcon{ font-size:24px; flex:0 0 auto; }
#view-create .cwModeName{ font-weight:950; font-size:15px; }
#view-create .cwModeDesc{ color:var(--muted); font-weight:650; font-size:13px; margin-top:3px; }

#view-create .cwDrop{
  border:2px dashed var(--line); border-radius:14px; padding:26px; text-align:center;
  color:var(--muted); font-weight:750; font-size:14px; background:var(--surface2); margin-top:14px;
}
#view-create .cwDrop b{ color:var(--text); }

/* review */
#view-create .cwRow{ display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line2); }
#view-create .cwRow:last-child{ border-bottom:none; }
#view-create .cwRowLabel{ color:var(--muted); font-weight:800; font-size:13px; }
#view-create .cwRowVal{ font-weight:900; font-size:14px; text-align:right; }

#view-create .cwActions{ display:flex; justify-content:space-between; gap:12px; margin-top:24px; }

/* launched */
#view-create .cwSuccess{ text-align:center; padding:14px 0; }
#view-create .cwSuccessArt{
  width:96px; height:96px; margin:0 auto 16px; border-radius:24px;
  background:linear-gradient(135deg,var(--accent),var(--warm));
  display:flex; align-items:center; justify-content:center; font-size:46px; animation:cwPop .4s ease;
}
@keyframes cwPop{ 0%{transform:scale(.5);opacity:0} 100%{transform:scale(1);opacity:1} }
#view-create .cwSuccessBtns{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:22px; }

/* an honest note: this wizard collects, it does not yet provision */
#view-create .cwNote{
  margin-top:18px; padding:12px 14px; border-radius:12px;
  background:var(--surface2); border:1px solid var(--line2);
  color:var(--muted); font-size:13px; font-weight:650; line-height:1.5;
}

@media (max-width:640px){
  #view-create .cwTypeGrid{ grid-template-columns:repeat(2,1fr); }
  #view-create .cwActions .btn{ flex:1; justify-content:center; }
}
