/* ============================================================
   Image to PNG — dropzone.css
   Step 1: multi-file select/drag&drop + "N images selected" line
   ============================================================ */


/* ══════════════════════════════════════════
   1. DROPZONE CARD
   ══════════════════════════════════════════ */
.itp-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 8px auto 0;
  padding: 40px 16px;
  border-radius: 24px;
  cursor: pointer;
}

/* Drag-over affordance: a soft brand-colored halo behind the whole
   card, not a color swap — reads as "drop here" without shouting. */
.itp-dropzone__ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 24px;
  border: 1.5px dashed transparent;
  box-shadow: 0 0 0 0 rgba(66, 181, 164, 0);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  pointer-events: none;
}

.itp-dropzone.is-dragover .itp-dropzone__ring {
  border-color: rgba(66, 181, 164, 0.45);
  box-shadow: 0 0 0 8px rgba(66, 181, 164, 0.08);
}

/* ── The focal point: pill-shaped select button ── */
.itp-dropzone__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: 9999px;
  background: var(--itp-brand);
  border: 1.5px solid var(--itp-brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.1px;
  box-shadow: 0 2px 10px rgba(66,181,164,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.itp-dropzone__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

@media (hover: hover) {
  .itp-dropzone:hover .itp-dropzone__button {
    transform: translateY(-2px);
    background: var(--itp-brand-dark);
    border-color: var(--itp-brand-dark);
    box-shadow: 0 14px 32px rgba(66,181,164,0.28);
  }
}

.itp-dropzone:active .itp-dropzone__button {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 16px rgba(66,181,164,0.24);
}

.itp-dropzone:focus-visible {
  outline: none;
}

.itp-dropzone:focus-visible .itp-dropzone__button {
  box-shadow: 0 0 0 4px var(--itp-brand-soft), 0 8px 24px rgba(66,181,164,0.28);
}

.itp-dropzone.is-dragover .itp-dropzone__button {
  transform: translateY(-2px);
  background: var(--itp-brand-dark);
  border-color: var(--itp-brand-dark);
  box-shadow: 0 14px 32px rgba(66,181,164,0.32);
}

/* ── Refined divider: fading hairlines, not decoration ── */
.itp-dropzone__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  margin-top: 28px;
  color: #a3a3ae;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.itp-dropzone__divider::before,
.itp-dropzone__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--itp-line-strong));
}

.itp-dropzone__divider::after {
  background: linear-gradient(to left, transparent, var(--itp-line-strong));
}

/* ── Trust line ── */
.itp-dropzone__trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 22px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--itp-ink-soft);
}

.itp-dropzone__trust svg {
  width: 15px;
  height: 15px;
  color: var(--itp-brand);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   2. SELECTED-COUNT LINE (appears once files are chosen)
   ══════════════════════════════════════════ */
.itp-selectcount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 20px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--itp-ink);
}

.itp-selectcount::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--itp-brand);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   3. DESKTOP ENHANCEMENTS (≥768px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .itp-dropzone {
    max-width: 520px;
    padding: 56px 24px;
  }


  .itp-dropzone__button {
    height: 60px;
    padding: 0 36px;
    font-size: 16.5px;
  }
}


/* ══════════════════════════════════════════
   4. ACCESSIBILITY
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .itp-dropzone__button {
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .itp-dropzone:active .itp-dropzone__button,
  .itp-dropzone.is-dragover .itp-dropzone__button {
    transform: none;
  }
}
