/* /assets/css/visit-popup.css — visit-intent prompt (home & lounge) */

.visit-popup.hidden {
  display: none;
}

.visit-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.visit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.visit-popup__dialog {
  position: relative;
  margin: 8vh auto 0;
  width: min(92vw, 420px);
  background: linear-gradient(165deg, #4a1a5c 0%, #391047 45%, #1a0f22 100%);
  color: #f4f4f4;
  border: 1px solid rgba(225, 185, 41, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  padding: 2.25rem 1.5rem 1.5rem;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: auto;
  text-align: center;
}

.visit-popup.show .visit-popup__backdrop {
  opacity: 1;
}

.visit-popup.show .visit-popup__dialog {
  transform: translateY(0);
  opacity: 1;
}

/* Override global `button` styles (gold CTA padding/background) */
.visit-popup .visit-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: inherit;
  font-weight: normal;
  line-height: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.visit-popup .visit-popup__close-icon {
  display: block;
  flex-shrink: 0;
}

.visit-popup .visit-popup__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(225, 185, 41, 0.45);
  color: #e1b929;
  transform: scale(1.05);
}

.visit-popup .visit-popup__close:focus-visible {
  outline: 2px solid #e1b929;
  outline-offset: 2px;
}

.visit-popup__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(90deg, #e1b929, #ffd76a);
}

.visit-popup__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #fff;
}

.visit-popup__text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.visit-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 400px) {
  .visit-popup__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.visit-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.visit-popup__btn--primary {
  flex: 1;
  color: #1a1a1a;
  background: linear-gradient(90deg, #e1b929, #ffd76a);
  box-shadow: 0 4px 14px rgba(225, 185, 41, 0.35);
}

.visit-popup__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 185, 41, 0.45);
  text-decoration: none;
  color: #1a1a1a;
}

.visit-popup__btn--secondary {
  flex: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.visit-popup__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.visit-popup__step.hidden {
  display: none !important;
}

.visit-popup__btn--full {
  width: 100%;
  margin-top: 0.25rem;
}

.visit-popup--fab-hint .visit-popup__backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.visit-popup--fab-hint .visit-popup__dialog {
  text-align: center;
}

.visit-popup__fab-pointer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1rem;
  color: #e1b929;
}

.visit-popup__fab-pointer-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 185, 41, 0.5);
  background: rgba(57, 16, 71, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd76a;
}

.visit-popup__fab-pointer-arrow {
  display: block;
  margin-top: 0.15rem;
  opacity: 0.9;
  animation: visit-popup-fab-nudge 1.4s ease-in-out infinite;
}

@keyframes visit-popup-fab-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-popup__fab-pointer-arrow {
    animation: none;
  }
}
