/* Donation Modal Styles */
.modal {
    background-color: rgba(16, 20, 28, 0.8);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease-in-out;
}

/* Donation Button Styles */
.donation-button {
    background: linear-gradient(135deg, #10b981, #059669);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.donation-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-exit {
    animation: modalFadeOut 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

/* Quick amount buttons */
.quick-amount-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-amount-btn:hover {
    transform: translateY(-2px);
}

.quick-amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-amount-btn:hover::before {
    left: 100%;
}

/* Balance display enhancement */
.balance-highlight {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Success and error states */
.donation-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    animation: successPulse 2s ease-in-out;
}

.donation-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Heart animation for donation button */
.heart-pulse {
    animation: heartPulse 2s infinite;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Loading state */
.donation-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.donation-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
    .donation-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .quick-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .donation-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Social Media Section Animations */
.social-platform-pulse {
    animation: socialPulse 2s ease-in-out infinite;
}

@keyframes socialPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Social Media Gradient Animation */
.social-gradient {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    animation: socialShine 3s ease-in-out infinite;
}

@keyframes socialShine {
    0% {
        background-position: -200% -200%;
    }
    50% {
        background-position: 200% 200%;
    }
    100% {
        background-position: -200% -200%;
    }
}

/* Platform specific hover effects */
.social-instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
    transform: translateY(-2px) scale(1.02);
}

.social-twitter:hover {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    transform: translateY(-2px) scale(1.02);
}

.social-facebook:hover {
    background: linear-gradient(135deg, #4267B2, #365899);
    transform: translateY(-2px) scale(1.02);
}

.social-tiktok:hover {
    background: linear-gradient(135deg, #000000, #25F4EE, #FE2C55);
    transform: translateY(-2px) scale(1.02);
}

/* Social counter animation */
.social-counter {
    animation: counterFade 0.5s ease-in-out;
}

@keyframes counterFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Platform icon glow effect */
.platform-icon {
    position: relative;
    overflow: hidden;
}

.platform-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, currentColor, transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(4px);
}

.platform-icon:hover::after {
    opacity: 0.3;
}