/* ============================================================
   Image Rename Tool — export.css
   Step 3: progress bar, duplicate-name warning, and the
   old-name → new-name result list.
   ============================================================ */


/* ══════════════════════════════════════════
   1. PROGRESS BAR (shown while preparing files)
   ══════════════════════════════════════════ */
.ir-image-rename-progress {
  margin: 4px 0 20px;
}

.ir-image-rename-progress__bar {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--ir-line);
  overflow: hidden;
}

.ir-image-rename-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: var(--ir-brand);
  transition: width 0.2s ease;
}

.ir-image-rename-progress__label {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ir-ink-soft);
}


/* ══════════════════════════════════════════
   2. DUPLICATE-NAME WARNING BANNER
   ══════════════════════════════════════════ */
.ir-image-rename-duplicate-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fdf6e9;
  border: 1.5px solid #f0dfb0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #8a6d1f;
}

.ir-image-rename-duplicate-warning svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #c99a1f;
}

.ir-image-rename-duplicate-warning code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,0.06);
  font-size: 12px;
  font-weight: 700;
}


/* ══════════════════════════════════════════
   3. RESULTS LIST
   ══════════════════════════════════════════ */
.ir-image-rename-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ir-image-rename-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--ir-line);
  background: #fff;
  animation: irResultIn 0.2s ease both;
}

@keyframes irResultIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ir-image-rename-result__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background:
    linear-gradient(45deg, #e9e9ef 25%, transparent 25%) -6px 0/ 12px 12px,
    linear-gradient(-45deg, #e9e9ef 25%, transparent 25%) -6px 0/ 12px 12px,
    #fafafd;
}

.ir-image-rename-result__names {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ir-image-rename-result__oldname {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ir-ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--ir-line-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ir-image-rename-result__newname {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ir-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ir-image-rename-result__status {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ir-brand-soft);
  color: var(--ir-brand-dark);
}

.ir-image-rename-result__status svg {
  width: 13px;
  height: 13px;
}

.ir-image-rename-result__download {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ir-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ir-ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.ir-image-rename-result__download svg {
  width: 15px;
  height: 15px;
}

.ir-image-rename-result__download:hover {
  border-color: var(--ir-brand);
  background: var(--ir-brand-soft);
  color: var(--ir-brand-dark);
}

.ir-image-rename-result__download:active {
  transform: scale(0.92);
}


/* ══════════════════════════════════════════
   4. DESKTOP ENHANCEMENTS (≥768px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .ir-image-rename-result {
    padding: 10px 14px;
  }

  .ir-image-rename-result__newname {
    font-size: 14px;
  }

  .ir-image-rename-result__oldname {
    font-size: 11.5px;
  }
}
