/* encuestas.com.do — subtle motion & polish */
@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.35);
  }
}

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

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

/* Alpine x-cloak */
[x-cloak] {
  display: none !important;
}

/* Skip link fallback if Tailwind `not-sr-only` variant is unavailable */
a[href='#main-content']:focus {
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* HTMX: spinner solo durante la petición */
.htmx-indicator {
  display: none;
}
.htmx-indicator.htmx-request {
  display: flex;
}

/* Voto instantáneo: toast y barras */
@keyframes vote-success-pop {
  0% {
    transform: scale(0.94);
    opacity: 0;
  }
  55% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.vote-success-pop {
  animation: vote-success-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.poll-result-bar {
  min-width: 0;
}

/* Tema claro (site_settings.theme = light) */
html[data-theme='light'] .site-header .text-white {
  color: #18181b;
}
html[data-theme='light'] .site-header .text-zinc-300,
html[data-theme='light'] .site-header .text-zinc-400 {
  color: #52525b;
}
html[data-theme='light'] .site-header .border-zinc-700\/90,
html[data-theme='light'] .site-header .border-zinc-800 {
  border-color: rgb(228 228 231 / 0.95);
}
html[data-theme='light'] .site-header .bg-\[\#111827\]\/90,
html[data-theme='light'] .site-header .bg-\[\#111827\]\/95,
html[data-theme='light'] .site-header .bg-zinc-900\/60 {
  background-color: rgb(244 244 245 / 0.95);
}

/* Acento oro: refuerzo en enlaces teal del header */
html[data-accent='gold'] .site-header .text-teal-200\/95 {
  color: rgb(251 191 36 / 0.95);
}
html[data-accent='gold'] .site-header .border-teal-500\/25 {
  border-color: rgb(245 158 11 / 0.35);
}
