/* Donation Popup Styles */

/* Popup Overlay */
.donation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.donation-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Modal */
.donation-popup {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(45, 90, 39, 0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.donation-popup-overlay.active .donation-popup {
    transform: scale(1) translateY(0);
}

/* Compact Top Banner */
.popup-banner {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    flex-shrink: 0;
}

.popup-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.popup-banner-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-banner-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.popup-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.popup-close i {
    font-size: 0.85rem;
    color: var(--white);
}

/* Popup Content */
.popup-content {
    padding: 0;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Zeffy Embed Container */
.zeffy-embed-container {
    height: 100%;
}

.zeffy-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .donation-popup-overlay {
        padding: 10px;
    }

    .donation-popup {
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        height: 95vh;
        max-height: 95vh;
    }

    .donation-popup-overlay.active .donation-popup {
        transform: scale(1) translateY(0);
    }

    .popup-banner {
        padding: 14px 16px;
        gap: 10px;
    }

    .popup-banner h2 {
        font-size: 1.1rem;
    }

    .popup-banner-icon {
        width: 34px;
        height: 34px;
    }

    .popup-banner-icon i {
        font-size: 1rem;
    }

    .popup-close {
        width: 28px;
        height: 28px;
        right: 10px;
    }

    .popup-close i {
        font-size: 0.75rem;
    }
}
