/**
 * Button Interaction Restore
 * Restores btn-hover-glow, btn-ripple, and micro-interaction effects
 * Created: 2025-09-08
 * Purpose: Fix button interactive effects that were overridden
 */

/* Restore hover glow effect */
.btn-hover-glow {
    position: relative !important;
    transition: all 0.3s ease !important;
}

.btn-hover-glow:hover {
    box-shadow: 0 0 25px rgba(242, 62, 173, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Restore ripple effect */
.btn-ripple {
    position: relative !important;
    overflow: hidden !important;
}

.btn-ripple::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    transition: all 0.5s ease !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
}

.btn-ripple:active::after {
    width: 300px !important;
    height: 300px !important;
    opacity: 0 !important;
}

/* Micro-interaction effects */
.micro-interaction {
    position: relative !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.micro-interaction:hover {
    transform: translateY(-2px) !important;
}

.micro-interaction:active {
    transform: scale(0.98) !important;
}

/* Make Join Now button look great again */
.btn-dna--primary.btn-hover-glow.btn-ripple {
    background: linear-gradient(135deg, #f23ead 0%, #d91872 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 14px 36px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 20px rgba(242, 62, 173, 0.25) !important;
    transition: all 0.3s ease !important;
}

.btn-dna--primary.btn-hover-glow.btn-ripple:hover {
    background: linear-gradient(135deg, #d91872 0%, #b71560 100%) !important;
    box-shadow: 0 0 30px rgba(242, 62, 173, 0.6), 
                0 8px 25px rgba(242, 62, 173, 0.4) !important;
    transform: translateY(-3px) !important;
}

.btn-dna--primary.btn-hover-glow.btn-ripple:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(242, 62, 173, 0.4) !important;
}

/* Ensure the arrow icon animates on hover */
.btn-dna--primary i.fa-arrow-right {
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.btn-dna--primary:hover i.fa-arrow-right {
    transform: translateX(5px) !important;
}

/* Fix the span inside button to not break layout */
.btn span {
    display: inline-block !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Large button specific styling */
.btn-lg.btn-dna--primary {
    min-height: 56px !important;
    padding: 16px 40px !important;
    font-size: 1.2rem !important;
}

/* Ensure button text is always visible */
.btn-dna--primary span,
.btn-dna--primary i {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Polish for the complete button */
.hero-modern__cta .btn-dna--primary {
    margin: 10px 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Add a subtle pulse animation to draw attention */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(242, 62, 173, 0.25);
    }
    50% {
        box-shadow: 0 4px 30px rgba(242, 62, 173, 0.35);
    }
    100% {
        box-shadow: 0 4px 20px rgba(242, 62, 173, 0.25);
    }
}

.hero-modern__cta .btn-dna--primary {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.hero-modern__cta .btn-dna--primary:hover {
    animation: none;
}

/* Fix button focus state */
.btn-dna--primary:focus {
    outline: 3px solid rgba(242, 62, 173, 0.5) !important;
    outline-offset: 2px !important;
}

/* Ensure proper stacking context */
.btn-hover-glow,
.btn-ripple,
.micro-interaction {
    z-index: 1;
}