/* ========================================
   HOLIDAY THEME CSS - DECEMBER ONLY
   Auto-enabled Dec 1-31
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --holiday-red: #C41E3A;        /* Christmas red */
  --holiday-green: #165B33;      /* Deep forest green */
  --holiday-gold: #D4AF37;       /* Gold accent */
  --holiday-white: #FFFFFF;
  --holiday-cream: #F8F5F0;

  /* Animation settings */
  --snow-duration: 10s;
  --sparkle-duration: 2s;
}

/* ========== HOLIDAY BANNER ========== */
.holiday-banner {
  background: linear-gradient(90deg, var(--holiday-green) 0%, var(--holiday-red) 100%);
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  border-bottom: 3px solid var(--holiday-gold);
}

.holiday-banner-content {
  position: relative;
  z-index: 2;
}

.holiday-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.holiday-text {
  color: var(--holiday-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
}

.holiday-icon {
  font-size: 1.5rem;
  animation: sparkle var(--sparkle-duration) ease-in-out infinite;
}

/* ========== SNOWFLAKES ANIMATION ========== */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  user-select: none;
}

/* Individual snowflake variations */
.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.snowflake:nth-child(2) {
  left: 25%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 1.2rem;
}

.snowflake:nth-child(3) {
  left: 40%;
  animation-duration: 9s;
  animation-delay: 1s;
  font-size: 1.3rem;
}

.snowflake:nth-child(4) {
  left: 55%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.snowflake:nth-child(5) {
  left: 70%;
  animation-duration: 8.5s;
  animation-delay: 1.5s;
  font-size: 1.4rem;
}

.snowflake:nth-child(6) {
  left: 85%;
  animation-duration: 9.5s;
  animation-delay: 0.5s;
  font-size: 1.1rem;
}

.snowflake:nth-child(7) {
  left: 15%;
  animation-duration: 10.5s;
  animation-delay: 2.5s;
  font-size: 1.6rem;
}

.snowflake:nth-child(8) {
  left: 90%;
  animation-duration: 8.8s;
  animation-delay: 0.8s;
  font-size: 1.2rem;
}

@keyframes fall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    top: 110%;
    transform: translateX(50px) rotate(360deg);
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.8;
  }
}

/* ========== FESTIVE COLOR OVERRIDES ========== */
/* Only applied when body has .holiday-mode class */

/* Only apply subtle festive tint to bg-primary, not full gradient */
body.holiday-mode .bg-primary {
  background: var(--holiday-green) !important;
  position: relative;
}

/* Add subtle festive accent with border or overlay instead of gradient */
body.holiday-mode .bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--holiday-red) 0%, var(--holiday-gold) 50%, var(--holiday-green) 100%);
}

body.holiday-mode .btn-primary {
  background-color: var(--holiday-red);
  border-color: var(--holiday-red);
  transition: all 0.3s ease;
}

body.holiday-mode .btn-primary:hover {
  background-color: #A01729;
  border-color: #A01729;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(196, 30, 58, 0.3);
}

body.holiday-mode .btn-light {
  background-color: var(--holiday-cream);
  border-color: var(--holiday-gold);
  color: var(--holiday-green);
  font-weight: 600;
}

body.holiday-mode .btn-light:hover {
  background-color: var(--holiday-gold);
  border-color: var(--holiday-gold);
  color: var(--holiday-white);
}

body.holiday-mode h2:not(.holiday-text) {
  color: var(--holiday-green);
}

/* Ensure banner text stays white with good contrast */
.holiday-banner .holiday-text {
  color: var(--holiday-white) !important;
}

/* Navbar festive border */
body.holiday-mode .navbar-custom-green {
  border-color: var(--holiday-red);
  background: linear-gradient(to right, rgba(22, 91, 51, 0.05), rgba(196, 30, 58, 0.05));
}

/* Add subtle gold shimmer to cards */
body.holiday-mode .card {
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

body.holiday-mode .card:hover {
  border-color: var(--holiday-gold);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .holiday-text {
    font-size: 1rem;
    line-height: 1.3;
  }

  .holiday-icon {
    font-size: 1.3rem;
  }

  .holiday-banner {
    padding: 0.6rem 0.75rem;
  }

  .snowflake {
    font-size: 0.9rem;
    opacity: 0.6;
  }

  .holiday-message {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .holiday-text {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .holiday-icon {
    font-size: 1.1rem;
  }

  .holiday-message {
    gap: 0.4rem;
  }

  .holiday-banner {
    padding: 0.5rem 0.5rem;
  }

  /* Simplify on very small screens - remove snowflakes */
  .snowflake {
    display: none;
  }
}

/* ========== ACCESSIBILITY ========== */
/* Reduced motion support for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
  .snowflake,
  .holiday-icon,
  body.holiday-mode .btn-primary,
  body.holiday-mode .card {
    animation: none;
    transition: none;
  }

  .holiday-icon {
    transform: none;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .holiday-banner,
  .snowflakes {
    display: none !important;
  }

  body.holiday-mode .bg-primary,
  body.holiday-mode .btn-primary {
    background: #006A4E !important;
  }
}
