/* PrizesMALET Slot Module - TV Show Style */

.prize-slot {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.prize-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 3px;
  background: var(--rainbow-gradient);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.prize-slot__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--rainbow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--rainbow-glow);
}

.prize-slot__frame {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 2px solid var(--show-pink);
  box-shadow: var(--pink-glow), inset 0 0 20px rgba(255, 20, 147, 0.1);
  position: relative;
}

.prize-slot__frame::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--rainbow-gradient);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
  animation: frameGlow 2s ease-in-out infinite alternate;
}

@keyframes frameGlow {
  0% { opacity: 0.2; }
  100% { opacity: 0.4; }
}

.prize-slot__reel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-slot__cell {
  width: 70px;
  height: 70px;
  background: var(--yellow-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-bg);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--yellow-glow), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prize-slot__cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.prize-slot__cell:hover::before {
  left: 100%;
}

.prize-slot__cell--spin {
  animation: cellSpin 0.1s ease-in-out;
  background: var(--pink-gradient);
  color: white;
  box-shadow: var(--pink-glow);
  transform: scale(1.05);
}

@keyframes cellSpin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg) scale(1); }
}

.prize-slot__spin {
  background: var(--pink-gradient);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: var(--pink-glow);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.prize-slot__spin::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.prize-slot__spin:hover::before {
  left: 100%;
}

.prize-slot__spin:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--pink-glow), 0 10px 25px rgba(255, 20, 147, 0.4);
}

.prize-slot__spin:active {
  transform: translateY(-1px) scale(1.02);
}

.prize-slot__spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #666, #888);
  box-shadow: none;
}

.prize-slot__note {
  color: var(--light-text);
  font-size: 0.9rem;
  margin: 1rem 0;
  font-style: italic;
  opacity: 0.9;
}

.prize-slot__status {
  background: rgba(255, 215, 0, 0.1);
  color: var(--show-yellow);
  font-weight: 700;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 15px;
  border: 2px solid var(--show-yellow);
  backdrop-filter: blur(10px);
  text-shadow: var(--yellow-glow);
  box-shadow: var(--yellow-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Demo Header */
.demo-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 20, 147, 0.1);
  border-radius: 20px;
  border: 2px solid var(--show-pink);
  backdrop-filter: blur(10px);
}

.demo-header h2 {
  color: var(--show-pink);
  margin-bottom: 0.5rem;
  text-shadow: var(--pink-glow);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-header p {
  color: var(--light-text);
  font-size: 1rem;
  font-weight: 600;
}

/* Show Symbols */
.symbol-star { color: var(--show-yellow); }
.symbol-heart { color: var(--show-pink); }
.symbol-diamond { color: var(--show-blue); }
.symbol-circle { color: var(--show-purple); }
.symbol-triangle { color: var(--show-orange); }

/* Special Effects */
.prize-slot--winning {
  animation: winningGlow 1s ease-in-out 3;
}

@keyframes winningGlow {
  0%, 100% { 
    box-shadow: var(--rainbow-glow);
    transform: scale(1);
  }
  50% { 
    box-shadow: var(--rainbow-glow), 0 0 50px rgba(255, 215, 0, 0.8);
    transform: scale(1.02);
  }
}

.prize-slot__cell--winning {
  animation: cellWin 0.5s ease-in-out 3;
}

@keyframes cellWin {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--yellow-glow);
  }
  50% { 
    transform: scale(1.2);
    box-shadow: var(--rainbow-glow);
  }
}

/* Confetti Effect */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--show-pink);
  animation: confettiFall 3s ease-out forwards;
}

.confetti:nth-child(2n) { background: var(--show-yellow); }
.confetti:nth-child(3n) { background: var(--show-blue); }
.confetti:nth-child(4n) { background: var(--show-purple); }

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .prize-slot {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .prize-slot__title {
    font-size: 1.3rem;
  }
  
  .prize-slot__cell {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
  
  .prize-slot__frame {
    gap: 8px;
    padding: 1rem;
  }
  
  .prize-slot__reel {
    gap: 6px;
  }
  
  .prize-slot__spin {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .prize-slot {
    padding: 1rem;
    margin: 0;
  }
  
  .prize-slot__title {
    font-size: 1.1rem;
  }
  
  .prize-slot__cell {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
  
  .prize-slot__frame {
    gap: 6px;
    padding: 0.8rem;
  }
  
  .prize-slot__reel {
    gap: 4px;
  }
  
  .prize-slot__spin {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .prize-slot__note {
    font-size: 0.8rem;
  }
  
  .prize-slot__status {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

@media (max-width: 360px) {
  .prize-slot__cell {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .prize-slot__frame {
    gap: 4px;
    padding: 0.6rem;
  }
  
  .prize-slot__reel {
    gap: 3px;
  }
}
