/* =========================================================
   SpinChoice — Winner Alert Modal (SIMPLE BRIGHT)
   File: /styles/win-alert-styles-main.css
   ========================================================= */

/* ✅ critical: hidden means NOT rendered */
.sc-modal-backdrop[hidden]{ display:none !important; }

/* Backdrop (no blur, no transparency “glass”) */
.sc-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;

  background: rgba(15, 23, 42, 0.55); /* dark dim, not transparent UI */
}

/* Animate modal */
.sc-modal-backdrop.is-in .sc-modal{
  transform: translateY(0);
  opacity: 1;
}
.sc-modal-backdrop.is-out .sc-modal{
  transform: translateY(10px);
  opacity: 0;
}

/* Modal shell (solid, bright, simple) */
.sc-modal{
  --sc-accent: #2563eb;

  position: relative;
  width: min(520px, 94vw);
  border-radius: 16px;

  background: #ffffff;            /* ✅ solid */
  border: 1px solid #e5e7eb;      /* light border */
  box-shadow: 0 24px 70px rgba(0,0,0,.35);

  padding: 16px 16px 14px;

  transform: translateY(10px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;

  color: #0f172a; /* dark text */
}

/* Close X */
.sc-modal__x{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border-radius: 12px;

  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;

  cursor: pointer;
}
.sc-modal__x:hover{
  background: #eef2ff;
}

/* Header row */
.sc-modal__top{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 48px;
}

.sc-modal__badge{
  width: 40px;
  height: 40px;
  border-radius: 12px;

  background: var(--sc-accent);
  box-shadow: 0 10px 22px rgba(37,99,235,.25);
}

.sc-modal__kicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #475569;
}

.sc-modal__title{
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
}

/* Winner box */
.sc-modal__winner{
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 14px;

  background: #f8fafc;
  border: 1px solid #e5e7eb;

  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;

  word-break: break-word;
}

/* Meta */
.sc-modal__meta{
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Buttons */
.sc-modal__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.sc-modal__btn{
  height: 44px;
  border-radius: 12px;

  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;

  font-weight: 700;
  cursor: pointer;
}
.sc-modal__btn:hover{
  background: #f8fafc;
}

/* Close */
.sc-modal__btn--ghost{
  background: #f8fafc;
}

/* Remove one (accent) */
.sc-modal__btn--accent{
  border-color: rgba(37,99,235,.25);
  background: #2563eb;
  color: #ffffff;
}
.sc-modal__btn--accent:hover{
  background: #1d4ed8;
}

/* Remove all (danger) */
.sc-modal__btn--danger{
  grid-column: 1 / -1;
  border-color: rgba(239,68,68,.25);
  background: #ef4444;
  color: #ffffff;
}
.sc-modal__btn--danger:hover{
  background: #dc2626;
}

/* Focus */
.sc-modal__x:focus-visible,
.sc-modal__btn:focus-visible{
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 2px;
}

/* Mobile stack */
@media (max-width: 520px){
  .sc-modal__actions{ grid-template-columns: 1fr; }
  .sc-modal__btn--danger{ grid-column: auto; }
  .sc-modal__winner{ font-size: 22px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .sc-modal{ transition: none; }
}
