/*
Theme Name: Mercury Child
Theme URI: https://mercurytheme.com/
Description: Child theme for Mercury theme
Author: MercuryTheme.com
Author URI: https://mercurytheme.com/
Template: mercury
Version: 3.9.6
*/
@import url("../mercury/style.css");

/* Global redirect buttons styling */
button[data-go],
button[data-href] {
  background: linear-gradient(90deg, #ef5a5a 0%, #eb1313 55%, #ef5a5a 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(123, 163, 40, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: big-bass-pulse 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Force all child elements (like .mb-text in MaxButtons) to be white and bold */
button[data-go] *,
button[data-href] * {
  color: #ffffff;
  font-weight: 700;
  padding-top: 0;
  text-align: center;
}

/* Specific styling for the archive list button which needs padding */
.space-organizations-8-archive-item-button-two button {
  padding: 12px 28px;
}

/* Shine overlay effect on hover */
button[data-go]::after,
button[data-href]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

button[data-go]:hover::after,
button[data-href]:hover::after {
  opacity: 1;
  left: 125%;
}

button[data-go]:hover,
button[data-href]:hover {
  background: linear-gradient(90deg, #ef5a5a 0%, #eb1313 55%, #ef5a5a 100%);
  box-shadow: 0 6px 20px rgba(123, 163, 40, 0.5), 0 0 12px rgba(184, 117, 20, 0.35);
  transform: translateY(-2px) scale(1.03);
}

button[data-go]:active,
button[data-href]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(123, 163, 40, 0.25);
}

/* Cyclic attractive pulse animation */
@keyframes big-bass-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(123, 163, 40, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(123, 163, 40, 0.55),
      0 0 12px rgba(184, 117, 20, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(123, 163, 40, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.25);
  }
}