/* ----- Vote Section Container with animated background ----- */
.vote-section {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, #2a1a00 0%, #0f0f0f 80%);
  border-radius: 16px;
  box-shadow: 0 0 30px #facc15aa;
  user-select: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
  overflow: hidden;
}

/* Fade-in visible class */
.vote-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glowing animated border */
.vote-section::before {
  content: "";
  position: absolute;
  top: -3px; bottom: -3px; left: -3px; right: -3px;
  border-radius: 20px;
  background: linear-gradient(270deg, #facc15, #dc2626, #facc15, #dc2626);
  background-size: 600% 600%;
  animation: gradientShift 8s ease infinite;
  filter: blur(6px);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Content on top */
.vote-section > * {
  position: relative;
  z-index: 1;
}

/* Title with glowing text */
.vote-section h2 {
  color: #facc15;
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  font-weight: 900;
  text-shadow:
    0 0 8px #facc15bb,
    0 0 20px #facc15cc,
    0 0 30px #dc2626bb;
  user-select: none;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {text-shadow: 0 0 8px #facc15bb;}
  100% {text-shadow: 0 0 25px #facc15ff, 0 0 40px #dc2626ff;}
}

/* Description paragraph */
.vote-section p {
  color: #ddd;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-weight: 600;
  user-select: none;
  filter: drop-shadow(0 0 4px #facc1577);
}

/* Vote buttons grid */
.vote-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.vote-section.visible .vote-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Vote button base style */
.vote-btn {
  display: inline-block;
  padding: 1.5rem 0;
  background: linear-gradient(270deg, #dc2626, #facc15, #dc2626);
  background-size: 600% 600%;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 18px;
  box-shadow: 0 0 10px #facc15cc, inset 0 0 15px #facc15bb;
  text-decoration: none;
  user-select: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: buttonGlow 6s ease infinite;
}

@keyframes buttonGlow {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.vote-btn:hover,
.vote-btn:focus {
  transform: scale(1.15);
  box-shadow: 0 0 30px #facc15ff, inset 0 0 20px #facc15ff;
  outline: none;
  cursor: pointer;
  color: #111111;
}

/* Sparkle animation */
.vote-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.15), transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: sparkle 4s linear infinite;
  transition: opacity 0.3s;
  border-radius: 18px;
  mix-blend-mode: screen;
}

.vote-btn:hover::after,
.vote-btn:focus::after {
  opacity: 1;
}

@keyframes sparkle {
  0% { background-position: 0% 0%, 100% 100%; }
  50% { background-position: 50% 50%, 50% 50%; }
  100% { background-position: 0% 0%, 100% 100%; }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .vote-section {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  .vote-section h2 {
    font-size: 2.2rem;
  }

  .vote-section p {
    font-size: 1rem;
  }

  .vote-btn {
    font-size: 1.1rem;
    padding: 1.2rem 0;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .vote-section h2 {
    font-size: 1.8rem;
  }

  .vote-section p {
    font-size: 0.95rem;
  }

  .vote-btn {
    font-size: 1rem;
    padding: 1rem 0;
  }
}
