/* Christmas Advent Calendar Banner Styles */
#bf-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0d4730 0%, #165a3e 50%, #1a7a4f 100%);
  color: #ffffff;
  padding: 15px 20px;
  z-index: 9999999 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideDown 0.4s ease-out;
  border-bottom: 4px solid #c41e3a;
  overflow: hidden;
}

/* Christmas sparkle effect */
#bf-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: sparkle 3s infinite;
}

@keyframes sparkle {
  0% { left: -100%; }
  100% { left: 100%; }
}

#bf-banner.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bf-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  position: relative;
  flex-wrap: wrap;
}

.banner-message-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.banner-message-link:hover {
  opacity: 0.9;
}

.banner-message {
  display: flex;
  align-items: center;
  gap: 12px;
}

.christmas-icon {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bf-banner-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

.bf-highlight {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.advent-button {
  background: linear-gradient(135deg, #c41e3a 0%, #d4313f 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
  border: 2px solid #ffd700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advent-button:hover {
  background: linear-gradient(135deg, #d4313f 0%, #e04555 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.6);
  color: #ffffff;
}

#bf-banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

#bf-banner-close:hover {
  background: rgba(196, 30, 58, 0.8);
  border-color: #ffd700;
  transform: translateY(-50%) rotate(90deg);
}

/* Ensure page content is not hidden behind banner */
body.bf-banner-active {
  padding-top: 75px;
}

/* Snow Container */
#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999998 !important;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  animation: fall linear forwards;
  opacity: 0;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
  }
}

/* Responsive styles */
@media (max-width: 991px) {
  #bf-banner {
    padding: 12px 10px;
  }

  .bf-banner-content {
    gap: 15px;
  }

  .banner-message {
    gap: 10px;
  }

  .christmas-icon {
    font-size: 20px;
  }

  .bf-banner-text {
    font-size: 15px;
  }

  .advent-button {
    padding: 8px 20px;
    font-size: 13px;
  }

  #bf-banner-close {
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  body.bf-banner-active {
    padding-top: 65px;
  }
}

@media (max-width: 768px) {
  #bf-banner {
    padding: 10px 8px;
  }

  .bf-banner-content {
    gap: 10px;
  }

  .banner-message {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .christmas-icon {
    font-size: 18px;
  }

  .bf-banner-text {
    font-size: 13px;
    line-height: 1.3;
  }

  .advent-button {
    padding: 8px 18px;
    font-size: 12px;
    width: 100%;
    max-width: 200px;
  }

  #bf-banner-close {
    right: 5px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    border-width: 1.5px;
  }

  body.bf-banner-active {
    padding-top: 95px;
  }
}

@media (max-width: 480px) {
  #bf-banner {
    padding: 10px 5px;
  }

  .bf-banner-content {
    gap: 8px;
  }

  .banner-message {
    gap: 6px;
  }

  .christmas-icon {
    font-size: 16px;
  }

  .bf-banner-text {
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  .advent-button {
    padding: 7px 16px;
    font-size: 11px;
    border-radius: 20px;
  }

  #bf-banner-close {
    right: 3px;
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  body.bf-banner-active {
    padding-top: 90px;
  }

  .bf-highlight {
    text-shadow: 0 1px 4px rgba(255, 215, 0, 0.5);
  }
}

@media (max-width: 360px) {
  .bf-banner-text {
    font-size: 11px;
  }

  .christmas-icon {
    font-size: 14px;
  }

  .advent-button {
    font-size: 10px;
    padding: 6px 14px;
  }

  #bf-banner-close {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  body.bf-banner-active {
    padding-top: 85px;
  }
}
