/* Magic Button Component Styles */
.magic-button {
    position: relative;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--button-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: var(--button-text, white);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.magic-button-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.magic-button-md { padding: 0.75rem 1.5rem; font-size: 1rem; }
.magic-button-lg { padding: 1rem 2rem; font-size: 1.125rem; }

.magic-button:hover:not(.magic-button-disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.magic-button-rainbow {
    background: linear-gradient(135deg, 
        #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 200% 200%;
    animation: rainbow-flow 3s linear infinite;
}

.magic-button-shimmer-effect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.magic-button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer-slide 2s infinite;
}

.magic-button-shine {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.magic-button-shine:hover {
    box-shadow: 0 0 20px rgba(252, 182, 159, 0.6);
}

.magic-button-pulsating {
    animation: pulsate 2s infinite;
}

.magic-button-interactive:hover {
    transform: scale(1.05) translateY(-2px);
}

.magic-button-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.magic-button-loading {
    pointer-events: none;
}

.magic-button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.magic-button-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.magic-button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulsate {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
} 