@import url("styles.css");

.slot-warning {
  position: absolute;
  background: var(--popup-warning-bg);
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  /* transform: translate(30px, 5px); */
  opacity: 0;
  animation: slotFadeIn 0.3s ease forwards, slotPulse 1.5s ease-in-out infinite;
}

.slot-warning::after {
  content: "";
  position: absolute;
  top: -5px; /* стрілка тепер вгорі тултіпа */
  left: 40px; /* змісти, щоб центрувалась відносно тексту */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #f09308; /* колір стрілки як фон тултіпа */
}


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

@keyframes slotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 147, 8, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(240, 147, 8, 0); }
}

/* mobile */

.mobile-slot-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--popup-warning-bg);
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-width: 80%;
  max-width: 90%;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  animation: fadeSlideDown 0.3s ease forwards;
  backdrop-filter: blur(4px);
}

.mobile-slot-toast.hide {
  opacity: 0;
  transform: translate(-50%, -20px);
  transition: all 0.4s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translate(-50%, -25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


