/* ============================================
   Promotional Banner Popup — candy.ai style
   ============================================ */

/* Backdrop blur — transparent so page content shows through blurred */
#promoBannerModal {
  background: rgba(0, 0, 0, 0.35) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
#promoBannerModal .modal-backdrop { display: none !important; }

/* Kill Bootstrap's full-height scroll container — just center the card */
#promoBannerModal.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Dialog — float centered, sized to content */
.promo-banner-dialog {
  max-width: 640px;
  width: calc(100% - 32px);
  margin: 0 !important;
  padding: 0;
  min-height: 0 !important;
  animation: promoBannerPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes promoBannerPop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card */
.promo-banner-content {
  background: #1c1c28;
  border: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Layout */
.promo-banner-layout {
  display: flex;
  min-height: 0;
}

/* ---------- Image side ---------- */
.promo-banner-image-side {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
}
.promo-banner-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Text side ---------- */
.promo-banner-text-side {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* subtle gradient that bleeds from the image */
  background:
    linear-gradient(105deg,
      rgba(28, 28, 40, 0.35) 0%,
      rgba(28, 28, 40, 0.88) 30%,
      rgba(28, 28, 40, 0.98) 100%);
}

/* ---------- Close button ---------- */
.promo-banner-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.promo-banner-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Badge ---------- */
.promo-banner-badge {
  display: inline-block;
  align-self: flex-start;
  background: #e74c3c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* ---------- Title / Subtitle ---------- */
.promo-banner-title {
  color: #e74c3c;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.18;
  margin: 0 0 4px;
}
.promo-banner-subtitle {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

/* ---------- Description ---------- */
.promo-banner-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 18px;
}

/* ---------- Countdown ---------- */
.promo-banner-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 8px 18px;
  margin-bottom: 18px;
  width: fit-content;
  align-self: center;
}
.promo-countdown-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-style: italic;
  margin-right: 4px;
}
.promo-countdown-units {
  display: flex;
  gap: 6px;
}
.promo-countdown-block {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.promo-countdown-num {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 26px;
  text-align: center;
}
.promo-countdown-unit {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
}

/* ---------- CTA Button ---------- */
.promo-banner-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  border-radius: 26px;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none !important;
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b81 100%);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.promo-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(231, 76, 60, 0.45);
  color: #fff;
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
  .promo-banner-dialog {
    max-width: 94vw;
    width: calc(100% - 20px);
    padding: 0;
  }
  .promo-banner-layout {
    flex-direction: column;
    min-height: auto;
  }
  .promo-banner-image-side {
    flex: none;
    height: 220px;
  }
  .promo-banner-text-side {
    padding: 22px 18px;
    background: rgba(28, 28, 40, 0.96);
  }
  .promo-banner-title {
    font-size: 1.3rem;
  }
  .promo-banner-subtitle {
    font-size: 1.05rem;
  }
  .promo-banner-countdown {
    align-self: stretch;
    justify-content: center;
  }
}
