/* =========================================
   CHRISTMAS SNOW + LIGHTS EFFECTS
   ========================================= */

/* -----------------------------------------
   SNOW AREA (covers header + ticker only)
   ----------------------------------------- */
.xmas-snow-area {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9990; /* Below flakes, above background */
}

/* -----------------------------------------
   SNOWFLAKES
   ----------------------------------------- */
.xmas-snowflake {
  position: absolute;
  /* Start just above the snow area */
  top: -10%;
  pointer-events: none;
  z-index: 9999;
  animation-name: snowFall, snowDrift;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
}

/* Vertical fall across entire snow area */
@keyframes snowFall {
  0% {
    top: -10%;   /* slightly above top edge */
  }
  100% {
    top: 100%;   /* just beyond bottom edge of snow area */
  }
}

/* Gentle sideways drifting */
@keyframes snowDrift {
  0% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(-10px);
  }
}

/* =========================================
   CHRISTMAS LIGHTS
   ========================================= */
.xmas-lights {
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;      /* ← full width */
  display: flex;
  justify-content: space-evenly;  /* ← spread bulbs evenly */
  pointer-events: none;
  z-index: 10000;
}


.xmas-lights::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  border-bottom: 2px solid #235015ff;
  border-radius: 0 0 100px 100px;
  opacity: 0.5;
}


/* Bulbs */
.xmas-light-bulb {
  width: 14px;
  height: 22px;
  border-radius: 50% 50% 60% 60%;
  background-color: #ffffff;
  transform-origin: top center;
  pointer-events: none;
  animation: xmas-light-twinkle 2.4s infinite alternate ease-in-out;
}

/* Individual colours */
.xmas-light-bulb[data-colour='red'] {
  background-color: #ff4b4b;
}
.xmas-light-bulb[data-colour='green'] {
  background-color: #3bd262;
}
.xmas-light-bulb[data-colour='yellow'] {
  background-color: #ffe066;
}
.xmas-light-bulb[data-colour='blue'] {
  background-color: #5aa9ff;
}
.xmas-light-bulb[data-colour='orange'] {
  background-color: #ff9b42;
}
.xmas-light-bulb[data-colour='purple'] {
  background-color: #c179ff;
}

/* Thin blanket of snow above the lights */
body.xmas-mode .xmas-lights::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 6px;       /* your chosen thinness */

  background: #ffffff;
  border-radius: 0 0 10px 10px;  /* soft bottom curve */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;

  pointer-events: none;
  z-index: 5000;

background-image:
  repeating-linear-gradient(
    to right,
    rgba(255,255,255,1) 0px,
    rgba(255,255,255,1) 10px,
    rgba(248,248,248,1) 13px,
    rgba(255,255,255,1) 29px
  ),
  repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.95) 0px,
    rgba(255,255,255,0.95) 18px,
    rgba(245,245,245,1) 19px,
    rgba(255,255,255,1) 27px
  ),
  repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.92) 0px,
    rgba(255,255,255,0.92) 25px,
    rgba(240,240,240,1) 26px,
    rgba(255,255,255,1) 34px
  );

}





@keyframes xmas-light-twinkle {
  0% {
    opacity: 0.6;
    transform: translateY(0) rotate(-3deg);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(2px) rotate(2deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0) rotate(-2deg);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
  }
}

/* =========================================
   SANTA HAT ON LOGO
   ========================================= */

/* Only show hat in xmas mode */
/* Santa Hat – Responsive Scaling Version */
body.xmas-mode .logo {
  position: relative;  /* anchor point for the hat */
  display: inline-block;
}

body.xmas-mode .logo::after {
  content: "";
  position: absolute;

  /* Position relative to the logo size */
  top: -18%;
  right: 55%;

  /* Hat size scales with the logo */
  width: 35%;
  height: 35%;

  background: url("/images/Misc/santa-hat.png") no-repeat center/contain;

  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 9999;
}

