/*
 * Bulk product images screen (/admin/products/bulk-images).
 * Drop zone + matched/unmatched result lists.
 */

.bulk-img-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 16px;
  border: 2px dashed var(--border-default);
  border-radius: 10px;
  background: var(--bg-subtle);
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease;
}
.bulk-img-drop:hover,
.bulk-img-drop:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.bulk-img-drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bulk-img-drop-icon { color: var(--text-tertiary); }
.bulk-img-drop-title { font-weight: 600; color: var(--text-primary); }
.bulk-img-drop-hint { font-size: 12.5px; color: var(--text-tertiary); }

.bulk-img-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.bulk-img-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 420px;
  overflow-y: auto;
}

.bulk-img-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-surface);
}
.bulk-img-row:hover { background: var(--bg-hover); }
.bulk-img-list--muted .bulk-img-row { opacity: 0.85; }

.bulk-img-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 7px;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  overflow: hidden;
}
.bulk-img-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bulk-img-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.bulk-img-name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulk-img-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.bulk-img-replace { color: var(--warning); }

.bulk-img-status { flex: none; display: inline-flex; align-items: center; }
.bulk-img-ok  { color: var(--positive); }
.bulk-img-err { color: var(--danger); }

.bulk-img-row.is-done  { background: color-mix(in srgb, var(--positive) 8%, transparent); }
.bulk-img-row.is-error { background: color-mix(in srgb, var(--danger) 8%, transparent); }
/* Same treatment as an upload in flight — the row is busy, not finished. */
.bulk-img-row.is-fetching { background: var(--bg-subtle); }

.bulk-img-done-text { color: var(--positive); font-weight: 600; }

/* ── URL tab ───────────────────────────────────────────────────────
   The list rows are shared with the file tab; only the two things a
   link brings with it need their own rules. */

/* A CDN link is far longer than a filename and must not push the row's
   status icon off the end. Truncated with the full URL on hover. */
.bulk-img-url {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  direction: ltr;          /* a URL reads left-to-right even in an RTL UI */
  text-align: start;
}

/* Pasted SKU,URL pairs. Monospace so two ragged columns line up enough
   to spot a bad row, and never auto-corrected — these are identifiers. */
.bulk-url-paste {
  min-height: 132px;
  height: auto;
  padding-block: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  direction: ltr;
  text-align: start;
}
