/* ============================================
   CLUBE DE TIRO TRIUNFO - ANIMATIONS
   Efeitos temáticos de tiro: balas, alvos, etc.
   ============================================ */

/* ============================================
   BULLET ANIMATIONS - Pistol (left) + Text + Bullet (right)
   ============================================ */



   /* === CENTRALIZAR CONTEÚDO (arma + texto + bala) NO btn--bullet === */


.btn.btn--bullet{
  justify-content: center !important;
  gap: 12px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.btn.btn--bullet .gun-icon,
.btn.btn--bullet .pistol-icon,
.btn.btn--bullet .bullet-icon{
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  /* transform: none !important; */
}


/* Button with pistol and bullet icons */
.btn--bullet {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 36px !important;
  padding-right: 36px !important;
}

/* Pistol icon - left side */
.btn--bullet .pistol-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: currentColor;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.btn--bullet:hover .pistol-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* Bullet icon - right side, horizontal (laying down, pointing right) */
.btn--bullet .bullet-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12.4px;
  height: 7.2px;
  transform: translateY(-50%) rotate(180deg);
  color: #ffffff;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.btn--bullet:hover .bullet-icon {
  color: #ffffff;
  filter: brightness(1.2);
}

.btn--bullet:active .bullet-icon {
  transform: translateY(-50%) rotate(180deg) scale(0.95);
}

/* Shine sweep effect ONLY on bullet (right side) */
.btn--bullet::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 24px;
  height: 14px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 50%, 
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.btn--bullet:hover::after {
  animation: bulletShineSweep 1.5s ease-in-out infinite;
}

/* @keyframes bulletShineSweep {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(-800%);
  }
} */

/* ============================================
   HOVER HINT - "Entrar em contato"
   ============================================ */

.btn--hover-hint {
  position: relative;
  overflow: visible;
}

.btn--hover-hint .hover-hint {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--red-primary, #b01616);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.btn--hover-hint:hover .hover-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* ============================================
   TARGET ANIMATIONS
   ============================================ */

/* Floating Target Animation */
.target-float {
  animation: targetFloat 6s ease-in-out infinite;
}

@keyframes targetFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-20px) rotate(1deg);
  }
}

/* Target Hit Effect */
.target-hit {
  animation: targetHit 0.5s ease-out;
}

@keyframes targetHit {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  20% {
    transform: scale(0.95);
    filter: brightness(1.5);
  }
  40% {
    transform: scale(1.05);
    filter: brightness(1);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* ============================================
   SILHOUETTE TARGET ANIMATIONS
   ============================================ */

/* Silhouette Reveal Animation */
.silhouette-reveal {
  opacity: 0;
  transform: translateY(50px);
  animation: silhouetteReveal 0.8s ease-out forwards;
}

@keyframes silhouetteReveal {
  to {
    opacity: 0.15;
    transform: translateY(0);
  }
}

/* Silhouette Pulse (like a heartbeat when targeting) */
.silhouette-pulse {
  animation: silhouettePulse 2s ease-in-out infinite;
}

@keyframes silhouettePulse {
  0%, 100% {
    opacity: 0.08;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 0.12;
    filter: drop-shadow(0 0 10px rgba(176, 22, 22, 0.3));
  }
}

/* ============================================
   MUZZLE FLASH EFFECT
   ============================================ */

.muzzle-flash {
  position: relative;
}

.muzzle-flash::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.9), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.muzzle-flash.fire::before {
  animation: muzzleFlash 0.15s ease-out;
}

@keyframes muzzleFlash {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  50% {
    width: 60px;
    height: 60px;
    opacity: 0.8;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
  }
}

/* ============================================
   RECOIL EFFECT
   ============================================ */

.recoil {
  transition: transform 0.1s ease-out;
}

.recoil:active {
  animation: recoilKick 0.15s ease-out;
}

@keyframes recoilKick {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ============================================
   SCOPE/CROSSHAIR ANIMATIONS
   ============================================ */

/* Crosshair Focus */
.crosshair-focus {
  position: relative;
}

.crosshair-focus::before,
.crosshair-focus::after {
  content: '';
  position: absolute;
  background: rgba(176, 22, 22, 0.5);
  opacity: 0;
  transition: all 0.3s ease;
}

.crosshair-focus::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%) scaleX(0);
}

.crosshair-focus::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%) scaleY(0);
}

.crosshair-focus:hover::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

.crosshair-focus:hover::after {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

/* ============================================
   SHELL EJECTION
   ============================================ */

.shell-eject {
  position: relative;
}

.shell {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 12px;
  height: 6px;
  background: linear-gradient(180deg, #c9a227, #8b7355);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.shell-eject:active .shell {
  animation: shellEject 0.5s ease-out;
}

@keyframes shellEject {
  0% {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(50px) rotate(720deg);
  }
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

/* Card with Target Corner */
.card-target-corner {
  position: relative;
  overflow: hidden;
}

.card-target-corner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: url('../assets/target-mini.svg') center/contain no-repeat;
  opacity: 0;
  transform: rotate(-15deg);
  transition: all 0.4s ease;
}

.card-target-corner:hover::before {
  opacity: 0.15;
  top: 10px;
  right: 10px;
}

/* Card with Bullet Hole Effect */
.card-bullet-hole {
  position: relative;
}

.card-bullet-hole::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: url('../assets/bullet-hole.svg') center/contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-bullet-hole:hover::after {
  opacity: 0.3;
  animation: bulletHoleAppear 0.3s ease-out;
}

@keyframes bulletHoleAppear {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Fade In Up */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In Left */
.animate-fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In Right */
.animate-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale In */
.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Children Animation */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.parallax-slow {
  transition: transform 0.1s linear;
}

.parallax-medium {
  transition: transform 0.08s linear;
}

.parallax-fast {
  transition: transform 0.05s linear;
}

/* ============================================
   GLITCH/TACTICAL TEXT EFFECT
   ============================================ */

.text-tactical {
  position: relative;
  display: inline-block;
}

.text-tactical::before,
.text-tactical::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.text-tactical:hover::before {
  animation: glitchTop 0.3s ease forwards;
  color: var(--red-primary);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.text-tactical:hover::after {
  animation: glitchBottom 0.3s ease forwards;
  color: var(--gold);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 0.8;
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-1px);
  }
  80%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes glitchBottom {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 0.8;
    transform: translateX(3px);
  }
  40% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(1px);
  }
  80%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
}

/* ============================================
   LOADING/PROGRESS ANIMATIONS
   ============================================ */

/* Magazine Loading */
.loading-magazine {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-magazine::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-primary), var(--gold));
  animation: magazineLoad 2s ease-in-out infinite;
}

@keyframes magazineLoad {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

/* ============================================
   CURSOR EFFECTS
   ============================================ */

/* Custom Crosshair Cursor */
.cursor-crosshair {
  cursor: crosshair;
}

/* Target Zone Cursor */
.cursor-target {
  cursor: url('../assets/cursor-target.svg') 16 16, crosshair;
}

/* ============================================
   SMOKE/PARTICLE EFFECTS
   ============================================ */

.smoke-effect {
  position: relative;
  overflow: hidden;
}

.smoke-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: smokeRise 1s ease-out forwards;
}

@keyframes smokeRise {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(2);
  }
}

/* ============================================
   SPECIAL HOVER STATES
   ============================================ */

/* Red Glow on Hover */
.hover-glow-red {
  transition: box-shadow 0.3s ease;
}

.hover-glow-red:hover {
  box-shadow: 0 0 30px rgba(176, 22, 22, 0.4);
}

/* Gold Accent on Hover */
.hover-accent-gold {
  transition: all 0.3s ease;
}

.hover-accent-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

/* Scale Up Smooth */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Lift Up */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   IMAGE REVEAL EFFECTS
   ============================================ */

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal img {
  transition: transform 0.6s ease;
}

.img-reveal:hover img {
  transform: scale(1.1);
}

.img-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 22, 22, 0.2), transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-reveal:hover::before {
  opacity: 1;
}

/* ============================================
   NOTIFICATION/BADGE PULSE
   ============================================ */

.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(176, 22, 22, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(176, 22, 22, 0);
  }
}

/* ============================================
   COUNTER/NUMBER ANIMATIONS
   ============================================ */

.count-up {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.count-up.counting {
  color: var(--red-primary);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-scale-in,
  .animate-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
