/* ===== PREMIUM CHRISTMAS THEME - ENHANCED ===== */

/* Premium Christmas Color Palette */
:root {
  --accent: #8b2635 !important;
  --accent-hover: #6d1f2a !important;
  --gold: #d4a574 !important;
  --christmas-green: #1e4d2b !important;
  --emerald: #2d6a3e !important;
  --bg-cream: #faf8f5 !important;
  --snow-white: #f8f9fa !important;
  --copper: #b87333 !important;
  --candy-red: #dc143c;
  --candy-white: #fff5f5;
  --frost-blue: #e8f4fc;
  --holly-green: #228b22;
}

/* ===== ENHANCED SNOWFALL ANIMATION ===== */
.snowflake {
  position: fixed;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 1.2em;
  font-family: Arial, sans-serif;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(212, 165, 116, 0.3),
    0 0 15px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 9999;
  /* Use individual animation properties so inline style duration works */
  animation-name: snowfall-enhanced;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  will-change: transform;
}

@keyframes snowfall-enhanced {
  0% {
    transform: translateY(-100px) translateX(0) rotate(0deg);
    opacity: 1;
  }

  25% {
    transform: translateY(calc(25vh - 25px)) translateX(15px) rotate(90deg);
    opacity: 1;
  }

  50% {
    transform: translateY(calc(50vh)) translateX(-10px) rotate(180deg);
    opacity: 0.9;
  }

  75% {
    transform: translateY(calc(75vh + 25px)) translateX(20px) rotate(270deg);
    opacity: 0.6;
  }

  100% {
    transform: translateY(calc(100vh + 50px)) translateX(5px) rotate(360deg);
    opacity: 0;
  }
}

/* Sparkling snowflakes */
.snowflake.sparkle {
  animation-name: snowfall-enhanced, twinkle;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-duration: inherit, 1.5s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  }

  50% {
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.9));
  }
}

/* ===== ANIMATED CHRISTMAS STRING LIGHTS ===== */
.christmas-string-lights {
  position: fixed;
  top: 70px;
  /* Position below the navigation header */
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 100;
  /* Lower z-index so it doesn't block content */
  pointer-events: none;
  overflow: visible;
}

.string-lights-wire {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      #2d2d2d 5%,
      #2d2d2d 95%,
      transparent 100%);
}

.light-bulb {
  position: absolute;
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  top: 18px;
  animation: light-glow 2s ease-in-out infinite;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.light-bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #444;
  border-radius: 2px 2px 0 0;
}

.light-bulb.red {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #dc143c);
  color: #dc143c;
}

.light-bulb.green {
  background: radial-gradient(circle at 30% 30%, #7dd87d, #228b22);
  color: #228b22;
}

.light-bulb.gold {
  background: radial-gradient(circle at 30% 30%, #ffd700, #d4a574);
  color: #d4a574;
}

.light-bulb.blue {
  background: radial-gradient(circle at 30% 30%, #87ceeb, #4169e1);
  color: #4169e1;
}

.light-bulb:nth-child(4n+1) {
  animation-delay: 0s;
}

.light-bulb:nth-child(4n+2) {
  animation-delay: 0.5s;
}

.light-bulb:nth-child(4n+3) {
  animation-delay: 1s;
}

.light-bulb:nth-child(4n) {
  animation-delay: 1.5s;
}

@keyframes light-glow {

  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 8px currentColor, 0 0 15px currentColor;
  }

  50% {
    filter: brightness(1.4);
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
  }
}

/* ===== FESTIVE HEADER DECORATIONS ===== */
.festive-header-wrap {
  position: relative;
}

.holly-corner {
  position: absolute;
  font-size: 1.5em;
  animation: gentle-sway 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.holly-corner.top-left {
  top: -5px;
  left: -25px;
  transform: rotate(-15deg);
}

.holly-corner.top-right {
  top: -5px;
  right: -25px;
  transform: rotate(15deg) scaleX(-1);
}

@keyframes gentle-sway {

  0%,
  100% {
    transform: rotate(-15deg);
  }

  50% {
    transform: rotate(-10deg);
  }
}

/* ===== CANDY CANE BORDERS ===== */
.candy-cane-border {
  position: relative;
  border: 3px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    repeating-linear-gradient(45deg,
      #dc143c 0px,
      #dc143c 10px,
      #fff 10px,
      #fff 20px) border-box;
  border-radius: 12px;
}

/* ===== FROSTED GLASS EFFECT ===== */
.frosted-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.frosted-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232, 244, 252, 0.3) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

/* ===== FESTIVE RIBBON ACCENT ===== */
.festive-ribbon {
  position: relative;
  overflow: visible;
}

.festive-ribbon::before {
  content: '🎀';
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 1.8em;
  animation: ribbon-bounce 2s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(139, 38, 53, 0.3));
}

@keyframes ribbon-bounce {

  0%,
  100% {
    transform: rotate(-5deg) scale(1);
  }

  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

/* ===== CHRISTMAS ORNAMENT DECORATION ===== */
.christmas-ornament {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #d98b8b, #8b2635);
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 3px 6px rgba(139, 38, 53, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  margin: 0 6px;
  vertical-align: middle;
  animation: ornament-swing 4s ease-in-out infinite;
}

.christmas-ornament::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #d4a574, #b87333);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.christmas-ornament::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

@keyframes ornament-swing {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

/* Alternating ornament colors */
.christmas-ornament:nth-of-type(even) {
  background: radial-gradient(circle at 30% 30%, #7dd87d, #2d6a3e);
  box-shadow:
    0 3px 6px rgba(45, 106, 62, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* ===== HOLLY DECORATION ===== */
.holly-decoration {
  color: #2d6a3e;
  font-size: 1.5em;
  margin: 0 10px;
  display: inline-block;
  animation: sway 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(45, 80, 22, 0.3));
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

/* ===== FESTIVE SECTION ACCENT ===== */
.festive-accent {
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #8b2635, #2d6a3e, #d4a574) 1;
  padding-left: 20px;
}

/* ===== ENHANCED MENU CARD CHRISTMAS EFFECTS ===== */
.menu-item-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.menu-item-card:hover {
  box-shadow:
    0 25px 50px -12px rgba(139, 38, 53, 0.35),
    0 0 30px rgba(212, 165, 116, 0.15) !important;
  border-color: rgba(139, 38, 53, 0.2) !important;
  transform: translateY(-8px) scale(1.02);
}

/* ===== UPDATE SCROLL PROGRESS BAR ===== */
.scroll-progress {
  background: linear-gradient(90deg, #8b2635, #d4a574, #2d6a3e, #d4a574, #8b2635) !important;
  background-size: 200% 100%;
  animation: progress-shimmer 4s linear infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ===== TAB ACTIVE STATE ===== */
.tab-button.active {
  background: linear-gradient(135deg, #8b2635, #6d1f2a) !important;
  box-shadow: 0 4px 15px rgba(139, 38, 53, 0.4);
}

/* ===== FAB CHRISTMAS COLORS ===== */
.fab {
  background: linear-gradient(135deg, #8b2635, #d4a574) !important;
  box-shadow: 0 8px 20px rgba(139, 38, 53, 0.5) !important;
  position: relative;
  overflow: hidden;
}

.fab:hover {
  box-shadow: 0 12px 30px rgba(139, 38, 53, 0.7) !important;
  transform: translateY(-5px) scale(1.1);
}

/* ===== GOLDEN STAR PARTICLES ===== */
.golden-star {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-size: 0.8em;
  color: #d4a574;
  text-shadow: 0 0 10px #d4a574, 0 0 20px rgba(212, 165, 116, 0.5);
  animation: star-float 6s ease-in-out infinite;
}

@keyframes star-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

/* ===== GIFT BOX ICON FOR SPECIALS ===== */
.gift-icon {
  display: inline-block;
  animation: gift-wiggle 2s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes gift-wiggle {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

/* ===== AGGRESSIVE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

  /* Disable all AOS fade-in animations on mobile */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Hide string lights on mobile for performance */
  .christmas-string-lights {
    display: none !important;
  }

  /* Disable snowflake animations - show static snowflakes instead */
  .snowflake {
    animation: none !important;
    opacity: 0.4;
    font-size: 0.7em;
    text-shadow: none;
    filter: none;
    position: fixed;
    top: auto;
    /* Scatter them across the viewport */
  }

  /* Hide golden stars on mobile */
  #golden-stars-container {
    display: none !important;
  }

  /* Disable all decorative animations */
  .christmas-ornament,
  .holly-decoration,
  .festive-ribbon::before,
  .gift-icon {
    animation: none !important;
  }

  /* Simplify menu card effects */
  .menu-item-card {
    transition: none !important;
  }

  .menu-item-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  /* Disable scroll progress animation */
  .scroll-progress {
    animation: none !important;
    background: var(--accent) !important;
  }

  /* Disable feature card animations */
  .feature-card {
    transition: none !important;
  }

  .feature-card:hover {
    transform: none !important;
  }

  /* Simplify buttons */
  .btn-primary::before {
    display: none !important;
  }

  /* Disable gallery hover effects */
  .gallery-item::before {
    display: none !important;
  }

  .gallery-item img {
    transition: none !important;
  }

  /* Disable floating background elements */
  .float-element {
    animation: none !important;
  }

  /* Disable FAB pulse animation */
  .fab {
    animation: none !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .snowflake,
  .light-bulb,
  .christmas-ornament,
  .holly-decoration,
  .golden-star {
    animation: none !important;
  }
}