/* Animations CSS for BetMatchZone */

/* Logo Sparkle Effect */
.logo-sparkle {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--gold) 10%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 3s infinite;
}

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

/* Magical Particles */
.magical-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.magical-particles::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(192, 192, 192, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(111, 45, 168, 0.3) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(10deg);
  }
}

/* Menu Hover Animation */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

/* Feature Card Hover Glow */
.feature-icon {
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* About Image Frame Animation */
.image-frame::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0% {
    top: -100%;
    left: -100%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

/* Game Card Hover Animation */
.game-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
  pointer-events: none;
}

.game-card:hover::after {
  transform: scale(1);
}

/* Play Button Hover Effect */
.play-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.5), transparent 70%);
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-button:hover::after {
  opacity: 1;
  animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

/* Form Input Focus Animation */
input::placeholder, textarea::placeholder {
  color: transparent;
}

input:focus::placeholder, textarea:focus::placeholder {
  color: rgba(192, 192, 192, 0.5);
  transition: color 0.3s ease 0.1s;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

.submit-button:hover::before {
  transform: scale(1);
}

/* Section Reveal Animation */
@keyframes revealFromBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .section-title, .features-grid, .about-content, 
.games-grid, .contact-content, .disclaimer-content {
  animation: revealFromBottom 1s ease-out forwards;
}

/* Header Scroll Animation */
.header-scrolled {
  background: rgba(10, 17, 40, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Overlay Reveal Animation */
@keyframes overlayReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card:hover .game-overlay h3,
.game-card:hover .play-button {
  animation: overlayReveal 0.5s ease forwards;
}

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

/* Magical Background Animation */
@keyframes backgroundShift {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

.magical-background {
  animation: backgroundShift 30s ease infinite;
  background-size: 200% 200%;
}

/* Nav Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Form Success Animation */
@keyframes formSuccess {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success {
  animation: formSuccess 1s ease;
}