/* ============================================================
   PDF to Image — preview.css
   Step 3: a single result card — stacked-photo icon + projected
   file name/size — standing in for the finished image(s). Mirrors
   the sibling tool's "PDF card" pattern, but reads as photos/images
   instead of a document (picture-frame icon, format tag instead of
   "PDF", image count instead of page count).
   ============================================================ */


/* ══════════════════════════════════════════
   1. CARD SHELL
   ══════════════════════════════════════════ */
.ip-pdf2img-imgcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px 22px;
  margin: 4px 0 6px;
  border-radius: 20px;
  background: var(--ip-bg);
  animation: ipCardIn 0.25s ease both;
}


/* ══════════════════════════════════════════
   2. STACKED-PHOTO ICON
   Three offset rectangles read as "a batch of images"; the front
   sheet carries a picture-frame glyph + a format tag (PNG/JPEG/WEBP)
   so it unmistakably reads as finished images, not a document.
   ══════════════════════════════════════════ */
.ip-pdf2img-imgcard__stack {
  position: relative;
  width: 108px;
  height: 132px;
  margin-bottom: 14px;
}

.ip-pdf2img-imgcard__sheet {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--ip-line);
}

.ip-pdf2img-imgcard__sheet--3 {
  z-index: 1;
  transform: rotate(-7deg) translate(-7px, 5px);
  opacity: 0.7;
}

.ip-pdf2img-imgcard__sheet--2 {
  z-index: 2;
  transform: rotate(5deg) translate(6px, 2px);
  opacity: 0.88;
}

.ip-pdf2img-imgcard__sheet--1 {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(20,20,30,0.14), 0 2px 6px rgba(20,20,30,0.08);
  overflow: hidden;
}

.ip-pdf2img-imgcard__pic {
  width: 40px;
  height: 40px;
  color: var(--ip-line-strong);
}

.ip-pdf2img-imgcard__tag {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 6px;
  background: var(--ip-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* Image-count badge, pinned to the stack's top-right corner */
.ip-pdf2img-imgcard__count {
  position: absolute;
  top: -8px;
  right: -10px;
  z-index: 4;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--ip-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(20,20,30,0.2);
}


/* ══════════════════════════════════════════
   3. FILE NAME / META TEXT
   ══════════════════════════════════════════ */
.ip-pdf2img-imgcard__name {
  margin: 0;
  max-width: 100%;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ip-ink);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-pdf2img-imgcard__meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ip-ink-soft);
  text-align: center;
}


/* ══════════════════════════════════════════
   4. DESKTOP ENHANCEMENTS (≥768px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .ip-pdf2img-imgcard {
    padding: 34px 16px 26px;
  }

  .ip-pdf2img-imgcard__stack {
    width: 122px;
    height: 148px;
  }

  .ip-pdf2img-imgcard__pic {
    width: 46px;
    height: 46px;
  }

  .ip-pdf2img-imgcard__name {
    font-size: 16px;
  }
}


/* ══════════════════════════════════════════
   5. ACCESSIBILITY
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ip-pdf2img-imgcard {
    animation: none;
  }
}
