/* Theme Animations and Styles */

/* Star twinkling animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Firefly floating animation */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
  25% {
    transform: translate(20px, -30px);
    opacity: 1;
  }
  50% {
    transform: translate(-15px, -60px);
    opacity: 0.8;
  }
  75% {
    transform: translate(30px, -40px);
    opacity: 1;
  }
}

/* Ember rising animation */
@keyframes rise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Particle drifting animation */
@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, -50px);
  }
  100% {
    transform: translate(-50px, -100px);
    opacity: 0;
  }
}

/* Cosmic swirl animation (Luna's Chaotic Galaxy) */
@keyframes cosmic-swirl {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Bubble rising animation (Ooze Booze) */
@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50vh) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0;
  }
}

/* Fire particle rising (Hellfire Metal) */
@keyframes fire-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

/* Skull floating animation (Hellfire Metal) */
@keyframes skull-float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translate(30px, -20px) rotate(5deg);
    opacity: 0.3;
  }
  50% {
    transform: translate(-20px, -40px) rotate(-5deg);
    opacity: 0.25;
  }
  75% {
    transform: translate(40px, -30px) rotate(3deg);
    opacity: 0.3;
  }
}

/* Sparkle twinkling animation (Ultimate Rainbow) */
@keyframes sparkle-twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Neon pulse effect for buttons */
.neon-pulse-active .btn:not(:disabled),
.neon-pulse-active .tab-button.active {
  animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--neon-color-1, var(--primary-color)),
                0 0 10px var(--neon-color-1, var(--primary-color));
  }
  33% {
    box-shadow: 0 0 5px var(--neon-color-2, var(--secondary-color)),
                0 0 15px var(--neon-color-2, var(--secondary-color));
  }
  66% {
    box-shadow: 0 0 5px var(--neon-color-3, var(--accent-color)),
                0 0 10px var(--neon-color-3, var(--accent-color));
  }
}

/* Glow buttons effect (Luna's Chaotic Galaxy, Ooze Booze, Hellfire Metal) */
.glow-buttons-active .btn:hover,
.glow-buttons-active .tab-button.active,
.glow-buttons-active .session-card:hover {
  box-shadow: 0 0 15px var(--glow-color, var(--primary-color)),
              0 0 25px var(--glow-color, var(--primary-color));
}

/* Yellow glow effect for Tempest of Solace */
.theme-tempestOfSolace .btn:hover,
.theme-tempestOfSolace .tab-button.active {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
              0 0 20px rgba(255, 215, 0, 0.3);
}

.theme-tempestOfSolace .session-card:hover {
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

/* Starfall Unity theme glow */
.theme-starfallUnity .btn:hover,
.theme-starfallUnity .tab-button.active {
  box-shadow: 0 0 10px rgba(183, 148, 246, 0.5),
              0 0 20px rgba(183, 148, 246, 0.3);
}

/* The Campfire theme glow */
.theme-theCampfire .btn:hover,
.theme-theCampfire .tab-button.active {
  box-shadow: 0 0 10px rgba(255, 140, 66, 0.6),
              0 0 20px rgba(255, 140, 66, 0.4);
}

.theme-theCampfire .session-card:hover {
  box-shadow: 0 4px 20px rgba(255, 140, 66, 0.3);
}

/* Luna's Chaotic Galaxy theme glow */
.theme-lunasChaoticGalaxy .btn:hover,
.theme-lunasChaoticGalaxy .tab-button.active {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5),
              0 0 20px rgba(168, 85, 247, 0.3);
}

/* Ooze Booze theme glow */
.theme-oozeBooze .btn:hover,
.theme-oozeBooze .tab-button.active {
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.6),
              0 0 20px rgba(57, 255, 20, 0.4);
}

.theme-oozeBooze .session-card:hover {
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.3);
}

/* Hellfire Metal theme glow */
.theme-hellfireMetal .btn:hover,
.theme-hellfireMetal .tab-button.active {
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.6),
              0 0 20px rgba(255, 69, 0, 0.4);
}

.theme-hellfireMetal .session-card:hover {
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
}

/* Ultimate Rainbow theme rainbow glow */
.theme-ultimateRainbow .btn:hover,
.theme-ultimateRainbow .tab-button.active {
  animation: rainbow-glow 2s infinite;
}

@keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
  }
  33% {
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  }
  66% {
    box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
  }
}

/* Theme transition effects */
body {
  transition: background-color 0.5s ease;
}

.btn,
.tab-button,
.session-card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Themes Grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Theme Tile */
.theme-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.theme-tile:not(.locked):hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.theme-tile.active {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}

.theme-tile.locked {
  opacity: 0.6;
}

/* Button sizing */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
