/**
 * Christmas Lights Styles
 * CSS for animated Christmas lights hung across the navigation bar
 */

.christmas-lights-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.christmas-lights-wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.christmas-light {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 0 0 40% 40%;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
  animation: twinkle 2s ease-in-out infinite;
}

.christmas-light::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.christmas-light::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Color variations for lights */
.christmas-light.red {
  background: linear-gradient(180deg, #ff4444, #cc0000);
  color: #ff4444;
}

.christmas-light.green {
  background: linear-gradient(180deg, #44ff44, #00cc00);
  color: #44ff44;
}

.christmas-light.blue {
  background: linear-gradient(180deg, #4444ff, #0000cc);
  color: #4444ff;
}

.christmas-light.yellow {
  background: linear-gradient(180deg, #ffff44, #cccc00);
  color: #ffff44;
}

.christmas-light.white {
  background: linear-gradient(180deg, #ffffff, #cccccc);
  color: #ffffff;
}

.christmas-light.orange {
  background: linear-gradient(180deg, #ff9944, #cc6600);
  color: #ff9944;
}

/* Twinkling animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.5;
    filter: brightness(0.6);
  }
}

/* Staggered animation delays for random twinkling */
.christmas-light:nth-child(2n) {
  animation-delay: 0.3s;
}

.christmas-light:nth-child(3n) {
  animation-delay: 0.6s;
}

.christmas-light:nth-child(4n) {
  animation-delay: 0.9s;
}

.christmas-light:nth-child(5n) {
  animation-delay: 1.2s;
}

.christmas-light:nth-child(7n) {
  animation-delay: 1.5s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .christmas-light {
    animation: none;
    opacity: 0.8;
  }
}

/* Adjust positioning for the nav container */
.cd-nav {
  position: relative;
}

.cd-nav-inner {
  position: relative;
  z-index: 2;
}
