/* Custom animations and overrides */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes clash-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

@keyframes battle-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px) rotate(-1deg);
  }
  75% {
    transform: translateX(2px) rotate(1deg);
  }
}

/* Clash theme colors and styling */
:root {
  --clash-primary: #3b82f6;
  --clash-secondary: #f59e0b;
  --clash-accent: #ef4444;
  --clash-dark: #1e293b;
  --clash-light: #f8fafc;
}

/* Parallax elements */
.parallax-element {
  animation: parallax-float 6s ease-in-out infinite;
}

.parallax-element:nth-child(2n) {
  animation-delay: -2s;
  animation-duration: 8s;
}

/* Marquee animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

/* Clash-style buttons */
.clash-btn {
  position: relative;
  background: linear-gradient(135deg, var(--clash-primary), var(--clash-secondary));
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 8px 0 var(--clash-dark), 0 12px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: all 0.1s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.clash-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--clash-dark), 0 15px 25px rgba(0, 0, 0, 0.4);
}

.clash-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 var(--clash-dark), 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Clash-style cards */
.clash-card {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 4px solid var(--clash-primary);
  border-radius: 16px;
  box-shadow: 0 8px 0 var(--clash-dark), 0 12px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.clash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--clash-primary), var(--clash-secondary), var(--clash-accent));
}

/* Battle elements */
.battle-element {
  animation: battle-shake 0.5s ease-in-out;
}

.battle-element:hover {
  animation: clash-pulse 2s infinite;
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, var(--clash-accent), #dc2626);
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 0 0 4px var(--clash-accent), 0 8px 30px rgba(239, 68, 68, 0.4);
  position: relative;
}

.bonus-badge::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--clash-secondary);
  border-radius: 50%;
  border: 3px solid #fff;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.game-card:hover {
  border-color: var(--clash-primary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* Step indicators */
.step-indicator {
  background: linear-gradient(135deg, var(--clash-secondary), #d97706);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--clash-dark), 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive typography */
.prose {
  line-height: 1.7;
  color: #374151;
}

.prose h2 {
  color: var(--clash-dark);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .clash-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .step-indicator {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .clash-card {
    border-width: 3px;
    border-radius: 12px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Navigation enhancements */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--clash-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Disclaimer styling */
.disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  border-left: 4px solid var(--clash-secondary);
  padding-left: 1rem;
  margin-top: 1rem;
}
