/* ============================================
   ZORRITO LUCKY ANIMATIONS
   Animações profissionais de trevos e elementos de sorte
   ============================================ */

/* ===== CONTAINER DE ANIMAÇÕES ===== */
.zorrito-lucky-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ===== PARTÍCULAS BASE ===== */
.lucky-particle {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  animation: floatAndFade 15s linear infinite;
  filter: drop-shadow(0 0 10px rgba(174, 209, 54, 0.5));
}

/* ===== ANIMAÇÃO PRINCIPAL: FLUTUAR E FADE ===== */
@keyframes floatAndFade {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) translateX(var(--drift)) rotate(360deg) scale(1);
  }
}

/* ===== VARIAÇÕES DE VELOCIDADE ===== */
.lucky-particle:nth-child(1) { 
  animation-duration: 12s;
  animation-delay: 0s;
  left: 5%;
  --drift: 50px;
}

.lucky-particle:nth-child(2) { 
  animation-duration: 15s;
  animation-delay: 2s;
  left: 15%;
  --drift: -30px;
}

.lucky-particle:nth-child(3) { 
  animation-duration: 18s;
  animation-delay: 4s;
  left: 25%;
  --drift: 70px;
}

.lucky-particle:nth-child(4) { 
  animation-duration: 14s;
  animation-delay: 1s;
  left: 35%;
  --drift: -50px;
}

.lucky-particle:nth-child(5) { 
  animation-duration: 16s;
  animation-delay: 3s;
  left: 45%;
  --drift: 40px;
}

.lucky-particle:nth-child(6) { 
  animation-duration: 13s;
  animation-delay: 5s;
  left: 55%;
  --drift: -60px;
}

.lucky-particle:nth-child(7) { 
  animation-duration: 17s;
  animation-delay: 2.5s;
  left: 65%;
  --drift: 35px;
}

.lucky-particle:nth-child(8) { 
  animation-duration: 15s;
  animation-delay: 4.5s;
  left: 75%;
  --drift: -45px;
}

.lucky-particle:nth-child(9) { 
  animation-duration: 14s;
  animation-delay: 1.5s;
  left: 85%;
  --drift: 55px;
}

.lucky-particle:nth-child(10) { 
  animation-duration: 16s;
  animation-delay: 3.5s;
  left: 95%;
  --drift: -40px;
}

/* ===== MOEDAS GIRANDO ===== */
.coin-particle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: coinSpin 10s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.6));
}

@keyframes coinSpin {
  0% {
    opacity: 0;
    transform: translateY(-10vh) rotateY(0deg) scale(0.3);
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) rotateY(1080deg) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotateY(2160deg) scale(0.3);
  }
}

.coin-particle:nth-child(1) { 
  animation-delay: 0s;
  left: 10%;
}

.coin-particle:nth-child(2) { 
  animation-delay: 3s;
  left: 30%;
}

.coin-particle:nth-child(3) { 
  animation-delay: 6s;
  left: 50%;
}

.coin-particle:nth-child(4) { 
  animation-delay: 2s;
  left: 70%;
}

.coin-particle:nth-child(5) { 
  animation-delay: 5s;
  left: 90%;
}

/* ===== ESTRELAS BRILHANTES ===== */
.star-particle {
  position: absolute;
  color: #FFE066;
  font-size: 1.2rem;
  opacity: 0;
  animation: starTwinkle 8s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  10% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1) rotate(360deg);
  }
  90% {
    opacity: 1;
    transform: scale(1.5) rotate(540deg);
  }
}

.star-particle:nth-child(1) { 
  animation-delay: 0s;
  top: 10%;
  left: 20%;
}

.star-particle:nth-child(2) { 
  animation-delay: 2s;
  top: 30%;
  right: 15%;
}

.star-particle:nth-child(3) { 
  animation-delay: 4s;
  top: 60%;
  left: 10%;
}

.star-particle:nth-child(4) { 
  animation-delay: 1s;
  bottom: 20%;
  right: 25%;
}

.star-particle:nth-child(5) { 
  animation-delay: 3s;
  top: 80%;
  left: 60%;
}

/* ===== BRILHO FLUTUANTE (GLOW) ===== */
.glow-orb {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 209, 54, 0.4) 0%, transparent 70%);
  opacity: 0;
  animation: orbFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  25% {
    opacity: 0.6;
    transform: translate(100px, -200px) scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50px, -400px) scale(1);
  }
  75% {
    opacity: 0.6;
    transform: translate(150px, -600px) scale(1.3);
  }
}

.glow-orb:nth-child(1) {
  animation-delay: 0s;
  left: 20%;
  top: 100%;
}

.glow-orb:nth-child(2) {
  animation-delay: 7s;
  left: 60%;
  top: 100%;
}

.glow-orb:nth-child(3) {
  animation-delay: 14s;
  left: 80%;
  top: 100%;
}

/* ===== CONFETTI DE SORTE ===== */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #AED136, #FFCC00);
  opacity: 0;
  animation: confettiFall 8s linear infinite;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

.confetti-piece:nth-child(1) { 
  animation-delay: 0s;
  left: 8%;
}

.confetti-piece:nth-child(2) { 
  animation-delay: 1.5s;
  left: 23%;
}

.confetti-piece:nth-child(3) { 
  animation-delay: 3s;
  left: 38%;
}

.confetti-piece:nth-child(4) { 
  animation-delay: 4.5s;
  left: 53%;
}

.confetti-piece:nth-child(5) { 
  animation-delay: 6s;
  left: 68%;
}

.confetti-piece:nth-child(6) { 
  animation-delay: 0.5s;
  left: 83%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .lucky-particle {
    font-size: 1.5rem;
  }
  
  .coin-particle {
    font-size: 1.2rem;
  }
  
  .star-particle {
    font-size: 1rem;
  }
  
  .glow-orb {
    width: 60px;
    height: 60px;
  }
  
  /* Reduzir quantidade de partículas em mobile */
  .lucky-particle:nth-child(n+6),
  .coin-particle:nth-child(n+4),
  .star-particle:nth-child(n+4),
  .confetti-piece:nth-child(n+4) {
    display: none;
  }
}

/* ===== CONTROLE DE PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
  .lucky-particle,
  .coin-particle,
  .star-particle,
  .glow-orb,
  .confetti-piece {
    animation: none;
    opacity: 0;
  }
}