@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(90deg, #a855f7, #ec4899, #3b82f6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

.neon-border {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
}

.neon-border-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5), 0 0 40px rgba(147, 51, 234, 0.3);
}

.neon-border-gray {
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.5), 0 0 20px rgba(100, 100, 100, 0.3);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: calc(100% - 3rem);
}

.toast {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toast.toast-destructive {
  background: rgba(185, 28, 28, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.toast.toast-success {
  background: rgba(22, 101, 52, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.toast.toast-purple {
  background: rgba(88, 28, 135, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.toast-title {
  font-weight: 700;
  font-size: 1rem;
}

.toast-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 3px;
}

/* Custom Progress Bar styling */
.progress-bar-bg {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease-out;
}

/* Streamer-focused interactive hover effect */
.streamer-card-hover {
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease-out, border-color 0.22s ease-out;
  will-change: transform, box-shadow;
}

.streamer-card-hover:hover:not(.voted-card) {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(236, 72, 153, 0.7) !important;
  box-shadow: 
    0 0 25px rgba(168, 85, 247, 0.6),
    0 0 50px rgba(236, 72, 153, 0.4),
    inset 0 0 15px rgba(236, 72, 153, 0.2);
}

.streamer-card-hover:hover:not(.voted-card) img {
  transform: scale(1.04);
  transition: transform 0.25s ease-out;
}

.streamer-card-hover:hover:not(.voted-card) button {
  background: linear-gradient(90deg, #ec4899, #a855f7) !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
  transform: scale(1.02);
}

/* Disable hover transforms completely when voted to prevent covering the Siguiente button */
.streamer-card-hover.voted-card,
.voted-card,
.voted-card:hover {
  transform: none !important;
  box-shadow: none !important;
  cursor: default !important;
}

.voted-card img,
.voted-card:hover img {
  transform: none !important;
}
