/* Promotional Popup Styling */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.promo-overlay.show {
  opacity: 1;
  display: flex !important;
}

.promo-popup {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: linear-gradient(
    135deg,
    var(--navbar-bg-color),
    var(--section-bg-color)
  );
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s ease;
}

.promo-overlay.show .promo-popup {
  transform: translateY(0);
  opacity: 1;
}

.promo-popup::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.promo-content {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--navbar-bg-color),
    var(--section-bg-color)
  );
  margin: 1px;
  border-radius: 20px;
  padding: 40px 30px;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.promo-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.promo-close:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.promo-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent-color);
  color: #240046;
  font-weight: 700;
  padding: 5px 15px;
  font-size: 14px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(255, 158, 0, 0.3);
  z-index: 5;
}

.promo-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-subheading {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
  font-weight: 400;
}

.promo-discount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin: 15px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.promo-discount::after {
  content: "OFF";
  position: absolute;
  top: 0;
  right: -40px;
  font-size: 1rem;
  background: var(--accent-color);
  color: var(--navbar-bg-color);
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 700;
}

.promo-description {
  margin: 15px 0 25px;
  font-size: 1rem;
  opacity: 0.9;
}

.promo-code {
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 15px 0;
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.promo-code::after {
  content: "SALIN";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.promo-code:hover::after {
  opacity: 1;
}

.promo-timer {
  margin: 20px 0;
}

.promo-timer-heading {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.promo-timer-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.timer-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 60px;
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-color);
}

.timer-label {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.promo-button {
  background: var(--accent-color);
  color: var(--navbar-bg-color);
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.promo-button:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.promo-footer {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .promo-popup {
    width: 95%;
  }

  .promo-heading {
    font-size: 1.8rem;
  }

  .promo-subheading {
    font-size: 1rem;
  }

  .promo-discount {
    font-size: 2.5rem;
  }

  .timer-item {
    min-width: 50px;
    padding: 6px 8px;
  }

  .timer-value {
    font-size: 1.2rem;
  }
}
