/* ====================================== */
/* FESTIVE DECORATIONS - BUNTING & LANTERNS */
/* ====================================== */
.festive-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  pointer-events: none;
  z-index: 799;
  display: none;
  overflow: hidden;
}

.festive-decorations.active {
  display: block;
}

/* Bunting Container */
.bunting-container {
  position: relative;
  width: 100%;
  height: 200px;
}

/* Bunting Flags String */
.bunting-flags {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Bunting Flag */
.bunting-flag {
  width: 18px;
  height: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  border-radius: 2px;
  position: relative;
  animation: buntingSway 4s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bunting-flag.flag-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  animation-delay: 0s;
}

.bunting-flag.flag-red {
  background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
  animation-delay: 0.2s;
}

.bunting-flag.flag-yellow {
  background: linear-gradient(135deg, #b45309 0%, #fbbf24 100%);
  animation-delay: 0.4s;
}

.bunting-flag.flag-green {
  background: linear-gradient(135deg, #15803d 0%, #4ade80 100%);
  animation-delay: 0.6s;
}

.bunting-flag.flag-purple {
  background: linear-gradient(135deg, #6b21a8 0%, #c084fc 100%);
  animation-delay: 0.8s;
}

@keyframes buntingSway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(2px); }
}

/* Hanging Lanterns */
.lantern {
  position: absolute;
  top: 100px;
  width: 35px;
  height: 50px;
  border-radius: 50% 50% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: lanternSway 3s ease-in-out infinite;
  overflow: hidden;
}

.lantern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

.lantern::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 8px;
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.8), transparent);
  border-radius: 50%;
  filter: blur(3px);
  z-index: -1;
}

/* Lantern Colors and Positions */
.lantern-1 {
  left: 10%;
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
  animation-delay: 0s;
  animation-duration: 3.5s;
}

.lantern-2 {
  left: 30%;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  animation-delay: 0.3s;
  animation-duration: 3.2s;
}

.lantern-3 {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fca5a5 0%, #dc2626 100%);
  animation-delay: 0.6s;
  animation-duration: 3.7s;
}

.lantern-4 {
  left: 70%;
  background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%);
  animation-delay: 0.9s;
  animation-duration: 3.3s;
}

.lantern-5 {
  left: 85%;
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%);
  animation-delay: 0.4s;
  animation-duration: 3.6s;
}

@keyframes lanternSway {
  0%, 100% {
    transform: translateY(0) rotateZ(-1deg);
    filter: brightness(1);
  }
  25% {
    transform: translateY(-8px) rotateZ(0.5deg);
    filter: brightness(1.1);
  }
  50% {
    transform: translateY(0) rotateZ(1deg);
    filter: brightness(0.95);
  }
  75% {
    transform: translateY(-6px) rotateZ(-0.5deg);
    filter: brightness(1.05);
  }
}

/* Confetti Sparkles */
.confetti {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffed4e, #fbbf24);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: confettiFall 6s linear infinite;
  opacity: 0.8;
}

.confetti-1 {
  left: 15%;
  top: 80px;
  animation-delay: 0s;
}

.confetti-2 {
  left: 25%;
  top: 120px;
  animation-delay: 1s;
}

.confetti-3 {
  left: 35%;
  top: 60px;
  animation-delay: 0.5s;
}

.confetti-4 {
  left: 55%;
  top: 100px;
  animation-delay: 1.5s;
}

.confetti-5 {
  left: 65%;
  top: 70px;
  animation-delay: 0.8s;
}

.confetti-6 {
  left: 75%;
  top: 110px;
  animation-delay: 1.2s;
}

.confetti-7 {
  left: 85%;
  top: 90px;
  animation-delay: 0.3s;
}

.confetti-8 {
  left: 90%;
  top: 130px;
  animation-delay: 1.8s;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(300px) rotateZ(360deg);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .bunting-flags {
    padding: 0 20px;
  }

  .bunting-flag {
    width: 14px;
    height: 22px;
  }

  .lantern {
    width: 28px;
    height: 40px;
  }

  .lantern-1 { left: 8%; }
  .lantern-2 { left: 28%; }
  .lantern-3 { left: 50%; transform: translateX(-50%); }
  .lantern-4 { left: 72%; }
  .lantern-5 { left: 90%; }
}

@media (max-width: 480px) {
  .bunting-flags {
    padding: 0 10px;
  }

  .bunting-flag {
    width: 12px;
    height: 18px;
  }

  .lantern {
    width: 24px;
    height: 34px;
  }

  .lantern-1 { left: 5%; }
  .lantern-2 { left: 25%; }
  .lantern-3 { left: 50%; transform: translateX(-50%); }
  .lantern-4 { left: 75%; }
  .lantern-5 { left: 92%; }
}
