/* LetErNordGal.com - Nordic Galactic Slot Styles */

/* ============================================================ */
/* SLOT CONTAINER */
/* ============================================================ */

.lng-slot {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: 500px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-galactic);
}

.lng-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 102, 255, 0.05) 0%, 
    rgba(157, 78, 221, 0.05) 50%, 
    rgba(0, 212, 170, 0.05) 100%);
  animation: galacticAura 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes galacticAura {
  0%, 100% { opacity: 0.3; transform: rotate(0deg); }
  50% { opacity: 0.7; transform: rotate(1deg); }
}

/* ============================================================ */
/* SLOT TITLE */
/* ============================================================ */

.lng-slot__title {
  color: var(--galactic-blue);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  text-shadow: var(--blue-glow);
  position: relative;
  z-index: 1;
  animation: runicPulse 3s ease-in-out infinite;
}

@keyframes runicPulse {
  0%, 100% { text-shadow: var(--blue-glow); }
  50% { text-shadow: 0 0 30px rgba(0, 102, 255, 0.8); }
}

/* ============================================================ */
/* SLOT FRAME */
/* ============================================================ */

.lng-slot__frame {
  background: var(--void-black);
  border: 3px solid var(--cosmic-purple);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  position: relative;
  box-shadow: 
    inset 0 0 20px rgba(157, 78, 221, 0.3),
    0 0 30px rgba(157, 78, 221, 0.2);
  animation: frameGlow 4s ease-in-out infinite;
}

@keyframes frameGlow {
  0%, 100% { 
    border-color: var(--cosmic-purple);
    box-shadow: 
      inset 0 0 20px rgba(157, 78, 221, 0.3),
      0 0 30px rgba(157, 78, 221, 0.2);
  }
  50% { 
    border-color: var(--galactic-blue);
    box-shadow: 
      inset 0 0 20px rgba(0, 102, 255, 0.3),
      0 0 30px rgba(0, 102, 255, 0.2);
  }
}

/* ============================================================ */
/* SLOT REELS */
/* ============================================================ */

.lng-slot__reel {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ============================================================ */
/* SLOT CELLS */
/* ============================================================ */

.lng-slot__cell {
  width: 80px;
  height: 80px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.lng-slot__cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 212, 170, 0.1) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.lng-slot__cell:hover::before {
  opacity: 1;
}

/* Symbol-specific styling */
.lng-slot__cell[data-symbol="rune"] {
  color: var(--cosmic-purple);
  text-shadow: var(--purple-glow);
  animation: runeShimmer 2s ease-in-out infinite;
}

.lng-slot__cell[data-symbol="star"] {
  color: var(--stellar-turquoise);
  text-shadow: var(--turquoise-glow);
  animation: starTwinkle 1.5s ease-in-out infinite;
}

.lng-slot__cell[data-symbol="galaxy"] {
  color: var(--galactic-blue);
  text-shadow: var(--blue-glow);
  animation: galaxyRotate 3s linear infinite;
}

.lng-slot__cell[data-symbol="orb"] {
  color: var(--star-glow);
  text-shadow: var(--star-glow-effect);
  animation: orbPulse 2.5s ease-in-out infinite;
}

.lng-slot__cell[data-symbol="cosmic"] {
  background: linear-gradient(135deg, var(--galactic-blue), var(--cosmic-purple));
  color: var(--star-glow);
  animation: cosmicSwirl 4s ease-in-out infinite;
}

/* Symbol animations */
@keyframes runeShimmer {
  0%, 100% { 
    text-shadow: var(--purple-glow);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.9);
    transform: scale(1.1);
  }
}

@keyframes starTwinkle {
  0%, 100% { 
    text-shadow: var(--turquoise-glow);
    opacity: 1;
  }
  50% { 
    text-shadow: 0 0 25px rgba(0, 212, 170, 0.9);
    opacity: 0.7;
  }
}

@keyframes galaxyRotate {
  0% { 
    transform: rotate(0deg);
    text-shadow: var(--blue-glow);
  }
  50% { 
    text-shadow: 0 0 25px rgba(0, 102, 255, 0.9);
  }
  100% { 
    transform: rotate(360deg);
    text-shadow: var(--blue-glow);
  }
}

@keyframes orbPulse {
  0%, 100% { 
    text-shadow: var(--star-glow-effect);
    transform: scale(1);
  }
  50% { 
    text-shadow: 0 0 40px rgba(255, 255, 255, 1);
    transform: scale(1.15);
  }
}

@keyframes cosmicSwirl {
  0% { 
    background: linear-gradient(135deg, var(--galactic-blue), var(--cosmic-purple));
  }
  33% { 
    background: linear-gradient(135deg, var(--cosmic-purple), var(--stellar-turquoise));
  }
  66% { 
    background: linear-gradient(135deg, var(--stellar-turquoise), var(--galactic-blue));
  }
  100% { 
    background: linear-gradient(135deg, var(--galactic-blue), var(--cosmic-purple));
  }
}

/* ============================================================ */
/* SPINNING ANIMATION */
/* ============================================================ */

.lng-slot__cell.spinning {
  animation: cellSpin 0.1s linear infinite;
  border-color: var(--galactic-blue);
  box-shadow: var(--blue-glow);
}

@keyframes cellSpin {
  0% { transform: translateY(0px); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(0px); }
  75% { transform: translateY(5px); }
  100% { transform: translateY(0px); }
}

/* Staggered spin animation for reels */
.lng-slot__reel:nth-child(1) .lng-slot__cell.spinning {
  animation-delay: 0s;
}

.lng-slot__reel:nth-child(2) .lng-slot__cell.spinning {
  animation-delay: 0.2s;
}

.lng-slot__reel:nth-child(3) .lng-slot__cell.spinning {
  animation-delay: 0.4s;
}

/* ============================================================ */
/* SPIN BUTTON */
/* ============================================================ */

.lng-slot__spin {
  background: linear-gradient(135deg, var(--galactic-blue), var(--cosmic-purple));
  color: var(--star-glow);
  border: none;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  z-index: 1;
}

.lng-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: var(--transition-smooth);
}

.lng-slot__spin:hover::before {
  left: 100%;
}

.lng-slot__spin:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.7);
}

.lng-slot__spin:active {
  transform: translateY(-1px) scale(1.02);
}

.lng-slot__spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================ */
/* SLOT NOTE */
/* ============================================================ */

.lng-slot__note {
  color: var(--rune-silver);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ============================================================ */
/* SLOT STATUS */
/* ============================================================ */

.lng-slot__status {
  background: var(--cosmic-mist);
  border: 1px solid var(--cosmic-purple);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--stellar-turquoise);
  font-weight: var(--font-weight-medium);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: statusGlow 3s ease-in-out infinite;
}

@keyframes statusGlow {
  0%, 100% { 
    border-color: var(--cosmic-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
  }
  50% { 
    border-color: var(--stellar-turquoise);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
  }
}

/* ============================================================ */
/* GALACTIC EFFECT OVERLAY */
/* ============================================================ */

.lng-galactic-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 40%);
  animation: galacticSwirl 10s linear infinite;
  border-radius: var(--radius-xl);
}

@keyframes galacticSwirl {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============================================================ */
/* DEMO HEADER */
/* ============================================================ */

.demo-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.demo-header h2 {
  color: var(--galactic-blue);
  margin-bottom: var(--space-md);
  animation: stellarPulse 3s ease-in-out infinite;
}

.demo-header p {
  color: var(--rune-silver);
  font-size: 1.1rem;
}

/* ============================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================ */

@media (max-width: 768px) {
  .lng-slot {
    padding: var(--space-lg);
    margin: var(--space-lg) auto;
  }
  
  .lng-slot__frame {
    padding: var(--space-md);
    gap: var(--space-xs);
  }
  
  .lng-slot__cell {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .lng-slot__title {
    font-size: 1.25rem;
  }
  
  .lng-slot__spin {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .lng-slot {
    padding: var(--space-md);
  }
  
  .lng-slot__cell {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .lng-slot__frame {
    padding: var(--space-sm);
  }
  
  .lng-slot__title {
    font-size: 1.1rem;
  }
  
  .lng-slot__spin {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .lng-slot__cell {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .lng-slot__frame {
    gap: 2px;
  }
}
