/* ============================================
   CHAMPION CSS - Feel Like A Winner!
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #f953c6;
  --secondary: #b91c9c;
  --gold: #ffd700;
  --orange: #ff6b35;
  --purple: #7c3aed;
  --blue: #3b82f6;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated Background Gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 83, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: float-up 10s linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Floating Icons */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  animation: float-around 15s ease-in-out infinite;
  opacity: 0.3;
}

.floating-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; font-size: 1.5rem; }
.floating-icon:nth-child(3) { bottom: 30%; left: 8%; animation-delay: 4s; }
.floating-icon:nth-child(4) { top: 60%; right: 5%; animation-delay: 6s; font-size: 1.8rem; }
.floating-icon:nth-child(5) { bottom: 15%; left: 15%; animation-delay: 8s; font-size: 2.5rem; }
.floating-icon:nth-child(6) { top: 40%; right: 15%; animation-delay: 10s; }

@keyframes float-around {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(10deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
  75% { transform: translateY(-40px) rotate(5deg); }
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Crown */
.crown-container {
  margin-bottom: 1rem;
}

.crown {
  font-size: 5rem;
  display: inline-block;
  animation: crown-bounce 2s ease-in-out infinite, crown-glow 1.5s ease-in-out infinite alternate;
}

@keyframes crown-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

@keyframes crown-glow {
  0% { filter: drop-shadow(0 0 10px var(--gold)); }
  100% { filter: drop-shadow(0 0 30px var(--gold)) drop-shadow(0 0 60px var(--orange)); }
}

/* Title */
.title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.title-line {
  display: block;
  background: linear-gradient(90deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-highlight {
  display: block;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--primary), var(--purple));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Message */
.message-container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.message {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 700px;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.message .highlight {
  color: var(--gold);
  font-weight: 800;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 180px;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quote Box */
.quote-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(249, 83, 198, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.6;
}

.quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--purple);
  line-height: 0;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(249, 83, 198, 0.3);
  font-family: 'Poppins', sans-serif;
}

.refresh-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(249, 83, 198, 0.5);
}

.refresh-btn:active {
  transform: scale(0.98);
}

.refresh-btn span {
  pointer-events: none;
}

/* Animations */
.animate-in {
  opacity: 0;
  animation: fadeSlideIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message animation */
.message.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.message.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for numbers */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .stats {
    gap: 1rem;
  }
  
  .stat {
    padding: 1rem 1.5rem;
    min-width: 150px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .crown {
    font-size: 4rem;
  }
  
  .floating-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat {
    width: 100%;
    max-width: 280px;
  }
  
  .message {
    padding: 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--purple));
  border-radius: 4px;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}
