/* Christmas Tree - Cây thông Giáng sinh bên trái */
.christmas-tree-container {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998; /* Dưới notification nhưng trên content */
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center; /* Căn giữa theo chiều ngang */
}

/* Wrapper cho tree để hint có thể absolute position */
.christmas-tree-wrapper {
  position: relative;
  display: inline-block;
}

.christmas-tree {
  font-size: 12rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
  animation: treeGlow 2s ease-in-out infinite;
  position: relative;
  display: inline-block;
  align-self: center; /* Đảm bảo căn giữa */
  margin: 0 auto; /* Căn giữa */
}

.tree-emoji {
  display: inline-block;
  animation: treePulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

/* Sparkle effects - các ngôi sao lấp lánh xung quanh cây */
.sparkle {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  animation: sparkleTwinkle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

.sparkle-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 30%;
  right: 15%;
  animation-delay: 0.3s;
}

.sparkle-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 0.6s;
}

.sparkle-4 {
  bottom: 10%;
  right: 20%;
  animation-delay: 0.9s;
}

.sparkle-5 {
  top: 50%;
  left: 5%;
  animation-delay: 1.2s;
}

.christmas-tree:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.christmas-tree:active {
  transform: scale(0.95);
}

/* Animation cây thông sáng và lung linh */
@keyframes treeGlow {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 70px rgba(255, 20, 147, 0.4));
  }
  25% {
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9)) 
            drop-shadow(0 0 60px rgba(255, 20, 147, 0.7))
            drop-shadow(0 0 80px rgba(0, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(255, 20, 147, 1)) 
            drop-shadow(0 0 70px rgba(0, 255, 255, 0.8))
            drop-shadow(0 0 90px rgba(255, 215, 0, 0.6));
  }
  75% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.9)) 
            drop-shadow(0 0 60px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 80px rgba(255, 20, 147, 0.5));
  }
}

@keyframes treePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Countdown timer */
.christmas-countdown {
  margin-top: 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  width: 100%; /* Chiếm full width của container */
  box-sizing: border-box;
}

.newyear-countdown {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 215, 0, 0.4);
}

.countdown-title {
  font-size: 0.9rem;
  color: #ffeb3b;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-time {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
}

.countdown-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Confetti container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100001;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--confetti-color);
  animation: confettiFall linear forwards;
  pointer-events: none;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .christmas-tree-container {
    left: 10px;
    bottom: 10px;
  }
  
  .christmas-tree {
    font-size: 9rem;
  }
  
  .sparkle {
    font-size: 1.2rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .christmas-tree-container {
    left: 5px;
    bottom: 5px;
  }
  
  .christmas-tree {
    font-size: 6rem;
  }
  
  .sparkle {
    font-size: 1rem;
  }
  
  .christmas-countdown {
    padding: 10px 15px;
    min-width: 150px;
  }
  
  .countdown-number {
    font-size: 1.2rem;
  }
  
  .countdown-title {
    font-size: 0.75rem;
  }
  
  .countdown-label {
    font-size: 0.6rem;
  }
  
  .countdown-time {
    gap: 5px;
  }
  
  .countdown-item {
    min-width: 35px;
  }
}

@media (max-width: 480px) {
  .christmas-tree {
    font-size: 4rem;
  }
  
  .sparkle {
    font-size: 0.8rem;
  }
  
  .christmas-countdown {
    padding: 8px 12px;
    min-width: 120px;
  }
  
  .countdown-number {
    font-size: 1rem;
  }
}

