/* ============================================================================
   Liquiplex Membership – Comment System CSS
   ============================================================================ */

/* ── Image Upload Area ───────────────────────────────────────────────────────── */
.lpm-image-upload-area {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  transition: border-color .2s;
}

.lpm-image-upload-area.drag-over {
  border-color: #7b2ff7;
  background: #f5f0ff;
}

.lpm-image-label {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: .95rem;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lpm-elite-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lpm-image-hint {
  font-size: .8rem;
  color: #6b7280;
  margin: 0 0 12px;
}

#lpm-image-input {
  display: block;
  margin-bottom: 12px;
  font-size: .85rem;
}

/* ── Preview Grid ────────────────────────────────────────────────────────────── */
.lpm-image-previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lpm-preview-item {
  position: relative;
  width: 100px;
  height: 80px;
}

.lpm-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
}

.lpm-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.lpm-preview-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Upload Progress ─────────────────────────────────────────────────────────── */
.lpm-upload-progress {
  margin-top: 8px;
  font-size: .82rem;
  color: #6b7280;
}

.lpm-upload-error {
  color: #dc2626;
  font-size: .82rem;
  margin-top: 6px;
}

/* ── Dark theme overrides ─────────────────────────────────────────────────── */
body.is-style-dark .lpm-image-upload-area,
body.dark .lpm-image-upload-area,
body.dark-mode .lpm-image-upload-area,
html[data-theme="dark"] .lpm-image-upload-area,
body[data-theme="dark"] .lpm-image-upload-area {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-image-upload-area.drag-over,
body.dark .lpm-image-upload-area.drag-over,
body.dark-mode .lpm-image-upload-area.drag-over,
html[data-theme="dark"] .lpm-image-upload-area.drag-over,
body[data-theme="dark"] .lpm-image-upload-area.drag-over {
  background: #1e1b4b;
  border-color: #8b5cf6;
}

body.is-style-dark .lpm-image-label,
body.dark .lpm-image-label,
body.dark-mode .lpm-image-label,
html[data-theme="dark"] .lpm-image-label,
body[data-theme="dark"] .lpm-image-label {
  color: #f3f4f6;
}

body.is-style-dark .lpm-image-hint,
body.dark .lpm-image-hint,
body.dark-mode .lpm-image-hint,
html[data-theme="dark"] .lpm-image-hint,
body[data-theme="dark"] .lpm-image-hint,
body.is-style-dark .lpm-upload-progress,
body.dark .lpm-upload-progress,
body.dark-mode .lpm-upload-progress,
html[data-theme="dark"] .lpm-upload-progress,
body[data-theme="dark"] .lpm-upload-progress {
  color: #9ca3af;
}

body.is-style-dark .lpm-preview-item img,
body.dark .lpm-preview-item img,
body.dark-mode .lpm-preview-item img,
html[data-theme="dark"] .lpm-preview-item img,
body[data-theme="dark"] .lpm-preview-item img {
  border-color: #4b5563;
}
