/*
 * Don't Say the Same Thing — Cyberpunk Game Night Theme
 */

/* === Background === */
body {
  background: linear-gradient(135deg, #0f0a2e 0%, #1a0533 40%, #0d1117 100%);
  min-height: 100vh;
}

/* Animated background particles */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(34, 211, 238, 0.2), transparent),
    radial-gradient(2px 2px at 70% 80%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(2px 2px at 10% 90%, rgba(236, 72, 153, 0.3), transparent),
    radial-gradient(2px 2px at 90% 50%, rgba(34, 211, 238, 0.15), transparent),
    radial-gradient(3px 3px at 50% 10%, rgba(251, 191, 36, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

body > * { position: relative; z-index: 1; }

/* === Glassmorphism Cards === */
.glass-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.06));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 1.25rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card-dark {
  background: linear-gradient(135deg, rgba(15, 10, 46, 0.8), rgba(26, 5, 51, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === Glow Effects === */
.glow-violet { box-shadow: 0 0 25px rgba(139, 92, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.1); }
.glow-pink { box-shadow: 0 0 25px rgba(236, 72, 153, 0.35), 0 0 60px rgba(236, 72, 153, 0.1); }
.glow-red { box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), 0 0 60px rgba(239, 68, 68, 0.1); }
.glow-green { box-shadow: 0 0 25px rgba(74, 222, 128, 0.35), 0 0 60px rgba(74, 222, 128, 0.1); }
.glow-gold { box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.15); }
.glow-amber { box-shadow: 0 0 25px rgba(251, 191, 36, 0.35), 0 0 60px rgba(251, 191, 36, 0.1); }
.glow-cyan { box-shadow: 0 0 25px rgba(34, 211, 238, 0.35), 0 0 60px rgba(34, 211, 238, 0.1); }

/* === Animations === */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1); }
  50% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.6), 0 0 70px rgba(139, 92, 246, 0.2); }
}

@keyframes pulse-glow-amber {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), 0 0 80px rgba(251, 191, 36, 0.2); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rainbow-border {
  0% { border-color: rgba(139, 92, 246, 0.5); }
  33% { border-color: rgba(236, 72, 153, 0.5); }
  66% { border-color: rgba(34, 211, 238, 0.5); }
  100% { border-color: rgba(139, 92, 246, 0.5); }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-pulse-glow-amber { animation: pulse-glow-amber 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.6s ease-in-out; }
.animate-slide-up { animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-scale-in { animation: scale-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-rainbow-border { animation: rainbow-border 4s linear infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, #c084fc, #f472b6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Buttons === */
.btn-gradient-violet {
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #ec4899);
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-gradient-violet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  border-radius: inherit;
}
.btn-gradient-violet:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-green {
  background: linear-gradient(135deg, #22c55e, #10b981, #06b6d4);
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-gradient-green::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  border-radius: inherit;
}
.btn-gradient-green:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-gradient-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  border-radius: inherit;
}
.btn-gradient-blue:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-purple {
  background: linear-gradient(135deg, #a855f7, #d946ef, #ec4899);
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-gradient-purple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  border-radius: inherit;
}
.btn-gradient-purple:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient-red {
  background: linear-gradient(135deg, #ef4444, #f43f5e, #ec4899);
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-gradient-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  border-radius: inherit;
}
.btn-gradient-red:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === Input === */
.input-dark {
  background: rgba(139, 92, 246, 0.08);
  border: 2px solid rgba(139, 92, 246, 0.25);
  color: white;
  border-radius: 0.75rem;
  transition: all 0.25s;
}
.input-dark::placeholder {
  color: rgba(196, 181, 253, 0.4);
}
.input-dark:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
}

/* === Category Pill === */
.category-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
}

/* === Progress Bar === */
.progress-track {
  background: rgba(139, 92, 246, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  height: 0.5rem;
}

.progress-fill {
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #22d3ee);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === Badge === */
.badge-host {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

/* === Divider === */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

/* === Player Row === */
.player-row {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  transition: all 0.2s;
}

.player-row:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}
