/* Events Page Styles */
.events-page {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1a30 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.events-header {
  text-align: center;
  margin-bottom: 2rem;
}

.events-header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.events-header h1 i {
  color: #f0c040;
}

.events-header p {
  color: #9ab;
  font-size: 1.1rem;
}

/* Christmas Event Card */
.christmas-event {
  background: linear-gradient(180deg, #1a3a2a 0%, #0d2818 50%, #1a3025 100%);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid #2a5a3a;
}

/* Snowfall Effect */
.snowfall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  animation: snowfall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

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

/* Event Banner */
.event-banner {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  border-bottom: 4px solid #ffd700;
}

.event-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-banner h2 i {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.event-subtitle {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Christmas Lights */
.christmas-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 30px,
    #ff0000 30px, #ff0000 35px,
    transparent 35px,
    transparent 65px,
    #00ff00 65px, #00ff00 70px,
    transparent 70px,
    transparent 100px,
    #ffff00 100px, #ffff00 105px,
    transparent 105px,
    transparent 135px,
    #0080ff 135px, #0080ff 140px
  );
  animation: lights-blink 1s infinite alternate;
}

@keyframes lights-blink {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.5) drop-shadow(0 0 5px currentColor); }
}

/* Event Timer */
.event-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
}

.timer-label { color: #ccc; }
.timer-countdown { color: #ffd700; font-weight: 600; }

/* Advent Info */
.advent-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9fc;
  font-size: 0.95rem;
}

.info-item i {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Advent Calendar Grid */
.advent-calendar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
}

/* Advent Door */
.advent-door {
  width: 180px;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.advent-door:hover:not(.opened):not(.locked) {
  transform: scale(1.05);
}

.advent-door.locked {
  cursor: not-allowed;
  opacity: 0.6;
}

.advent-door.locked .door-front {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  border-color: #555;
}

.door-front, .door-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  pointer-events: auto;
}

.door-front {
  background: linear-gradient(135deg, #8b4513 0%, #5c3317 100%);
  border: 4px solid #ffd700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.door-front::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  pointer-events: none;
}

.door-number {
  font-size: 4rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.door-wreath {
  margin-top: 1rem;
  font-size: 2rem;
  color: #28a745;
}

.door-wreath i {
  animation: wreath-glow 2s ease-in-out infinite alternate;
}

@keyframes wreath-glow {
  0% { filter: drop-shadow(0 0 2px #28a745); }
  100% { filter: drop-shadow(0 0 10px #28a745) drop-shadow(0 0 20px #ffd700); }
}

.door-back {
  background: linear-gradient(135deg, #1a5a3a 0%, #0d3320 100%);
  border: 4px solid #28a745;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.door-prize {
  text-align: center;
  color: #fff;
}

.door-prize i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  display: block;
}

.door-prize .prize-name {
  font-size: 0.9rem;
  color: #9fc;
}

/* Door Opening Animation */
.advent-door.opening .door-front {
  animation: door-shake 0.5s ease-in-out, door-open 0.8s 0.5s ease-in-out forwards;
}

@keyframes door-shake {
  0%, 100% { transform: rotateY(0) translateX(0); }
  20% { transform: rotateY(-5deg) translateX(-3px); }
  40% { transform: rotateY(5deg) translateX(3px); }
  60% { transform: rotateY(-3deg) translateX(-2px); }
  80% { transform: rotateY(3deg) translateX(2px); }
}

@keyframes door-open {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(-180deg); }
}

.advent-door.opened .door-front {
  transform: rotateY(-180deg);
}

.advent-door.opened .door-back {
  transform: rotateY(0);
}

/* Advent Status */
.advent-status {
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

#status-text {
  color: #9fc;
  font-size: 1rem;
  margin: 0;
}

#status-text.error {
  color: #f66;
}

#status-text.success {
  color: #6f6;
}


/* Prize Modal */
.prize-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: modal-fade-in 0.5s ease-out;
}

.prize-modal.show {
  display: flex;
}

@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.prize-modal-content {
  background: linear-gradient(180deg, #1a3a2a 0%, #0d2818 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  border: 3px solid #ffd700;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modal-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modal-bounce-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.prize-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle-float 2s ease-out infinite;
}

@keyframes sparkle-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

.prize-icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 5px 20px rgba(196, 30, 58, 0.5);
  animation: icon-pulse 1s ease-in-out infinite alternate;
}

@keyframes icon-pulse {
  0% { transform: scale(1); box-shadow: 0 5px 20px rgba(196, 30, 58, 0.5); }
  100% { transform: scale(1.1); box-shadow: 0 10px 30px rgba(196, 30, 58, 0.8); }
}

.prize-modal-content h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.prize-reveal-text {
  color: #9fc;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.prize-card-display {
  background: linear-gradient(135deg, #2a5a4a 0%, #1a3a2a 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid #28a745;
}

.prize-card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3a6a5a 0%, #2a5a4a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffd700;
}

#prize-card-name {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.prize-tier {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #757575;
  color: #fff;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.prize-added-text {
  color: #6f6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.prize-close-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.prize-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.6);
}

.prize-close-btn i {
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .events-header h1 {
    font-size: 1.8rem;
  }

  .event-banner h2 {
    font-size: 1.4rem;
  }

  .advent-calendar {
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .advent-door {
    width: 140px;
    height: 180px;
  }

  .door-number {
    font-size: 3rem;
  }

  .door-wreath {
    font-size: 1.5rem;
  }

  .advent-info {
    gap: 1rem;
  }

  .info-item {
    font-size: 0.85rem;
  }
}

/* Coming Soon Event Styles */
.coming-soon-event {
  background: linear-gradient(135deg, #1a1f3c 0%, #0f1629 50%, #1a2040 100%);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(252, 157, 11, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(252, 157, 11, 0.3);
  min-height: 400px;
}

.coming-soon-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
  }
  75% {
    transform: translateY(-30px) translateX(5px);
  }
}

.coming-soon-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.coming-soon-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #fc9d0b 0%, #e68a00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: iconPulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(252, 157, 11, 0.4);
}

.coming-soon-icon i {
  font-size: 2.5rem;
  color: #1b2838;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(252, 157, 11, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(252, 157, 11, 0.6);
  }
}

.coming-soon-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(252, 157, 11, 0.5);
  background: linear-gradient(135deg, #fff 0%, #fc9d0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon-subtitle {
  font-size: 1.2rem;
  color: #9ab;
  margin-bottom: 2rem;
}

.coming-soon-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.coming-soon-features .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(252, 157, 11, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(252, 157, 11, 0.2);
  transition: all 0.3s ease;
  min-width: 140px;
}

.coming-soon-features .feature-item:hover {
  transform: translateY(-5px);
  background: rgba(252, 157, 11, 0.15);
  border-color: rgba(252, 157, 11, 0.4);
  box-shadow: 0 10px 30px rgba(252, 157, 11, 0.2);
}

.coming-soon-features .feature-item i {
  font-size: 1.8rem;
  color: #fc9d0b;
}

.coming-soon-features .feature-item span {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.coming-soon-cta {
  position: relative;
  margin-top: 1rem;
}

.coming-soon-cta p {
  font-size: 1.1rem;
  color: #fc9d0b;
  font-weight: 500;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 50px;
  border-radius: 25px;
  border: 2px solid rgba(252, 157, 11, 0.3);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Coming Soon Responsive */
@media (max-width: 768px) {
  .coming-soon-content {
    padding: 2rem 1rem;
    min-height: 350px;
  }

  .coming-soon-title {
    font-size: 1.8rem;
  }

  .coming-soon-subtitle {
    font-size: 1rem;
  }

  .coming-soon-icon {
    width: 80px;
    height: 80px;
  }

  .coming-soon-icon i {
    font-size: 2rem;
  }

  .coming-soon-features {
    gap: 1rem;
  }

  .coming-soon-features .feature-item {
    padding: 1rem;
    min-width: 120px;
  }

  .coming-soon-features .feature-item i {
    font-size: 1.5rem;
  }

  .coming-soon-features .feature-item span {
    font-size: 0.85rem;
  }
}