/* ==========================================================================
   HIDDENS · ANIMACOES ADITIVAS
   --------------------------------------------------------------------------
   O CSS principal (Tailwind) veio de um build de producao ja compilado, onde
   o Tailwind REMOVE (purge) toda classe que o site original nao usava. Por isso
   classes como animate-bounce / animate-ping / duration-700 / ease-in-out /
   motion-safe:* nao existem no arquivo compilado e nao animam nada.

   Este arquivo COMPLETA essas classes. Carregue-o DEPOIS do CSS principal.
   Todos os nomes de @keyframes usam o prefixo `hd-` para nao colidir.
   ========================================================================== */

@keyframes hd-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%      { transform: none;             animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes hd-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes hd-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes hd-fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes hd-slide-up    { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes hd-slide-down  { from { opacity: 0; transform: translateY(-24px) } to { opacity: 1; transform: none } }
@keyframes hd-slide-left  { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
@keyframes hd-slide-right { from { opacity: 0; transform: translateX(-24px) } to { opacity: 1; transform: none } }
@keyframes hd-zoom-in  { from { opacity: 0; transform: scale(.9) } to { opacity: 1; transform: none } }
@keyframes hd-zoom-out { from { opacity: 1; transform: none } to { opacity: 0; transform: scale(.9) } }
@keyframes hd-float   { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes hd-glow    { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }
@keyframes hd-wiggle  { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes hd-heartbeat { 0%, 100% { transform: scale(1) } 14% { transform: scale(1.12) } 28% { transform: scale(1) } 42% { transform: scale(1.12) } 70% { transform: scale(1) } }
@keyframes hd-shimmer { from { background-position: -200% 0 } to { background-position: 200% 0 } }
@keyframes hd-shake-x { 0%, 100% { transform: translateX(0) } 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
@keyframes hd-gradient { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }

/* ---- animacoes de destaque (as que faltavam) ---------------------------- */
.animate-bounce  { animation: hd-bounce 1s infinite; }
.animate-ping    { animation: hd-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-fade-in { animation: hd-fade-in .5s ease both; }
.animate-fade-out{ animation: hd-fade-out .5s ease both; }
.animate-slide-up   { animation: hd-slide-up .55s cubic-bezier(.16,1,.3,1) both; }
.animate-slide-down { animation: hd-slide-down .55s cubic-bezier(.16,1,.3,1) both; }
.animate-slide-left { animation: hd-slide-left .55s cubic-bezier(.16,1,.3,1) both; }
.animate-slide-right{ animation: hd-slide-right .55s cubic-bezier(.16,1,.3,1) both; }
.animate-zoom-in  { animation: hd-zoom-in .45s cubic-bezier(.16,1,.3,1) both; }
.animate-zoom-out { animation: hd-zoom-out .45s ease both; }
.animate-float    { animation: hd-float 3s ease-in-out infinite; }
.animate-glow     { animation: hd-glow 2.4s ease-in-out infinite; }
.animate-wiggle   { animation: hd-wiggle 1s ease-in-out infinite; }
.animate-heartbeat{ animation: hd-heartbeat 1.6s ease-in-out infinite; }
.animate-shimmer {
  background-size: 200% 100%;
  animation: hd-shimmer 2.2s linear infinite;
}
.animate-shake-x  { animation: hd-shake-x .6s ease-in-out; }
.animate-gradient {
  background-size: 200% 200%;
  animation: hd-gradient 4s ease infinite;
}

/* ---- corrige animacoes existentes que dependiam de variaveis ------------ */
/* sem --duration / --gap / --angle / --radius a animacao fica invalida
   (cuidado: --duration: var(--duration, x) e referencia circular -> invalido) */
:root {
  --gap: 1rem;
  --angle: 0;
  --radius: 100;
}
.animate-marquee {
  animation: marquee var(--duration, 40s) linear infinite;
}
.animate-marquee-vertical {
  animation: marquee-vertical var(--duration, 40s) linear infinite;
}
.animate-orbit {
  animation: orbit calc(var(--duration, 10) * 1s) linear infinite;
}

/* ---- utilitarios de transicao que faltavam ------------------------------ */
.transition-none      { transition-property: none; }
.duration-700         { transition-duration: .7s; }
.duration-1000        { transition-duration: 1s; }
.duration-1500        { transition-duration: 1.5s; }
.duration-2000        { transition-duration: 2s; }
.ease-linear          { transition-timing-function: linear; }
.ease-in              { transition-timing-function: cubic-bezier(.4, 0, 1, 1); }
.ease-out             { transition-timing-function: cubic-bezier(0, 0, .2, 1); }
.ease-in-out          { transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.delay-75             { transition-delay: 75ms; }
.delay-150            { transition-delay: 150ms; }
.delay-300            { transition-delay: 300ms; }
.delay-500            { transition-delay: 500ms; }
.delay-700            { transition-delay: 700ms; }
.delay-1000           { transition-delay: 1s; }
.will-change-transform{ will-change: transform; }
.will-change-opacity  { will-change: opacity; }

/* ---- variantes motion-safe: (so rodam se o usuario NAO pediu reduzir movimento) ---- */
@media (prefers-reduced-motion: no-preference) {
  .motion-safe\:animate-bounce   { animation: hd-bounce 1s infinite; }
  .motion-safe\:animate-ping     { animation: hd-ping 1s cubic-bezier(0, 0, .2, 1) infinite; }
  .motion-safe\:animate-fade-in  { animation: hd-fade-in .5s ease both; }
  .motion-safe\:animate-slide-up { animation: hd-slide-up .55s cubic-bezier(.16, 1, .3, 1) both; }
  .motion-safe\:animate-zoom-in  { animation: hd-zoom-in .45s cubic-bezier(.16, 1, .3, 1) both; }
  .motion-safe\:animate-float    { animation: hd-float 3s ease-in-out infinite; }
  .motion-safe\:animate-glow     { animation: hd-glow 2.4s ease-in-out infinite; }
  .motion-safe\:animate-wiggle   { animation: hd-wiggle 1s ease-in-out infinite; }
  .motion-safe\:animate-heartbeat{ animation: hd-heartbeat 1.6s ease-in-out infinite; }
  .motion-safe\:animate-marquee  { animation: marquee var(--duration, 40s) linear infinite; }
  .motion-safe\:animate-pulse    { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
  .motion-safe\:animate-spin     { animation: spin 1s linear infinite; }
}

/* variantes motion-reduce: (aplicam a versao sem animacao) */
@media (prefers-reduced-motion: reduce) {
  .motion-reduce\:animate-none     { animation: none; }
  .motion-reduce\:transition-none  { transition-property: none; }
}
