/**
 * Animações CSS auxiliares
 */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; filter: blur(20px); }
  50% { opacity: 1; filter: blur(30px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-8px) translateX(4px); }
  66% { transform: translateY(4px) translateX(-6px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes twinkle-slow {
  0%, 100% { opacity: 0.02; }
  50% { opacity: 0.06; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* Estrela cadente - cauda nas frases caindo */
.shooting-star {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: -2.5em;
  left: 50%;
  width: 4px;
  height: 2.5em;
  background: linear-gradient(to bottom, transparent 0%, currentColor 40%, currentColor 100%);
  transform: translateX(-50%);
  opacity: 0.6;
  filter: blur(3px);
  pointer-events: none;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: -1.8em;
  left: 50%;
  width: 2px;
  height: 1.8em;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  transform: translateX(-50%);
  opacity: 0.5;
  filter: blur(1px);
  pointer-events: none;
}

/* Explosão colorida da estrela - último casal Pedro × Letícia */
.star-explode {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 25%, #6b8cff 50%, #4dffea 75%, #ffd93d 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: star-explode-pulse 2s ease-in-out infinite, star-explode-gradient 4s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(255, 107, 157, 0.6)) drop-shadow(0 0 24px rgba(196, 77, 255, 0.5)) drop-shadow(0 0 36px rgba(77, 255, 234, 0.4));
}

.star-explode::before {
  background: linear-gradient(to bottom, transparent 0%, #ff6b9d 30%, #c44dff 60%, #ffd93d 100%);
  opacity: 0.9;
  filter: blur(4px);
  height: 3em;
  width: 6px;
  animation: star-explode-tail 1.5s ease-in-out infinite alternate;
}

.star-explode::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
  opacity: 0.8;
  filter: blur(2px);
}

@keyframes star-explode-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 107, 157, 0.6)) drop-shadow(0 0 24px rgba(196, 77, 255, 0.5)) drop-shadow(0 0 36px rgba(77, 255, 234, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.9)) drop-shadow(0 0 40px rgba(196, 77, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 217, 61, 0.5));
    transform: scale(1.05);
  }
}

@keyframes star-explode-tail {
  0% { opacity: 0.7; transform: translateX(-50%) scaleY(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}

@keyframes star-explode-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

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

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

.animate-twinkle-slow {
  animation: twinkle-slow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-twinkle-slow {
    animation: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Glass effect para botões - premium */
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-glass:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.98);
}

.btn-glass:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Focus visible para botões secundários */
button:focus-visible,
[role="button"]:focus-visible,
.touch-target:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
