/* ── New Listing — Snap & Sell ────────────────────────────── */

/* Snap card fills full width; tips card below */
.nl-wrap { display: contents; }
.nl-layout { display: block; margin-bottom: 16px; }
.nl-main { display: flex; flex-direction: column; gap: 16px; }

/* ── Snap card ── */
.snap-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* Card header */
.snap-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.snap-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.snap-title { font-size: 20px; font-weight: 700; color: #18181b; line-height: 1.3; }
.snap-sub   { font-size: 13px; color: #52525b; margin-top: 3px; }

/* Button row */
.snap-btn-row { display: flex; gap: 10px; margin-bottom: 14px; }

.btn-take {
  flex: 1;
  height: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms, box-shadow 150ms;
  border: 1px solid transparent;
  outline: none;
}
.btn-take:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-take-primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; box-shadow: 0 4px 18px rgba(37,99,200,0.25); }
.btn-take-primary:hover:not(:disabled)       { box-shadow: 0 4px 24px rgba(75,142,240,0.38); }
.btn-take-primary:active:not(:disabled)      { opacity: 0.9; }
.btn-take-primary:focus-visible              { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }

.btn-take-outline { background: #fff; color: #18181b; border-color: #e4e4e7; }
.btn-take-outline:hover:not(:disabled)       { border-color: #a1a1aa; background: #fafafa; }
.btn-take-outline:active:not(:disabled)      { background: #f4f4f5; }
.btn-take-outline:focus-visible              { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

/* Caption */
.snap-caption { font-size: 12px; color: #71717a; margin-bottom: 16px; }

/* Info panel */
.snap-info {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.snap-info-card { margin-top: 0; }
.snap-info-card .snap-info { margin-bottom: 20px; }
.snap-info-title { font-size: 13px; font-weight: 600; color: #18181b; margin-bottom: 10px; }
.snap-info-list  { display: flex; flex-direction: column; gap: 6px; }
.snap-info-item  { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #52525b; line-height: 1.5; }
.snap-info-dash  { color: #a1a1aa; flex-shrink: 0; margin-top: 2px; font-size: 12px; }

/* Step cards */
.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.step-card {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #2563eb; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-name      { font-size: 13px; font-weight: 600; color: #18181b; }
.step-icon-wrap { color: #52525b; display: flex; }
.step-desc      { font-size: 12px; color: #52525b; line-height: 1.5; margin: 0; }

/* ── Tips card — full width below snap card ── */
.tips-card-full {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 24px 28px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.tips-full-header { margin-bottom: 20px; }
.tips-full-title  { font-size: 15px; font-weight: 700; color: #18181b; margin-bottom: 4px; }
.tips-full-sub    { font-size: 12px; color: #71717a; line-height: 1.5; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tip-cell {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 14px 16px;
}
.tip-cell-label { font-size: 11px; font-weight: 700; color: #18181b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.tip-cell-body  { font-size: 13px; color: #52525b; line-height: 1.6; }

/* ── Photo strip (preview view) ── */
.photo-strip-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.photo-strip::-webkit-scrollbar { height: 3px; }
.photo-thumb-wrap   { position: relative; flex-shrink: 0; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.photo-thumb-img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-badge  { position: absolute; bottom: 5px; left: 5px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.photo-thumb-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 150ms; }
.photo-thumb-remove:hover { background: var(--red); }
.photo-thumb-add    { flex-shrink: 0; width: 100px; height: 100px; border-radius: 8px; border: 1.5px dashed #d4d4d8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: #71717a; transition: border-color 150ms, background 150ms; }
.photo-thumb-add:hover { border-color: #2563eb; background: #eff6ff; color: #2563eb; }

/* ── AI photo strip ── */
.ai-photo-strip         { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; flex-direction: column; gap: 10px; overflow-x: visible; }
.ai-photo-strip::-webkit-scrollbar { height: 3px; }
.ai-photo-main          { width: 100%; max-height: 260px; height: auto; flex-shrink: 0; object-fit: cover; border-radius: 8px; display: block; border: 1px solid #e4e4e7; }
.ai-photo-thumbs-row    { display: flex; gap: 8px; overflow-x: auto; }
.ai-photo-thumbs-row::-webkit-scrollbar { height: 3px; }
.ai-photo-thumb         { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); opacity: .65; transition: opacity 150ms; cursor: pointer; }
.ai-photo-thumb:hover   { opacity: 1; }

/* ── Export / action buttons ── */
.ai-export-btn  { width: 100%; justify-content: center; padding: 15px; font-size: 15px; border-radius: 8px; margin-bottom: 4px; }
.ai-draft-btn   { width: 100%; justify-content: center; padding: 13px; font-size: 14px; border-radius: 8px; margin-top: 10px; }

.export-modal             { max-width: 600px; }
.export-modal-header      { padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.export-modal-title       { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.export-modal-sub         { font-size: 12px; color: var(--muted); line-height: 1.5; }
.export-platforms-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 24px 24px; }
.export-tile              { border: 1px solid; border-radius: 8px; padding: 20px 18px 16px; cursor: pointer; transition: background 150ms, transform 150ms, box-shadow 150ms; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.export-tile:hover        { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.export-tile:active       { transform: translateY(0); }
.export-tile-logo         { min-height: 50px; display: flex; align-items: center; }
.export-tile-tag          { font-size: 11px; color: var(--muted); line-height: 1.4; }
.export-tile-cta          { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; margin-top: 4px; }

/* ── AI result card ── */
.ai-result-card     { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.ai-result-badge    { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--primary2); background: rgba(75,142,240,.1); border: 1px solid rgba(75,142,240,.2); border-radius: 20px; padding: 4px 10px; margin-bottom: 14px; }
.ai-result-title    { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.ai-result-tags     { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.ai-tag             { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.ai-tag-green       { background: rgba(22,163,74,.12);  color: var(--green); }
.ai-tag-blue        { background: rgba(75,142,240,.12); color: var(--primary2); }
.ai-tag-purple      { background: rgba(124,58,237,.12); color: var(--purple); }
.ai-specs-grid      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.ai-spec-item       { display: flex; align-items: flex-start; gap: 8px; background: var(--card2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ai-spec-label      { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.ai-spec-val        { font-size: 13px; font-weight: 600; color: var(--text); }
.ai-desc-label      { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.ai-desc-body       { font-size: 12px; color: var(--muted); line-height: 1.65; white-space: pre-wrap; }

@media (max-width: 640px) {
  .snap-btn-row { flex-direction: column; gap: 8px; }
  .btn-take { width: 100% !important; min-height: 44px !important; font-size: 16px !important; }
  .tips-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .steps-row { grid-template-columns: 1fr 1fr 1fr !important; gap: 6px; }
  .photo-strip { gap: 8px; }
  .photo-thumb-wrap { width: 80px; height: 80px; flex-shrink: 0; }
  .photo-thumb-img { width: 80px; height: 80px; }
  .photo-thumb-add { width: 80px; height: 80px; }
  /* Snap card: tighter padding */
  .snap-card { padding: 16px !important; }
  .snap-header { margin-bottom: 16px; }
  .tips-card-full { padding: 16px 16px 20px !important; }
  /* Ensure analyze button doesn't overflow */
  .btn.btn-primary[style*="width:100%"] { box-sizing: border-box; max-width: 100%; }
}
