/* Glow Button Styling - Based on https://codepen.io/kocsten/pen/rggjXp */

.btn,
.card-link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 2rem;
  min-width: 180px;
  border: none;
  outline: none;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn::before,
.card-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400%;
  filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
  z-index: -1;
  animation: glow-cycle 20s linear infinite;
}

.btn::after,
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #111111;
  border-radius: 10px;
  z-index: -1;
}

.btn:hover::before,
.card-link:hover::before {
  opacity: 1;
}

/* Removed active state color change that was causing issues */

.btn:focus-visible,
.card-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@keyframes glow-cycle {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Icon button variant */
.btn-icon {
  min-width: auto;
  width: 44px;
  height: 44px;
  padding: 0;
}

.btn-icon svg {
  transition: transform 0.3s ease;
}

.btn-icon.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Section header with title and action button */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header .section-title {
  margin-bottom: 0;
}
