/* ============================================
   Christmas Theme - Festive Holiday Overlay
   ============================================ */

/* Christmas Toggle Button */
.christmas-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.christmas-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 30px rgba(196, 30, 58, 0.6);
}

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

/* Snowfall Effect */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

/* Christmas Lights */
.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
  display: none;
}

body.christmas-mode .christmas-lights {
  display: block;
}

.light {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 10px;
  animation: twinkle 1s infinite alternate;
}

.light:nth-child(1) { left: 5%; background: #ff0000; animation-delay: 0s; }
.light:nth-child(2) { left: 15%; background: #00ff00; animation-delay: 0.2s; }
.light:nth-child(3) { left: 25%; background: #0000ff; animation-delay: 0.4s; }
.light:nth-child(4) { left: 35%; background: #ffff00; animation-delay: 0.6s; }
.light:nth-child(5) { left: 45%; background: #ff00ff; animation-delay: 0.8s; }
.light:nth-child(6) { left: 55%; background: #00ffff; animation-delay: 1s; }
.light:nth-child(7) { left: 65%; background: #ff0000; animation-delay: 0.3s; }
.light:nth-child(8) { left: 75%; background: #00ff00; animation-delay: 0.5s; }
.light:nth-child(9) { left: 85%; background: #0000ff; animation-delay: 0.7s; }
.light:nth-child(10) { left: 95%; background: #ffff00; animation-delay: 0.9s; }

@keyframes twinkle {
  0% {
    opacity: 0.3;
    box-shadow: 0 0 5px currentColor;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 20px currentColor;
  }
}

/* Christmas Banner Enhancement */
body.christmas-mode .launch-banner {
  background: linear-gradient(135deg, #c41e3a 0%, #165b33 50%, #c41e3a 100%);
  background-size: 200% 200%;
  animation: christmasGradient 5s ease infinite;
  border-bottom: 3px solid rgba(255, 215, 0, 0.6);
}

@keyframes christmasGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Add snowflake to banner icon */
body.christmas-mode .launch-banner-icon i::before {
  content: "🎄";
}

/* Christmas mode for primary buttons */
body.christmas-mode .btn-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
  position: relative;
  overflow: hidden;
}

body.christmas-mode .btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

body.christmas-mode .btn-primary:hover {
  background: linear-gradient(135deg, #a81829 0%, #0f4226 100%);
}

/* Christmas Tagline */
.christmas-tagline {
  display: none;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #c41e3a, #ffd700, #165b33, #ffd700, #c41e3a);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: christmasGradientText 4s ease infinite;
  margin: 1rem 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.5px;
}

body.christmas-mode .christmas-tagline {
  display: block;
  animation: slideInBounce 1s ease-out, christmasGradientText 4s ease infinite;
}

@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes christmasGradientText {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Christmas badge in hero */
body.christmas-mode .badge {
  background: linear-gradient(135deg, #c41e3a, #165b33);
  color: white;
  border: 2px solid rgba(255, 215, 0, 0.6);
}

body.christmas-mode .badge::before {
  content: "🎅 ";
}

/* Feature cards Christmas theme */
body.christmas-mode .feature-icon {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(22, 91, 51, 0.1));
  border: 2px solid rgba(196, 30, 58, 0.2);
}

/* Pricing section Christmas enhancement */
body.christmas-mode .pricing-tier.featured {
  border-color: #c41e3a;
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.02), rgba(22, 91, 51, 0.02));
}

body.christmas-mode .pricing-badge {
  background: linear-gradient(135deg, #c41e3a, #165b33);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

/* Christmas Footer Enhancement */
body.christmas-mode .footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 50%, #1a2d1a 100%);
  position: relative;
}

body.christmas-mode .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c41e3a, #ffd700, #165b33, #ffd700, #c41e3a);
  background-size: 200% 100%;
  animation: christmasGradient 5s linear infinite;
}

/* Santa's sleigh animation */
.santa-sleigh {
  position: fixed;
  top: 20%;
  right: -200px;
  font-size: 3rem;
  z-index: 9999;
  animation: flySanta 20s linear infinite;
  pointer-events: none;
  opacity: 0;
}

body.christmas-mode .santa-sleigh {
  opacity: 1;
}

@keyframes flySanta {
  0% {
    right: -200px;
    top: 20%;
  }
  50% {
    right: 120%;
    top: 15%;
  }
  51% {
    right: -200px;
    top: 80%;
  }
  100% {
    right: 120%;
    top: 75%;
  }
}

/* Christmas Present Icon Bounce */
body.christmas-mode .material-icons {
  animation: none;
}

/* Festive Glow Effect */
body.christmas-mode {
  position: relative;
}

body.christmas-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Christmas Message Tooltip */
.christmas-message {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #333;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 250px;
  text-align: center;
  pointer-events: none;
}

.christmas-message.show {
  opacity: 1;
  transform: translateY(0);
}

.christmas-message::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .christmas-toggle {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .christmas-tagline {
    font-size: 1.125rem;
    padding: 0 1rem;
  }
  
  .snowflake {
    font-size: 0.8em;
  }
  
  .santa-sleigh {
    font-size: 2rem;
  }
  
  .christmas-message {
    bottom: 5rem;
    right: 1rem;
    max-width: 200px;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
  
  .light {
    width: 6px;
    height: 6px;
  }
}

/* Hide Christmas elements when not in Christmas mode */
body:not(.christmas-mode) .snowflakes,
body:not(.christmas-mode) .santa-sleigh,
body:not(.christmas-mode) .christmas-lights {
  display: none !important;
}

