/* Kit creation page styles */

.create-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.create-header {
  margin-bottom: 48px;
}

.create-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.create-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.form-section {
  margin-bottom: 40px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.field-optional {
  font-weight: 400;
  color: var(--muted);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--card-bg);
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.text-input:focus {
  border-color: var(--accent-warm);
}

.text-input::placeholder {
  color: var(--muted);
}

textarea.text-input {
  resize: vertical;
  min-height: 80px;
}

.items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.item-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.items-list {
  margin-bottom: 16px;
}

.items-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
}

.item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.item-row:last-child { border-bottom: none; }

.item-row-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-warm);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.item-row-body { flex: 1; min-width: 0; }

.item-row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 3px;
}

.item-row-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
}

.item-row-desc a {
  color: var(--accent-warm);
  text-decoration: none;
}

.item-row-desc a:hover { text-decoration: underline; }

.item-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.item-remove-btn:hover {
  color: var(--fg);
  background: var(--accent-warm-bg);
}

.add-item-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.item-name-input { font-weight: 500; }

.item-desc-input { }

.item-url-input { }

.item-image-input { }

.item-blurb-input { resize: vertical; min-height: 60px; }

.item-photo-upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.item-photo-input {
  flex: 1;
  min-width: 180px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
}

.item-photo-preview {
  margin-top: 6px;
}

.item-photo-preview-img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  object-fit: cover;
}

.btn-add-item {
  align-self: flex-start;
  padding: 9px 18px;
  background: var(--accent-cool-bg);
  color: var(--accent-cool);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add-item:hover { background: #d8e3d2; }

.form-error {
  padding: 14px 16px;
  background: #fde8e6;
  border: 1.5px solid #e8a098;
  border-radius: 10px;
  color: #c44b3b;
  font-size: 14px;
  margin-bottom: 24px;
}

.btn-create-kit {
  width: 100%;
  padding: 16px;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-create-kit:hover { background: #a8521f; }
.btn-create-kit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success screen */
.success-screen {
  text-align: center;
  padding: 64px 0;
}

.success-icon { margin-bottom: 24px; }

.success-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.kit-share-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-warm);
  text-decoration: none;
  padding: 14px 28px;
  background: var(--accent-warm-bg);
  border-radius: 10px;
  margin-bottom: 24px;
  word-break: break-all;
}

.kit-share-link:hover { background: #eddfd5; }

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-cta-row {
  margin-bottom: 32px;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-copy-link:hover { background: #a8521f; }

.btn-copy-link.copied {
  background: var(--accent-cool);
}

.btn-copy-link.copied:hover { background: #4a6b35; }

.copy-label-default { display: flex; align-items: center; gap: 6px; }
.copy-label-copied { display: flex; align-items: center; gap: 6px; }