/* =========================================== */
/* BUTTON GLOW & PULSE EFFECTS 2026 */
/* Gradient glow on hover + pulsing animation */
/* =========================================== */

/* =========================================== */
/* GLOW EFFECT - Gradient glow on hover */
/* =========================================== */

.btn-glow {
  position: relative;
  overflow: visible !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  transform: translate(-50%, -50%);
  border-radius: inherit;
  background: inherit;
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.btn-glow:hover::before,
.btn-glow:focus::before {
  opacity: 0.8;
}

.btn-glow:active::before {
  opacity: 0.6;
}

/* Glow color variations for different button types */
.btn-primary.btn-glow::before {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  filter: blur(16px);
}

.btn-secondary.btn-glow::before {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  filter: blur(16px);
}

.btn-success.btn-glow::before {
  background: linear-gradient(135deg, #10b981, #34d399);
  filter: blur(16px);
}

.btn-danger.btn-glow::before {
  background: linear-gradient(135deg, #ef4444, #f87171);
  filter: blur(16px);
}

.btn-warning.btn-glow::before {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  filter: blur(16px);
}

.btn-info.btn-glow::before {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  filter: blur(16px);
}

.btn-outline-primary.btn-glow::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6));
  filter: blur(14px);
}

.btn-outline-secondary.btn-glow::before {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.6), rgba(156, 163, 175, 0.6));
  filter: blur(14px);
}

.btn-outline-success.btn-glow::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(52, 211, 153, 0.6));
  filter: blur(14px);
}

.btn-outline-danger.btn-glow::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(248, 113, 113, 0.6));
  filter: blur(14px);
}

.btn-outline-warning.btn-glow::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.6), rgba(251, 191, 36, 0.6));
  filter: blur(14px);
}

.btn-outline-info.btn-glow::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(96, 165, 250, 0.6));
  filter: blur(14px);
}

.btn-light.btn-glow::before {
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  filter: blur(16px);
}

.btn-dark.btn-glow::before {
  background: linear-gradient(135deg, #1f2937, #374151);
  filter: blur(16px);
}

/* =========================================== */
/* PULSE EFFECT - Continuous pulsing animation */
/* =========================================== */

.btn-pulse {
  position: relative;
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    transform: scale(1.02);
  }
}

/* Pulse color variations for different button types */
.btn-primary.btn-pulse {
  animation: pulse-glow-primary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-primary {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    transform: scale(1.02);
  }
}

.btn-secondary.btn-pulse {
  animation: pulse-glow-secondary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-secondary {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(107, 114, 128, 0);
    transform: scale(1.02);
  }
}

.btn-success.btn-pulse {
  animation: pulse-glow-success 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-success {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
}

.btn-danger.btn-pulse {
  animation: pulse-glow-danger 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-danger {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    transform: scale(1.02);
  }
}

.btn-warning.btn-pulse {
  animation: pulse-glow-warning 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-warning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    transform: scale(1.02);
  }
}

.btn-info.btn-pulse {
  animation: pulse-glow-info 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-info {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
    transform: scale(1.02);
  }
}

.btn-outline-primary.btn-pulse {
  animation: pulse-glow-outline-primary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-outline-primary {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    transform: scale(1.02);
  }
}

.btn-outline-secondary.btn-pulse {
  animation: pulse-glow-outline-secondary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow-outline-secondary {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(107, 114, 128, 0);
    transform: scale(1.02);
  }
}

/* =========================================== */
/* GLOW + PULSE - Combined effect */
/* =========================================== */

.btn-glow-pulse {
  position: relative;
  overflow: visible;
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-glow-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  transform: translate(-50%, -50%);
  border-radius: inherit;
  background: inherit;
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.btn-glow-pulse:hover::before,
.btn-glow-pulse:focus::before {
  opacity: 0.8;
}

.btn-glow-pulse:active::before {
  opacity: 0.6;
}

/* Combined effect color variations */
.btn-primary.btn-glow-pulse::before {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  filter: blur(16px);
}

.btn-primary.btn-glow-pulse {
  animation: pulse-glow-primary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-secondary.btn-glow-pulse::before {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  filter: blur(16px);
}

.btn-secondary.btn-glow-pulse {
  animation: pulse-glow-secondary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-success.btn-glow-pulse::before {
  background: linear-gradient(135deg, #10b981, #34d399);
  filter: blur(16px);
}

.btn-success.btn-glow-pulse {
  animation: pulse-glow-success 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-danger.btn-glow-pulse::before {
  background: linear-gradient(135deg, #ef4444, #f87171);
  filter: blur(16px);
}

.btn-danger.btn-glow-pulse {
  animation: pulse-glow-danger 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-warning.btn-glow-pulse::before {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  filter: blur(16px);
}

.btn-warning.btn-glow-pulse {
  animation: pulse-glow-warning 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-info.btn-glow-pulse::before {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  filter: blur(16px);
}

.btn-info.btn-glow-pulse {
  animation: pulse-glow-info 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =========================================== */
/* CONTAINER OVERFLOW FIXES */
/* =========================================== */

/* Ensure parent containers allow glow to show */
.collection-card-wrapper,
.collection-card,
.collection-card .card-body {
  overflow: visible !important;
}

.collection-cards-row {
  overflow: visible !important;
  padding: 16px 0 !important;
}

.collection-cards-row > [class*="col-"] {
  overflow: visible !important;
}

/* Ensure buttons in cards can show glow */
.collection-card-btn.btn-glow {
  margin: 8px !important;
  position: relative;
  z-index: 20;
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

.btn-glow,
.btn-pulse,
.btn-glow-pulse {
  will-change: transform, box-shadow, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* =========================================== */
/* ACCESSIBILITY - Respect reduced motion */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .btn-pulse,
  .btn-glow-pulse {
    animation: none !important;
  }
  
  .btn-glow::before,
  .btn-glow-pulse::before {
    transition: none !important;
    opacity: 0 !important;
  }
}

