/* 
 * Button Enhancements CSS
 * Improves the modern button system with enhanced hover effects
 */

/* Enhanced Hover Scale Effect */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background-position 0.4s ease;
    position: relative;
    overflow: hidden;
    background-position: 0% 0%;
    background-size: 200% auto;
    z-index: 1;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    background-position: 100% 0%;
}

.hover-scale:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced Modern Success Button */
.btn-modern-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern-success:hover {
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background-position: 100% 0%;
}

.btn-modern-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.8s ease;
    z-index: 2;
}

.btn-modern-success:hover::before {
    left: 100%;
}

/* Button Pulse Effect */
@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-modern-success:focus {
    animation: pulse-success 1.5s infinite;
}

/* Enhanced Modern Button Base */
.btn-modern {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-size: 200% auto;
}

/* Improved hover-scale-sm for smaller elements */
.hover-scale-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale-sm:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}