/* ============================================================
   Image to PDF — dropzone.css
   Step 1: multi-file select/drag&drop
   ============================================================ */


/* ══════════════════════════════════════════
   1. DROPZONE CARD
   ══════════════════════════════════════════ */
.ip-img2pdf-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  margin: 8px auto 0;
  padding: 40px 24px;
  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. */
.ip-img2pdf-dropzone__ring {
  position: absolute;
  inset: 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;
}

.ip-img2pdf-dropzone.is-dragover .ip-img2pdf-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 ── */
.ip-img2pdf-dropzone__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: 9999px;
  background: var(--ip-brand);
  border: 1.5px solid var(--ip-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;
}

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

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

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

.ip-img2pdf-dropzone:focus-visible {
  outline: none;
}

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

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

/* ── Refined divider: fading hairlines, not decoration ── */
.ip-img2pdf-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;
}

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

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

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

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


/* ══════════════════════════════════════════
   2. SELECTED-COUNT LINE (appears once files are chosen,
      used by js/file-handler.js as a brief confirmation
      before auto-advancing to Step 2)
   ══════════════════════════════════════════ */
.ip-img2pdf-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(--ip-ink);
}

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


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

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


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

  .ip-img2pdf-dropzone:hover .ip-img2pdf-dropzone__button,
  .ip-img2pdf-dropzone:active .ip-img2pdf-dropzone__button,
  .ip-img2pdf-dropzone.is-dragover .ip-img2pdf-dropzone__button {
    transform: none;
  }
}
