/* components.css — buttons, cards, forms, image-slots (marketplace style) */

/* ---------- Buttons (rounded, modern, no skew) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--ink); background: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--ink); background: var(--line-soft); }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 14px 26px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow:hover { color: var(--accent-d); text-decoration: none; gap: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* step-by-step numbered cards */
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step__num {
  width: 36px; height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; }

/* inventory tile */
.inv-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.inv-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.inv-tile h3 { font-size: 1.4rem; margin: 0; }
.inv-tile__tag {
  display: inline-block;
  background: var(--tag);
  color: var(--accent-d);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}
.inv-tile p { color: var(--ink-soft); margin: 0; }

/* ---------- Image slot (placeholder if file missing) ---------- */
.img-slot {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
}
.img-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot--placeholder {
  background: var(--line-soft);
  border: 2px dashed var(--line);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mute);
  text-align: center;
  padding: 28px;
}
.img-slot__icon { font-size: 28px; opacity: .55; }
.img-slot__label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.img-slot__path { font-size: .78rem; color: var(--mute); }
.img-slot code {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .85rem;
  color: var(--ink);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field .req { color: var(--bad); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__error { color: var(--bad); font-size: .85rem; min-height: 1em; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.field small { color: var(--mute); font-size: .82rem; }

/* ---------- Checkbox row ---------- */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
  cursor: pointer;
  font-weight: 500;
}
.checkbox-row input { width: 18px; height: 18px; }
