/* ═══════════════════════════════════════════════════════════════════
   VIZOMATE LUXURY CHRISTMAS & HOLIDAY THEME (High-Performance 60/120fps)
   ═══════════════════════════════════════════════════════════════════ */

/* 1. Snowfall Canvas Layer */
#christmas-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 38;
  opacity: 0.85;
  will-change: transform;
  contain: strict;
}

body.holiday-snow-off #christmas-snow-canvas {
  opacity: 0 !important;
  display: none !important;
}

/* 2. Santa Hat on VizoMate Brand Logo */
.brand-logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.santa-hat-svg {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 22px;
  pointer-events: none;
  z-index: 20;
  transform-origin: bottom right;
  animation: santaHatFloat 4s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 640px) {
  .santa-hat-svg {
    top: -12px;
    left: -11px;
    width: 32px;
    height: 30px;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.5));
  }
}

@keyframes santaHatFloat {
  0%, 100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-6deg) translate3d(0, -2px, 0);
  }
}

/* 3. Luxury Micro Holiday Lights Garland */
.holiday-garland {
  position: absolute;
  top: -3px;
  left: 24px;
  right: 24px;
  height: 6px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
  contain: layout style;
}

.holiday-light {
  width: 5px;
  height: 6px;
  border-radius: 50% 50% 40% 40%;
  opacity: 0.9;
  will-change: opacity, transform;
  animation: holidayTwinkle 2.8s ease-in-out infinite alternate;
}

.holiday-light:nth-child(4n+1) {
  background: #ff3344;
  box-shadow: 0 0 8px #ff3344;
  animation-delay: 0s;
}
.holiday-light:nth-child(4n+2) {
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
  animation-delay: 0.7s;
}
.holiday-light:nth-child(4n+3) {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation-delay: 1.4s;
}
.holiday-light:nth-child(4n+4) {
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  animation-delay: 2.1s;
}

@keyframes holidayTwinkle {
  0% { opacity: 0.4; transform: scale3d(0.88, 0.88, 1); }
  100% { opacity: 1; transform: scale3d(1.15, 1.15, 1); }
}

/* 4. Christmas Special Deal Card (Replaces Halloween) */
.holiday-deal-card {
  position: relative;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 15, 25, 0.92) 50%, rgba(15, 23, 42, 0.96) 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(239, 68, 68, 0.22) !important;
}

@media (min-width: 769px) {
  .holiday-deal-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
  }
  .holiday-deal-card:hover {
    border-color: rgba(0, 210, 255, 0.8) !important;
    transform: translate3d(0, -2px, 0) !important;
  }
}

.holiday-deal-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

/* 5. Holiday Shimmer Glow for CTAs (GPU Transform Only) */
.holiday-shimmer-btn {
  position: relative;
  overflow: hidden;
}

.holiday-shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translate3d(0, -120%, 0);
  animation: holidayShimmerSweep 6s infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes holidayShimmerSweep {
  0%, 75% { transform: rotate(25deg) translate3d(0, -120%, 0); }
  100% { transform: rotate(25deg) translate3d(0, 120%, 0); }
}

/* 6. Holiday Theme Toggle Pill (Bottom Left) */
.holiday-toggle-pill {
  position: fixed;
  bottom: 22px;
  left: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(11, 17, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  contain: layout paint;
}

@media (min-width: 769px) {
  .holiday-toggle-pill {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }
  .holiday-toggle-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(0, 210, 255, 0.4);
    transform: translate3d(0, -2px, 0);
  }
}

.holiday-toggle-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

body.holiday-snow-off .holiday-toggle-indicator {
  background: #64748b;
  box-shadow: none;
}

/* 7. Subtle Festive Ribbon on Pricing Cards */
.holiday-plan-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* 8. Mobile Zero-Lag Overrides (Pure 60/120fps Compositor Scrolling) */
@media (max-width: 768px) {
  .holiday-toggle-pill {
    bottom: 16px;
    left: 14px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .holiday-garland {
    left: 14px;
    right: 14px;
  }
  /* Prevent navbar backdrop-filter re-rasterization on every frame during scroll */
  .holiday-light {
    animation: none !important;
    opacity: 0.92 !important;
  }
  .santa-hat-svg {
    filter: none !important;
  }
}
