/* FunnyTimeDe Slot Styles - Bright & Playful Design */

/* Slot Container */
.funny-slot {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--fun-pink-light);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.funny-slot::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--fun-blue-light), var(--fun-pink-light), var(--fun-yellow-light), var(--fun-mint-light), var(--fun-blue-light));
  animation: rotate 10s linear infinite;
  z-index: -1;
  opacity: 0.1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.funny-slot:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--fun-pink);
}

/* Slot Title */
.funny-slot__title {
  font-family: 'Fredoka', cursive;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: bounce 2s infinite;
}

/* Slot Frame */
.funny-slot__frame {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--fun-blue);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  box-shadow: inset 0 0 30px rgba(74, 144, 226, 0.1);
}

.funny-slot__frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

/* Slot Reels */
.funny-slot__reel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Slot Cells */
.funny-slot__cell {
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 3px solid var(--fun-mint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.funny-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 ease;
}

.funny-slot__cell:hover::before {
  left: 100%;
}

.funny-slot__cell:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--fun-pink);
  box-shadow: var(--shadow-button);
}

/* Symbol-specific styles */
.funny-slot__cell[data-symbol="bubble"] { border-color: var(--fun-blue); }
.funny-slot__cell[data-symbol="star"] { border-color: var(--fun-yellow); }
.funny-slot__cell[data-symbol="heart"] { border-color: var(--fun-pink); }
.funny-slot__cell[data-symbol="circle"] { border-color: var(--fun-blue); }
.funny-slot__cell[data-symbol="gem"] { border-color: var(--fun-purple); }
.funny-slot__cell[data-symbol="rainbow"] { border-color: var(--fun-mint); }
.funny-slot__cell[data-symbol="sparkle"] { border-color: var(--fun-yellow); }
.funny-slot__cell[data-symbol="balloon"] { border-color: var(--fun-pink); }
.funny-slot__cell[data-symbol="candy"] { border-color: var(--fun-orange); }

/* Spinning Animation */
.funny-slot--spinning .funny-slot__cell {
  animation: spin 0.3s ease-in-out;
}

@keyframes spin {
  0% { 
    transform: scale(1) rotateY(0deg); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.2) rotateY(90deg); 
    opacity: 0.7;
  }
  100% { 
    transform: scale(1) rotateY(180deg); 
    opacity: 1;
  }
}

/* Spin Button */
.funny-slot__spin {
  background: var(--gradient-secondary);
  color: var(--text-white);
  border: 3px solid var(--fun-orange);
  padding: 1.5rem 4rem;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Fredoka', cursive;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-button);
  width: 100%;
  max-width: 350px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.funny-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 ease;
}

.funny-slot__spin:hover::before {
  left: 100%;
}

.funny-slot__spin:hover {
  background: var(--gradient-primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
  border-color: var(--fun-pink);
  animation: bounce 0.6s ease;
}

.funny-slot__spin:active {
  transform: translateY(0) scale(0.98);
}

.funny-slot__spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-secondary);
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* Slot Note */
.funny-slot__note {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 1.5rem 0;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
  font-family: 'Nunito', sans-serif;
}

/* Slot Status */
.funny-slot__status {
  background: var(--gradient-success);
  color: var(--text-white);
  font-weight: 700;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 3px solid var(--fun-mint);
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-family: 'Fredoka', cursive;
  position: relative;
  z-index: 1;
}

.funny-slot__status--active {
  background: var(--gradient-primary);
  border-color: var(--fun-pink);
  animation: pulse 1.5s ease-in-out 3;
}

/* Winning Animation */
.funny-slot--winning {
  animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {
  0%, 100% { 
    transform: translateY(-8px) scale(1);
    box-shadow: var(--shadow-card);
  }
  25% { 
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
  }
  50% { 
    transform: translateY(-16px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.4);
  }
  75% { 
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
  }
}

.funny-slot__cell--winning {
  animation: cellWin 1s ease-in-out 3;
}

@keyframes cellWin {
  0%, 100% { 
    transform: scale(1);
    border-color: var(--fun-mint);
  }
  50% { 
    transform: scale(1.2) rotate(10deg);
    border-color: var(--fun-pink);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.6);
  }
}

/* Particles Effect */
.funny-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: particleFall 3s ease-out forwards;
  z-index: 100;
}

@keyframes particleFall {
  0% {
    transform: translateY(-30px) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(300px) rotate(720deg) scale(0);
    opacity: 0;
  }
}

/* Demo Header Styles */
.demo-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 3px solid var(--fun-blue-light);
}

.demo-header h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'Fredoka', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .funny-slot {
    padding: 2rem;
    margin: 0 0.5rem;
  }
  
  .funny-slot__title {
    font-size: 1.6rem;
  }
  
  .funny-slot__cell {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
  }
  
  .funny-slot__frame {
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .funny-slot__reel {
    gap: 0.8rem;
  }
  
  .funny-slot__spin {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .funny-slot {
    padding: 1.5rem;
    margin: 0;
  }
  
  .funny-slot__title {
    font-size: 1.4rem;
  }
  
  .funny-slot__cell {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .funny-slot__frame {
    gap: 0.8rem;
    padding: 1.2rem;
  }
  
  .funny-slot__reel {
    gap: 0.6rem;
  }
  
  .funny-slot__spin {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .funny-slot__note {
    font-size: 0.9rem;
  }
  
  .funny-slot__status {
    font-size: 1rem;
    padding: 1.2rem;
  }
}

@media (max-width: 360px) {
  .funny-slot__cell {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
  
  .funny-slot__frame {
    gap: 0.6rem;
    padding: 1rem;
  }
  
  .funny-slot__reel {
    gap: 0.5rem;
  }
}

/* Special Effects */
.funny-glow {
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
}

.funny-bounce {
  animation: bounce 1s ease-in-out;
}

/* Loading State */
.funny-slot--loading .funny-slot__frame {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.9) 75%);
  background-size: 30px 30px;
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}
