/* https://codepen.io/bogdansandu/pen/yyejpgR */

/* 神奇的按钮 */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Base button styles */
.btn {
    position: relative;
    padding: 12px 24px;
    border: none;
    outline: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

/* Button 1: Gradient Slide */
.btn-gradient-slide {
    background: linear-gradient(90deg, #ff6b6b, #ffa36c);
    color: white;
    z-index: 1;
}

.btn-gradient-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6a67ce, #79dae8);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-gradient-slide:hover::before {
    left: 0;
}

/* Button 2: 3D Lift */
.btn-3d-lift {
    background: linear-gradient(145deg, #6a67ce, #5a57b8);
    color: white;
    box-shadow: 0 6px 0 #4a4799, 0 8px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.btn-3d-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 #4a4799, 0 14px 20px rgba(0, 0, 0, 0.3);
}

.btn-3d-lift:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a4799, 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Button 3: Border Animation */
.btn-border-animate {
    background: transparent;
    color: #79dae8;
    border: 2px solid transparent;
    position: relative;
}

.btn-border-animate::before,
.btn-border-animate::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #79dae8;
    transition: all 0.5s ease;
}

.btn-border-animate::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-border-animate::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.btn-border-animate:hover::before,
.btn-border-animate:hover::after {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
}

/* Button 4: Glow Effect */
.btn-glow {
    background: #1a1a2e;
    color: #98ddca;
    border: 1px solid #98ddca;
    box-shadow: 0 0 5px rgba(152, 221, 202, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(152, 221, 202, 0.8), 0 0 30px rgba(152, 221, 202, 0.6);
    background: rgba(152, 221, 202, 0.1);
}

/* Button 5: Liquid Fill */
.btn-liquid {
    width: 200px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.pay-standard {
    color: #0EBEFF;
    border: 2px solid #0EBEFF;
}

.pay-invoice {
    color: #f0e130;
    border: 2px solid #f0e130;
}

.pay-standard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0EBEFF;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.pay-invoice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0e130;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-liquid:hover {
    color: #1a1a2e;
}

.btn-liquid:hover::before {
    transform: translateX(0);
}

/* Button 6: Icon Reveal */
.btn-icon-reveal {
    background: #ff6b6b;
    color: white;
    gap: 8px;
}

.btn-icon-reveal i {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.btn-icon-reveal:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Button 7: Magnetic Effect */
.btn-magnetic {
    background: linear-gradient(135deg, #98ddca, #79dae8);
    color: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.btn-magnetic span {
    position: relative;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.btn-magnetic:hover::before {
    transform: scale(2.5);
}

/* Button 8: Shine Effect */
.btn-shine {
    background: linear-gradient(135deg, #6a67ce, #ff6b6b);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Button 9: Bounce Effect */
.btn-bounce {
    background: #ffa36c;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-bounce:hover {
    animation: none;
    transform: scale(1.1);
}

/* Button 10: Neumorphic */
.btn-neumorphic {
    background: #1a1a2e;
    color: #a0a0c0;
    border-radius: 12px;
    box-shadow: 8px 8px 16px #0f0f1a, -8px -8px 16px #252542;
}

.btn-neumorphic:hover {
    box-shadow: inset 8px 8px 16px #0f0f1a, inset -8px -8px 16px #252542;
    color: #79dae8;
}

/* Button 11: Split Hover */
.btn-split {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    position: relative;
    overflow: hidden;
}

.btn-split::before,
.btn-split::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: #ff6b6b;
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-split::before {
    top: 0;
    left: -50%;
}

.btn-split::after {
    top: 0;
    right: -50%;
}

.btn-split:hover {
    color: white;
}

.btn-split:hover::before {
    left: 0;
}

.btn-split:hover::after {
    right: 0;
}

/* Button 12: Text Shift */
.btn-text-shift {
    background: #79dae8;
    color: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.btn-text-shift span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-text-shift:hover span {
    transform: translateY(-100%);
}

.btn-text-shift::after {
    content: 'Hover Effect';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s ease;
}

.btn-text-shift:hover::after {
    top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}