/* HEIC to JPG Converter — tool-specific layout only.
   No color tokens defined here — all colours come from src/shared/css/base.css. */

/* ── Drop zone ─────────────────────────────────────────────────────────── */

.drop-zone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--color-signal);
  background: var(--color-signal-soft, rgba(210, 81, 26, 0.05));
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone__hint {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  pointer-events: none;
}

.batch-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ── Options row ────────────────────────────────────────────────────────── */

.panel--options .options-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: flex-start;
}

.option-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.option-fieldset legend {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.option-radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.option-radio input[type="radio"] {
  accent-color: var(--color-signal);
  cursor: pointer;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 180px;
}

.option-group label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

#quality-slider {
  accent-color: var(--color-signal);
  width: 100%;
  max-width: 200px;
}

/* ── Convert status ─────────────────────────────────────────────────────── */

.convert-status {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-inline-start: var(--space-3);
}

.convert-status.error {
  color: var(--color-danger, #c0392b);
}

/* ── Image grid (source + output) ──────────────────────────────────────── */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

/* Image card */
.img-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.img-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.img-card__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.img-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.img-card__status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.img-card__status.converting {
  color: var(--color-signal);
}

.img-card__status.done {
  color: var(--color-success, #2d7a2d);
}

.img-card__status.error {
  color: var(--color-danger, #c0392b);
}

.img-card .btn {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  align-self: flex-start;
}

.img-card__remove {
  margin-top: auto;
  opacity: 0.7;
}

.img-card__remove:hover {
  opacity: 1;
}

/* ── Convert / ZIP row ──────────────────────────────────────────────────── */

#convert-row {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
}

#zip-row {
  margin-top: var(--space-4);
}
