@charset "UTF-8";

/**
 * Festive Seasons FX - Master Frontend Stylesheet v2.4.0
 * Custom Crafted for LekhaWekha.com
 * Features:
 * - Diwali Mode:
 *   1. Auspicious Animated Diya (44px glowing gem) on the LEFT side of LekhaWekha logo
 *   2. Floating Luxury Happy Diwali Greeting Dock (bottom-right glassmorphic banner)
 *   3. Transparent Click-to-Blast Festive Fireworks Canvas Overlay
 * - Christmas Mode:
 *   1. Animated Christmas Hat (IconScout #5624261) mirrored & naturally fitted on letter 'L'
 *   2. Scroll-Driven Flying Santa Sleigh with galloping reindeer, golden stardust & falling gifts
 *   3. Atmospheric gentle snowfall
 *   (Trees removed from header completely)
 * - Strictly Desktop Only (All effects hidden on Mobile & Tablet <= 1024px)
 */

/* ==========================================================================
   0. HIDE ALL OLD UNAPPROVED/LEGACY ELEMENTS & STRICT SEASONAL ENFORCEMENT
   ========================================================================== */
.festive-lantern,
.festive-christmas-garland,
.festive-diwali-toran,
.festive-top-decoration,
.festive-top-marigold,
.festive-dwar-header,
.festive-dwar-left,
.festive-dwar-right,
.festive-anar,
.festive-anar-left,
.festive-anar-right,
.festive-logo-cracker-canvas,
.festive-diwali-badge,
.festive-header-tree,
.festive-tree-left,
.festive-tree-right {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Strict Mode Isolation: In Christmas mode, NEVER show Diwali elements */
body.festive-season-christmas .festive-diwali-dock,
.festive-season-christmas .festive-diwali-dock,
body.festive-season-christmas .festive-logo-diya,
.festive-season-christmas .festive-logo-diya,
body.festive-season-christmas .festive-diwali-lottie,
.festive-season-christmas .festive-diwali-lottie,
body.festive-season-christmas #festive-fireworks-canvas,
.festive-season-christmas #festive-fireworks-canvas {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Strict Mode Isolation: In Diwali mode, NEVER show Christmas elements */
body.festive-season-diwali #festive-santa-sleigh,
body.festive-season-diwali .festive-santa-hat-animated,
body.festive-season-diwali .festive-santa-hat,
body.festive-season-diwali #festive-canvas,
body.festive-season-diwali .festive-stardust,
body.festive-season-diwali .festive-dropped-gift {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   1. LOGO CONTAINER: 100% UNBLOCKED & PROPERLY ALIGNED
   ========================================================================== */
.festive-logo-anchor,
.festive-logo-target {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  vertical-align: middle !important;
  overflow: visible !important;
  text-decoration: none !important;
  gap: 10px !important;
}

/* Logo Image Stays 100% Visible, Crisp, and Completely Uncovered */
.festive-logo-target > img:not(.festive-santa-hat-animated):not(.festive-diwali-lottie):not(.festive-header-tree),
#lw-header .lw-logo img:not(.festive-santa-hat-animated):not(.festive-diwali-lottie):not(.festive-header-tree),
.lw-logo img:not(.festive-santa-hat-animated):not(.festive-diwali-lottie):not(.festive-header-tree),
.lwf-logo-link img:not(.festive-santa-hat-animated):not(.festive-diwali-lottie):not(.festive-header-tree),
.lwf-logo-link img.lwf-logo {
  position: relative !important;
  z-index: 5 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 !important;
}

/* ==========================================================================
   2. DIWALI MODE: AUSPICIOUS DIYA ON LEFT OF LOGO (100% Full Unclipped Body)
   ========================================================================== */
.festive-logo-diya {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 48px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  background: radial-gradient(circle at 50% 65%, rgba(255, 179, 0, 0.22) 0%, transparent 75%) !important;
  filter: drop-shadow(0 2px 10px rgba(255, 171, 0, 0.65)) drop-shadow(0 0 16px rgba(124, 82, 200, 0.5)) !important;
  vertical-align: middle !important;
  pointer-events: none !important;
  margin-right: 4px !important;
  z-index: 6 !important;
}

.festive-logo-diya img {
  position: absolute !important;
  top: -49px !important;
  left: -26px !important;
  width: 182px !important;
  height: 182px !important;
  max-width: none !important;
  pointer-events: none !important;
}

/* Footer Diya sizing */
footer .festive-logo-diya,
.lwf-logo-link .festive-logo-diya {
  width: 40px !important;
  height: 44px !important;
}

footer .festive-logo-diya img,
.lwf-logo-link .festive-logo-diya img {
  top: -45px !important;
  left: -24px !important;
  width: 166px !important;
  height: 166px !important;
}

/* ==========================================================================
   3. DIWALI MODE: LW PULSE FLOATING HAPPY DIWALI CAPSULE (Left-Middle Sliding)
   ========================================================================== */
.festive-diwali-dock {
  position: fixed !important;
  top: 50% !important;
  bottom: auto !important;
  left: 24px !important;
  right: auto !important;
  z-index: 99995 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transform: translate(-150%, -50%) !important;
  opacity: 0 !important;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease !important;
  pointer-events: auto !important;
  user-select: none !important;
  padding: 0 !important;
}

.festive-diwali-dock.dock-visible {
  transform: translate(0, -50%) !important;
  opacity: 1 !important;
}

.dock-pulse-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(72, 22, 122, 0.62) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.85) !important;
  border-radius: 9999px !important;
  padding: 10px 22px 10px 18px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.35) !important;
  position: relative !important;
  user-select: none !important;
}

.dock-diya {
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.75)) !important;
}

.dock-diya svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.dock-text-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.dock-text-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Montserrat", sans-serif !important;
  font-size: 16.5px !important;
  font-weight: 900 !important;
  letter-spacing: 1.8px !important;
  color: #fde047 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 14px rgba(253, 224, 71, 0.65), 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.15 !important;
}

.dock-text-title .dock-sparkle {
  color: #f6b024 !important;
  font-size: 14px !important;
  filter: drop-shadow(0 0 6px #fde047) !important;
  display: inline-block !important;
  animation: festiveSparkleTwinkle 1.8s ease-in-out infinite alternate !important;
}

.dock-text-title .dock-sparkle.right {
  animation-delay: 0.9s !important;
}

@keyframes festiveSparkleTwinkle {
  0% { transform: scale(0.85) rotate(-5deg); opacity: 0.7; }
  100% { transform: scale(1.18) rotate(10deg); opacity: 1; }
}

.dock-text-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12.8px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.35px !important;
  margin-top: 3px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  line-height: 1.2 !important;
}

.dock-close-btn {
  position: absolute !important;
  top: -5px !important;
  right: 14px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: rgba(26, 10, 48, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #e2e8f0 !important;
  font-size: 10px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  z-index: 10 !important;
}

.dock-close-btn:hover {
  background: rgba(239, 68, 68, 0.95) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: scale(1.15) !important;
}

/* ==========================================================================
   4. DIWALI MODE: TRANSPARENT CLICK-TO-BLAST FIREWORKS CANVAS
   ========================================================================== */
#festive-fireworks-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 99997 !important;
}

/* ==========================================================================
   5. CHRISTMAS MODE: ANIMATED LOTTIE HAT (#5624261) ON LOGO 'L'
   ========================================================================== */
.festive-santa-hat-animated,
.festive-logo-target img.festive-santa-hat-animated {
  position: absolute !important;
  top: -14px !important;
  left: 16px !important;
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  z-index: 100 !important;
  pointer-events: none !important;
  display: block !important;
  transform: rotate(8deg) !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) !important;
}

/* Specific crown alignment for LekhaWekha letter 'L' (mirrored and fitted onto 'L' stem) */
#lw-header .lw-logo img.festive-santa-hat-animated,
#lw-header .lw-logo .festive-santa-hat-animated,
#lw-header .festive-santa-hat-animated,
.lw-logo img.festive-santa-hat-animated,
.lw-logo.festive-logo-target .festive-santa-hat-animated,
.lwf-logo-link img.festive-santa-hat-animated,
.lwf-logo-link .festive-santa-hat-animated,
footer .festive-logo-target img.festive-santa-hat-animated {
  position: absolute !important;
  top: -11px !important;
  left: 7px !important;
  width: 34px !important;
  height: 34px !important;
  transform: scaleX(-1) rotate(-4deg) !important;
  transform-origin: center center !important;
  z-index: 100 !important;
}

/* ==========================================================================
   6. CHRISTMAS MODE: SCROLL-DRIVEN ZIGZAG FLYING SANTA SLEIGH & STARDUST
   ========================================================================== */
#festive-santa-sleigh {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 290px !important;
  height: auto !important;
  z-index: 99998 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transform-origin: center center !important;
  will-change: transform !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)) !important;
}

/* Magical Stardust Trail behind Galloping Reindeer and Sleigh */
.festive-stardust {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99997 !important;
  border-radius: 50% !important;
  animation: festiveStardustFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes festiveStardustFade {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x, -20px), var(--drift-y, 20px)) scale(0.2);
  }
}

/* Dropped Christmas Gifts Falling from Sleigh */
.festive-dropped-gift {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99996 !important;
  width: 24px !important;
  height: 24px !important;
  animation: festiveGiftFall 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)) !important;
}

@keyframes festiveGiftFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(calc(var(--drift-x, 0px) * 0.35), 70px) scale(0.95) rotate(16deg);
  }
  60% {
    opacity: 0.95;
    transform: translate(calc(var(--drift-x, 0px) * 0.75), 210px) scale(0.85) rotate(-14deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--drift-x, 0px)), 390px) scale(0.6) rotate(35deg);
  }
}

/* ==========================================================================
   7. CHRISTMAS SNOWFALL FULL-SCREEN CANVAS
   ========================================================================== */
#festive-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 999990 !important;
}

/* ==========================================================================
   8. DESKTOP-ONLY OPTIMIZATION (Strictly hidden on Mobile & Tablet <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  #festive-canvas,
  #festive-santa-sleigh,
  #festive-fireworks-canvas,
  .festive-header-tree,
  .festive-diwali-dock,
  .festive-logo-diya,
  .festive-diwali-lottie,
  .festive-santa-hat,
  .festive-santa-hat-animated {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}
