/* ===================================================================== */
/* Create page — "What would you like to share?" and everything reached  */
/* from it (Upload a Project, Quick Upload, Sell, Community Post, Poll,  */
/* Upload Music). This is a plain refinement layer on top of the base    */
/* rules in styles.css (loaded first), so it only needs to state what's  */
/* different here — colors, spacing, and the pieces that are new.        */
/*                                                                       */
/* Edit this file to change how the Create page looks. The markup lives  */
/* in index.html (search for data-page="new-project" etc.) and the       */
/* behavior lives in create.js.                                          */
/* ===================================================================== */

/* ---------------------------------------------------------------------- */
/* Type-selection grid — the "What would you like to share?" cards        */
/* ---------------------------------------------------------------------- */
.np-type-choice {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0 8px;
  max-width: 660px;
}
.np-type-card {
  background: #fff;
  border: 1.5px solid #e6e9f0;
  border-radius: 18px;
  overflow: hidden;
  padding: 24px 22px;
  position: relative;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.np-type-card::before {
  background: linear-gradient(135deg, rgba(106,92,240,.08), rgba(139,123,255,0) 60%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .18s ease;
}
.np-type-card:hover {
  border-color: #b9aeff;
  box-shadow: 0 18px 38px rgba(28,35,61,.10);
  transform: translateY(-3px);
}
.np-type-card:hover::before { opacity: 1; }
.np-type-card:active { transform: translateY(-1px); }
.np-type-card > * { position: relative; }
.np-type-icon {
  align-items: center;
  background: #eae5ff;
  border-radius: 13px;
  color: #6d5bd7;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
  box-shadow: 0 6px 14px rgba(109,91,215,.18);
}
.np-type-icon svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 22px; }
.np-type-card.np-type-sell .np-type-icon { background: #fff0e7; color: #de7946; box-shadow: 0 6px 14px rgba(222,121,70,.18); }
.np-type-card.np-type-community .np-type-icon { background: #ddf7ef; color: #1f9e78; box-shadow: 0 6px 14px rgba(31,158,120,.18); }
.np-type-card.np-type-poll .np-type-icon { background: #e4edff; color: #3468d6; box-shadow: 0 6px 14px rgba(52,104,214,.18); }
.np-type-card.np-type-track .np-type-icon { background: #ffe9f0; color: #d1547e; box-shadow: 0 6px 14px rgba(209,84,126,.18); }
.np-type-card.np-type-quick-upload .np-type-icon { background: #fff4d6; color: #c98a0a; box-shadow: 0 6px 14px rgba(201,138,10,.18); }
.np-type-card.np-type-quick-upload .np-type-icon svg { fill: currentColor; stroke: none; }
.np-type-card.np-type-track h3 { align-items: center; display: flex; gap: 6px; }
.np-type-card.np-type-track h3 .verified-badge { height: 14px; width: 14px; }
.np-type-card h3 { font-size: 15px; letter-spacing: -.02em; margin: 16px 0 6px; }
.np-type-card p { color: #7d859a; font-size: 10.5px; line-height: 1.6; margin: 0; }
/* A small "chevron" that slides in on hover — the same kind of subtle
   affordance big consumer apps use to make a static card read as
   tappable/clickable without adding a separate visible button. */
.np-type-card::after {
  color: #b9aeff;
  content: "→";
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  position: absolute;
  right: 20px;
  top: 22px;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.np-type-card:hover::after { opacity: 1; transform: translateX(0); }
body[data-theme="dark"] .np-type-card { background: #161b22; border-color: rgba(255,255,255,.08); }
body[data-theme="dark"] .np-type-card:hover { border-color: rgba(139,123,255,.45); }
body[data-theme="dark"] .np-type-card p { color: #9099ac; }
body[data-theme="dark"] .np-type-card.np-type-quick-upload .np-type-icon { background: rgba(201,138,10,.18); }
@media (max-width: 570px) { .np-type-choice { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Quick Upload — step progress dots                                      */
/* ---------------------------------------------------------------------- */
.qu-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 18px;
  max-width: 320px;
}
.qu-progress-dot {
  background: #e6e9f0;
  border-radius: 50px;
  flex: 1;
  height: 4px;
  transition: background .2s ease;
}
.qu-progress-dot.is-done { background: #8b7bff; }
.qu-progress-dot.is-active { background: linear-gradient(90deg, #6a5cf0, #8b5cf6); }
body[data-theme="dark"] .qu-progress-dot { background: rgba(255,255,255,.1); }

/* Quick Upload wizard cards */
.quick-upload-form .qu-step { margin-top: 14px; }
.quick-upload-form .qu-step:first-of-type { margin-top: 14px; }
#quStepIntro, #quStepUrl, #quStepPreviewLink { border-radius: 18px; }
#quStepIntro h3, #quStepUrl h3, #quStepPreviewLink h3 { font-size: 16px; margin: 0 0 8px; }
.qu-step label input {
  background: #f6f7fb;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  font-size: 12px;
  height: 46px;
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.qu-step label input:focus { border-color: #7868e9; box-shadow: 0 0 0 3px rgba(120,104,233,.12); outline: 0; }
.qu-step .primary-button { margin-top: 14px; }
.qu-error { background: #fdedf0; border-radius: 10px; color: #b12f49; font-size: 10.5px; margin: 10px 0 0; padding: 10px 12px; }

/* Quick Upload — final preview card, styled like a real link-preview/
   social card so it's obvious this is exactly what people will see. */
.qu-final-preview { border-radius: 18px; overflow: hidden; padding: 0; }
.qu-preview-image { aspect-ratio: 1200 / 630; background: #f2f3f7; overflow: hidden; width: 100%; }
.qu-preview-image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.qu-final-preview h3 { font-size: 16px; margin: 18px 20px 6px; }
.qu-final-preview .section-note { margin: 0 20px 10px; }
.qu-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 20px 12px; }
.qu-preview-meta { border-top: 1px solid #f0f1f5; display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0 20px; padding: 12px 0 18px; }
.qu-preview-meta span { color: #565e70; font: 700 9.5px "DM Mono", monospace; }
.qu-final-actions { display: flex; gap: 10px; margin-top: 14px; }
body[data-theme="dark"] .qu-step label input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.09); color: #e6edf3; }
body[data-theme="dark"] .qu-preview-image { background: rgba(255,255,255,.04); }
body[data-theme="dark"] .qu-preview-meta { border-color: rgba(255,255,255,.08); }

.np-back-to-type { background: none; color: #6656d9; font-size: 10.5px; font-weight: 800; margin-bottom: 14px; padding: 0; }

/* ---------------------------------------------------------------------- */
/* Project / post form — nicer field focus states, tidier submit row      */
/* ---------------------------------------------------------------------- */
.np-card { border-radius: 16px; transition: box-shadow .15s ease; }
.np-card input, .np-card textarea { border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.np-submit { border-radius: 12px; font-weight: 800; letter-spacing: -.01em; }
.np-preview-thumb { border-radius: 14px; box-shadow: 0 10px 22px rgba(75,63,201,.28); }
