/* Promo Banner Styles - Part of Header */
.promo-banner {
  background: linear-gradient(135deg, #b5abf7 0%, #010105 100%);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
  overflow: hidden;
  animation: bannerPulse 3s ease-in-out infinite;
}

/* Shimmer effect overlay */
.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 4s ease-in-out infinite;
  z-index: 1;
}

/* Subtle pulse animation for the banner */
@keyframes bannerPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(181, 171, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(181, 171, 247, 0.5);
  }
}

/* Shimmer sweep effect */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.promo-banner__content {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 580px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  z-index: 2;
  animation: contentFloat 6s ease-in-out infinite;
}

.promo-banner__icon {
  display: flex;
  position: relative;
  align-items: center;
  flex-shrink: 0;
}

.promo-banner__icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  animation: lightningPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.promo-banner__icon img {
  width: 44px;
  height: 24px;
  animation: giftGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}
.promo-banner__text {
  color: #ffffff;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  flex: 1;
  min-width: 200px;
  animation: textGlow 2.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.promo-banner__text--mobile {
  display: none;
}

.promo-banner__text--desktop {
  display: inline;
}

.promo-banner__button {
  border: 1px solid #fff;
  padding: 2px 14px;
  border-radius: 50px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  animation: buttonPulse 3s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promo-banner__button:hover {
  background: #f5f5f5;
  color: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-banner__button:focus {
  outline: none;
  box-shadow: none;
}

/* Make entire header with promo banner sticky */

/* Ensure promo banner is part of sticky header */
.mono-header .promo-banner {
  position: relative;
  z-index: 1001;
}

/* Workspace page should show the promo banner; rule removed */

/* Responsive Design */
@media (max-width: 768px) {
  .promo-banner__content {
    flex-direction: row;
    gap: 8px;
    text-align: center;
    flex-wrap: nowrap;
  }
  
  .promo-banner__text {
    /* font-size: 14px; */
    min-width: auto;
    flex: 1;
  }
  
  .promo-banner__text--mobile {
    display: inline;
  }
  
  .promo-banner__text--desktop {
    display: none;
  }
  
  .promo-banner__button {
    padding: 2px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .promo-banner {
    padding: 8px 0;
  }
  
  .promo-banner::before {
    display: none;
  }
  
  .promo-banner__content {
    gap: 6px;
    padding: 0 10px;
  }
  
  /* .promo-banner__text {
    font-size: 13px;
  } */
  
  .promo-banner__button {
    padding: 2px 10px;
    font-size: 12px;
  }
  
  .promo-banner__icon svg,
  .promo-banner__icon img {
    width: 20px;
    height: 20px;
  }
}
  
  .promo-banner__content {
    padding: 0 15px;
    gap: 8px;
  }
  
  /* .promo-banner__text {
    font-size: 13px;
    line-height: 1.3;
  } */
  
.promo-banner__icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  animation: lightningPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}
/* Lightning Icon Animation */
@keyframes lightningPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  }
}

/* Sparkle effect for extra attention */
.promo-banner__icon::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

.promo-banner__icon::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  animation: sparkle 1.8s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.promo-banner__icon svg {
  animation: elegantGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes elegantGlow {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }
  25% {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  }
  50% {
    transform: scale(1.1) rotate(0deg);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 1));
  }
  75% {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }
}

/* Gift Icon Animation */
@keyframes giftGlow {
  0% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  }
  25% {
    transform: scale(1.1) rotateY(-5deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }
  50% {
    transform: scale(1.15) rotateY(0deg);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  }
  75% {
    transform: scale(1.1) rotateY(5deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }
  100% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  }
}

/* Content floating animation */
@keyframes contentFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1px);
  }
}

/* Text glow animation */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

/* Button pulse animation */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
  }
}
