/* ============================================================
   dropzone.css - drag-and-drop upload area
   ============================================================ */

.dropzone {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  border: 1.5px dashed rgba(139,92,246,0.28);
  border-radius: var(--radius-lg);
  min-height: 148px;
  margin-bottom: 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.028);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s var(--ease-spring);
}

/* top glow overlay - reveals on hover/drag */
.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.1) 0%, transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropzone:hover::before,
.dropzone.drag::before { opacity: 1; }

.dropzone:hover {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(139,92,246,0.058);
  transform: translateY(-1px);
}

.dropzone.drag {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(139,92,246,0.075);
  transform: scale(1.012);
}

.dropzone.has-file {
  border-style: solid;
  border-color: rgba(52,211,153,0.42);
  background:   rgba(52,211,153,0.038);
}

.dropzone.has-file::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(52,211,153,0.08) 0%, transparent 68%);
  opacity: 1;
}

/* ?? Inner content ?? */
.dz-inner {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 100%;
  min-width: 0;
}

.dz-preview-frame {
  width: 100%;
  height: 150px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(0,0,0,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.26) inset;
}

.dz-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dz-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  flex-shrink: 0;
  transition: all 0.28s var(--ease-spring);
}

.dropzone:hover .dz-icon-wrap,
.dropzone.drag  .dz-icon-wrap {
  background: rgba(139,92,246,0.18);
  transform:  scale(1.09) translateY(-2px);
  box-shadow: 0 8px 22px rgba(139,92,246,0.22);
}

.dropzone.has-file .dz-icon-wrap {
  background:   rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.3);
}

.dz-icon-wrap svg { display: block; }

.dz-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
}

.dz-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ?? File selected state ?? */
.dz-filename {
  font-size: 13.5px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dz-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 480px) {
  .dz-inner {
    padding: 20px 16px;
  }

  .dz-preview-frame {
    height: 170px;
  }
}

/* invisible file input sits on top of entire zone */
.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
