/* Shared "larga aqui" overlay painted while a file drag is in flight.
   Built by assets/js/shared/components/file-drop.js — pointer-events stay off so
   the element under the cursor keeps receiving the drop. */

.mm-drop {
  position: fixed; inset: 0; z-index: 2147483200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 2vw, 22px);
  pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  backdrop-filter: blur(9px) saturate(1.08);
  transition: opacity .16s ease;
}
.mm-drop[hidden] { display: none; }
.mm-drop.is-visible { opacity: 1; }

.mm-drop__panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
  width: 100%; height: 100%;
  padding: clamp(18px, 3vw, 34px);
  text-align: center;
  border: 2px dashed var(--brand-pink, #e61e4d);
  border-radius: clamp(18px, 2.4vw, 30px);
  background: rgba(230, 30, 77, .05);
  box-shadow: 0 26px 60px rgba(15, 23, 31, .12), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transform: scale(.982);
  transition: transform .2s cubic-bezier(.2, .8, .25, 1), border-color .18s ease, background .18s ease;
}
.mm-drop.is-visible .mm-drop__panel { transform: scale(1); }

.mm-drop__icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: clamp(56px, 6.4vw, 74px); height: clamp(56px, 6.4vw, 74px);
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-pink, #e61e4d), var(--brand-pink-deep, #d70466));
  box-shadow: 0 14px 30px rgba(215, 4, 102, .3);
  animation: mm-drop-float 1.9s ease-in-out infinite;
}
.mm-drop__icon svg { width: 54%; height: 54%; }
/* The ring keeps breathing outwards so the target reads as live, not as a static box. */
.mm-drop__icon::after {
  content: ""; position: absolute; inset: -9px;
  border: 2px solid rgba(230, 30, 77, .34); border-radius: 50%;
  animation: mm-drop-ring 1.9s ease-out infinite;
}

.mm-drop__count {
  position: absolute; top: -7px; right: -9px;
  display: flex; align-items: center; justify-content: center;
  min-width: 25px; height: 25px; padding: 0 7px;
  font-size: .78rem; font-weight: 800; line-height: 1;
  color: var(--brand-pink-deep, #d70466);
  background: #fff; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 31, .2);
}
.mm-drop__count[hidden] { display: none; }

.mm-drop__title {
  font-size: clamp(1.05rem, 2.1vw, 1.42rem); font-weight: 800; letter-spacing: -.01em;
  color: var(--theme-text, #222);
}
.mm-drop__hint {
  max-width: 36ch;
  font-size: clamp(.82rem, 1.3vw, .95rem); font-weight: 600; line-height: 1.4;
  color: var(--theme-text-muted, #666);
}
.mm-drop__hint[hidden] { display: none; }

.mm-drop__panel.is-rejected {
  border-color: #b9c1cc;
  background: rgba(120, 130, 145, .07);
}
.mm-drop__panel.is-rejected .mm-drop__icon {
  background: linear-gradient(135deg, #9aa4b2, #757f8d);
  box-shadow: none; animation: none;
}
.mm-drop__panel.is-rejected .mm-drop__icon::after { display: none; }
.mm-drop__panel.is-rejected .mm-drop__icon svg { transform: rotate(180deg); }

@keyframes mm-drop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes mm-drop-ring {
  0% { transform: scale(.86); opacity: .8; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

:root[data-theme=night] .mm-drop { background: rgba(5, 8, 13, .74); }
:root[data-theme=night] .mm-drop__panel {
  background: rgba(230, 30, 77, .09);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
:root[data-theme=night] .mm-drop__count { background: #f6f8fc; }
:root[data-theme=night] .mm-drop__panel.is-rejected {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .05);
}

@media (max-width: 640px) {
  .mm-drop__panel { gap: 12px; }
  .mm-drop__hint { max-width: 28ch; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-drop, .mm-drop__panel { transition: none; }
  .mm-drop__icon, .mm-drop__icon::after { animation: none; }
  .mm-drop__panel { transform: none; }
}
