/* ================================================
   Promotional Modal Styles
   ================================================ */

.promotional-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.promotional-modal.closing {
  animation: fadeOut 0.3s ease-in-out;
}

.promotional-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.promotional-modal__content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease-in-out;
}

.promotional-modal.closing .promotional-modal__content {
  animation: scaleOut 0.3s ease-in-out;
}

.promotional-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promotional-modal__close:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: rotate(90deg) scale(1.1);
}

.promotional-modal__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promotional-modal__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scaleOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .promotional-modal__content {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 8px;
  }

  .promotional-modal__close {
    width: 35px;
    height: 35px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }

  .promotional-modal__image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .promotional-modal__content {
    max-width: 98%;
    max-height: 80vh;
  }

  .promotional-modal__close {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Prevent body scroll when modal is open */
body:has(.promotional-modal) {
  overflow: hidden;
}
