/* ========================
   Button Enhancements - Glassmorphic & Hover Effects
   ======================== */

/* Override existing button styles with higher specificity */
.btn.btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ea6004 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Bottom-up fill effect for all buttons */
.btn::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    background: linear-gradient(180deg, #666666 0%, #555555 100%) !important;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1 !important;
}

/* Hover states */
.btn:hover::before {
    height: 100% !important;
}

.btn:hover {
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure text and icons stay above the fill effect */
.btn span,
.btn i {
    position: relative !important;
    z-index: 2 !important;
    transition: color 0.3s ease !important;
}

/* Special glassmorphic hover state */
.btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Primary button enhancements */
.btn.btn-primary {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* White button enhancements */
.btn.btn-white {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.btn.btn-secondary-white {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Enhanced ripple effect */
.btn-ripple {
    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.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    z-index: 1 !important;
}

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

/* Button animation enhancements */
.btn-animated {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-animated:hover {
    animation: buttonPulse 0.6s ease-in-out !important;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 96, 4, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(234, 96, 4, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 96, 4, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-lg {
        padding: 0.8rem 1.6rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .btn-lg {
        padding: 0.7rem 1.4rem !important;
        font-size: 0.95rem !important;
    }
}