/**
 * Donation Button Styles
 *
 * CSS styles for donation buttons and quick links using the party website color scheme
 * Primary colors: Purple (#6A0DAD), Golden (#FFD700), White (#FFFFFF)
 */

/* Base donate button styles */
.donate-btn {
    --primary-color: #6A0DAD;
    --primary-dark: #4B0082;
    --secondary-color: #FFD700;
    --secondary-dark: #DAA520;
    --light-color: #FFFFFF;
    
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

/* Primary style (purple with gold text) */
.donate-btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(106, 13, 173, 0.2);
}

.donate-btn.primary:hover,
.donate-btn.primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(106, 13, 173, 0.3);
}

/* Secondary style (gold with purple text) */
.donate-btn.secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
}

.donate-btn.secondary:hover,
.donate-btn.secondary:focus {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(255, 215, 0, 0.3);
}

/* Outline style */
.donate-btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(106, 13, 173, 0.1);
}

.donate-btn.outline:hover,
.donate-btn.outline:focus {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(106, 13, 173, 0.2);
}

/* Floating button style */
.donate-btn.floating {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.donate-btn.floating:hover,
.donate-btn.floating:focus {
    background-color: var(--secondary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Shimmer effect for donate buttons */
.donate-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.donate-btn:hover:after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* Button animations */
@keyframes shimmer {
    0% {
        transform: translateX(-150%) rotate(30deg);
    }
    100% {
        transform: translateX(150%) rotate(30deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(106, 13, 173, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(106, 13, 173, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(106, 13, 173, 0.2);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .donate-btn.floating {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Accessible focus states */
.donate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.5);
}

.donate-btn.secondary:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}
