/* Button Animation Effects */

/* Sparkle/Star Animation for Buttons */
@keyframes sparkle {
  0% {
    background-position: 0% 0%;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0;
  }
  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
  }
}

/* Shine Animation */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Click Animation */
@keyframes click-wave {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(166, 206, 57, 0.6);
  }
  70% {
    transform: scale(0.97);
    box-shadow: 0 0 0 10px rgba(166, 206, 57, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(166, 206, 57, 0);
  }
}

/* Enhanced Donate Button Styles */
.donate-btn {
  position: relative;
  display: inline-block;
  padding: 1.2rem 2.5rem; /* Increased size */
  border-radius: 12px;
  background: var(--gb-green);
  color: #111;
  text-decoration: none;
  font-weight: 800; /* Bolder */
  font-size: 1.3rem; /* Larger font */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  overflow: hidden;
}

.donate-btn:hover {
  background: var(--gb-blue);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

.donate-btn:active {
  animation: click-wave 0.5s ease-out;
}

/* Sparkle effect */
.donate-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 15% 15%;
  background-position: 0 0, 20% 20%, 40% 40%, 60% 60%, 80% 80%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.donate-btn:hover::before {
  animation: sparkle 1.5s linear infinite;
}

/* Shine effect */
.donate-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.donate-btn:hover::after {
  animation: shine 1.5s infinite;
}

/* Enhanced Nav Donate Button */
.nav-donate {
  position: relative;
  font-weight: 800;
  background: var(--gb-green);
  color: #fff;
  padding: 0.7rem 1.2rem; /* Increased size */
  border-radius: 0.8rem;
  text-decoration: none;
  font-size: 1.05rem; /* Larger font */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 15px rgba(0,0,0,.08);
  overflow: hidden;
}

.nav-donate:hover {
  background: var(--gb-blue);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.nav-donate:active {
  animation: click-wave 0.5s ease-out;
}

.nav-donate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.nav-donate:hover::after {
  animation: shine 1.5s infinite;
}

/* Enhanced Support Button */
#gbSupportBtn {
  position: relative;
  padding: 0.9rem 1.5rem; /* Increased size */
  font-size: 1.1rem; /* Larger font */
  font-weight: 800; /* Bolder */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  overflow: hidden;
}

#gbSupportBtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

#gbSupportBtn:active {
  animation: click-wave 0.5s ease-out;
}

/* Sparkle effect */
#gbSupportBtn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 15% 15%;
  background-position: 0 0, 20% 20%, 40% 40%, 60% 60%, 80% 80%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

#gbSupportBtn:hover::before {
  animation: sparkle 1.5s linear infinite;
}

/* Shine effect */
#gbSupportBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

#gbSupportBtn:hover::after {
  animation: shine 1.5s infinite;
}

/* Submit Button Animation */
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 15% 15%;
  background-position: 0 0, 20% 20%, 40% 40%, 60% 60%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

button[type="submit"].clicked::before {
  animation: sparkle 1s linear;
}

/* Applied to form submissions */
.form-success-animation {
  animation: pulse 1s ease;
}
