/* ===================================
   Popup Banner - IGNITE GYM
   =================================== */

/* Overlay */
.ignite-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ignite-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.ignite-popup-modal {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
}

.ignite-popup-overlay.is-visible .ignite-popup-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.ignite-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ignite-popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.ignite-popup-close::before,
.ignite-popup-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
}

.ignite-popup-close::before {
  transform: rotate(45deg);
}

.ignite-popup-close::after {
  transform: rotate(-45deg);
}

/* Banner image area */
.ignite-popup-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ignite-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area */
.ignite-popup-content {
  padding: 24px 24px 28px;
  text-align: center;
}

.ignite-popup-main-text {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin: 0 0 8px;
}

.ignite-popup-sub-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* CTA Button */
.ignite-popup-cta {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  padding: 16px 24px;
  background: #e5e876;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(229, 232, 118, 0.4);
}

.ignite-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 232, 118, 0.6);
  color: #222;
}

/* Accent line */
.ignite-popup-accent {
  width: 40px;
  height: 3px;
  background: #e5e876;
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* Body scroll lock */
body.ignite-popup-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
  .ignite-popup-modal {
    width: 92%;
    border-radius: 12px;
  }

  .ignite-popup-main-text {
    font-size: 17px;
  }

  .ignite-popup-sub-text {
    font-size: 13px;
  }

  .ignite-popup-cta {
    font-size: 14px;
    padding: 14px 20px;
  }

  .ignite-popup-content {
    padding: 20px 16px 24px;
  }
}
