/* Enhanced Winner Modal - Override Styles */
.winner-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  animation: modal-fade-in 0.5s ease-out !important;
}

.winner-modal[style*="display: flex"] {
  display: flex !important;
}

.winner-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  max-width: 500px !important;
  width: 90% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  border: 3px solid #22c55e !important;
  text-align: center !important;
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) { left: 10%; background: #22c55e; animation-delay: 0s; }
.confetti:nth-child(2) { left: 20%; background: #3b82f6; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 30%; background: #f59e0b; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 40%; background: #ef4444; animation-delay: 0.6s; }
.confetti:nth-child(5) { left: 50%; background: #8b5cf6; animation-delay: 0.8s; }
.confetti:nth-child(6) { left: 60%; background: #ec4899; animation-delay: 1s; }
.confetti:nth-child(7) { left: 70%; background: #06b6d4; animation-delay: 1.2s; }
.confetti:nth-child(8) { left: 80%; background: #84cc16; animation-delay: 1.4s; }

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes modal-fade-in {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Winner Badge */
.winner-badge {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: trophy-bounce 1s ease-out;
}

.badge-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
}

@keyframes trophy-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Main Prize Container */
.main-prize-container {
  position: relative;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

.prize-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: prize-glow-pulse 2s ease-in-out infinite;
}

.main-prize-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: prize-float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes prize-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes prize-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Winner Message */
.winner-message {
  margin: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.winner-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  margin-bottom: 1rem !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
  line-height: 1.2 !important;
}

.winner-subtitle {
  font-size: 1.1rem !important;
  color: #374151 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}

/* Validation Info */
.validation-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.validation-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #166534;
}

.validation-icon {
  font-size: 1.2rem;
  color: #22c55e;
  animation: check-pop 0.6s ease-out;
}

.validation-text {
  flex: 1;
  text-align: left;
}

@keyframes check-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Urgency Section */
.urgency-section {
  margin: 1.5rem 0;
}

.urgency-timer {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: urgency-pulse 2s ease-in-out infinite;
}

.timer-icon {
  font-size: 1.5rem;
  color: #d97706;
  animation: lightning-flash 1.5s ease-in-out infinite;
}

.timer-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  flex: 1;
  text-align: center;
}

@keyframes urgency-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5); }
}

@keyframes lightning-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* CTA Container */
.winner-cta-container {
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.winner-claim-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
  padding: 1.2rem 2rem !important;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4) !important;
  transition: all 0.3s ease !important;
  animation: cta-glow 2s ease-in-out infinite !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  width: 100% !important;
  max-width: 350px !important;
}

.winner-claim-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6) !important;
}

.btn-icon, .btn-arrow {
  font-size: 1.2rem;
}

.btn-text {
  flex: 1;
  text-align: center;
}

@keyframes cta-glow {
  0%, 100% { 
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6), 0 0 0 4px rgba(34, 197, 94, 0.2);
    transform: scale(1.02);
  }
}

.secure-note {
  margin-top: 1rem !important;
  font-size: 0.85rem !important;
  color: #6b7280 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Mobile Optimizations */
@media (max-width: 500px) {
  .winner-modal-content {
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  .winner-title {
    font-size: 1.6rem !important;
  }
  
  .winner-subtitle {
    font-size: 1rem !important;
  }
  
  .badge-icon {
    font-size: 2.5rem;
  }
  
  .badge-text {
    font-size: 1.2rem;
  }
  
  .main-prize-container {
    height: 120px;
  }
  
  .main-prize-image {
    width: 110px;
  }
  
  .prize-glow {
    width: 160px;
    height: 160px;
  }
  
  .validation-info {
    padding: 1rem;
  }
  
  .validation-item {
    font-size: 0.9rem;
  }
  
  .winner-claim-btn {
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
  }
  
  .timer-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .winner-modal-content {
    padding: 1.2rem !important;
  }
  
  .winner-title {
    font-size: 1.4rem !important;
  }
  
  .main-prize-container {
    height: 100px;
  }
  
  .main-prize-image {
    width: 90px;
  }
  
  .validation-item {
    font-size: 0.85rem;
  }
} 