/* ============================================
   Christmas Theme Styles for Urbex Planet
   Festive animations and atmospheric effects
   ============================================ */

:root {
  --christmas-red: #D42426;
  --christmas-green: #2F5233;
  --christmas-gold: #FFD700;
  --christmas-white: #FFFFFF;
  --christmas-dark-green: #1A472A;
  --christmas-glow: rgba(255, 215, 0, 0.2);
}

/* ============================================
   Christmas Banner/Toast Notification
   ============================================ */
.christmas-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--christmas-dark-green), #0f2b1d);
  border: 2px solid var(--christmas-red);
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(212, 36, 38, 0.3);
  animation: christmas-banner-appear 0.8s ease-out;
  max-width: 320px;
  text-align: left;
  font-weight: 500;
  pointer-events: auto;
}

.christmas-banner .christmas-icon {
  font-size: 1.2rem;
  margin-right: 6px;
}

.christmas-banner .close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

.christmas-banner .close-btn:hover {
  opacity: 1;
}

@keyframes christmas-banner-appear {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Christmas Lights
   ============================================ */
.christmas-lights-strand {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  overflow: hidden;
}

.christmas-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  margin-top: -5px;
  animation: christmas-light-twinkle 1.5s infinite alternate;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.christmas-light:nth-child(odd) {
  animation-duration: 1.8s;
  background-color: var(--christmas-red);
  box-shadow: 0 2px 10px rgba(212, 36, 38, 0.8);
}

.christmas-light:nth-child(even) {
  animation-duration: 1.2s;
  background-color: var(--christmas-green);
  box-shadow: 0 2px 10px rgba(47, 82, 51, 0.8);
}

.christmas-light:nth-child(3n) {
  background-color: var(--christmas-gold);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.8);
}

@keyframes christmas-light-twinkle {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   Snow Particles
   ============================================ */
.christmas-snow {
  position: fixed;
  top: -10px;
  color: white;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: christmas-snow-fall linear infinite;
}

@keyframes christmas-snow-fall {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   Theme Color Overrides
   ============================================ */
body.christmas-theme {
  background: linear-gradient(180deg, #0a0a0a 0%, #0f1f15 100%);
  background-attachment: fixed;
}

.christmas-theme nav.navbar {
  border-bottom: 1px solid rgba(212, 36, 38, 0.3);
  box-shadow: 0 4px 20px rgba(47, 82, 51, 0.2);
}

.christmas-theme .hero-gradient {
  background: linear-gradient(135deg, var(--christmas-dark-green), #0a0a0a, var(--christmas-red)) !important;
}

.christmas-theme .btn-primary {
  background-color: var(--christmas-red);
  border-color: var(--christmas-red);
}

.christmas-theme .btn-primary:hover {
  background-color: #b01c1e;
  box-shadow: 0 0 15px rgba(212, 36, 38, 0.5);
}

.christmas-theme .badge.christmas-badge {
  background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
  border: 1px solid var(--christmas-gold);
  color: white;
}

/* ============================================
   New Year's Eve Fireworks
   ============================================ */
.firework {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: firework-explode 1s ease-out forwards;
}

@keyframes firework-explode {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0px rgba(255,255,255,1); }
  100% { transform: scale(20); opacity: 0; box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .christmas-banner {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-snow,
  .christmas-light,
  .firework {
    animation: none;
  }
}
