/* Donate Button Styles */
.donate-button-container {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.donate-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3EB75E 0%, #2d8a47 100%);
    border-radius: 50px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(62, 183, 94, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 140px;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62, 183, 94, 0.4);
}

.donate-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.donate-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.donate-icon i {
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.donate-icon:hover i {
    transform: scale(1.1);
}

.donate-text {
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.donate-text:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Popup Overlay */
.donate-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    box-sizing: border-box;
}

/* Popup Content */
.donate-popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popup Header */
.donate-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.donate-popup-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.donate-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-popup-close:hover {
    background: #f8f9fa;
    color: #495057;
    transform: rotate(90deg);
}

/* Popup Body */
.donate-popup-body {
    padding: 30px;
}

/* Info Popup Specific Styles */
.donate-info-icon {
    text-align: center;
    margin-bottom: 20px;
}

.donate-info-icon i {
    font-size: 48px;
    color: #3EB75E;
}

.donate-popup-body h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.donate-popup-body p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.donate-popup-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.donate-popup-body li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #6c757d;
    line-height: 1.5;
}

.donate-popup-body li i {
    color: #3EB75E;
    margin-right: 10px;
    font-size: 14px;
}

.donate-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3EB75E;
    font-style: italic;
    margin-top: 20px;
}

/* Bank Details Styling */
.bank-details {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.bank-details h5 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bank-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.bank-value {
    font-weight: 700;
    color: #3EB75E;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Raisely Embed Styling */
.raisely-donate {
    width: 100%;
    height: 90vh;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.raisely-donate iframe {
    border: none;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donate-button-container {
        margin-left: 15px;
    }
    
    .donate-button {
        min-width: 120px;
    }
    
    .donate-icon {
        padding: 10px 12px;
    }
    
    .donate-text {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .donate-popup-content {
        margin: 20px;
        max-height: 85vh;
    }
    
    .donate-popup-header {
        padding: 20px 25px 15px;
    }
    
    .donate-popup-header h3 {
        font-size: 20px;
    }
    
    .donate-popup-body {
        padding: 25px;
    }
    
    .bank-details {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .bank-label {
        font-size: 13px;
    }
    
    .bank-value {
        font-size: 13px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .donate-button {
        min-width: 100px;
    }
    
    .donate-icon {
        padding: 8px 10px;
    }
    
    .donate-text {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .donate-popup-content {
        margin: 10px;
        border-radius: 15px;
    }
    
    .donate-popup-header {
        padding: 20px 20px 15px;
    }
    
    .donate-popup-body {
        padding: 20px;
    }
    
    .bank-details {
        padding: 12px;
        margin: 12px 0;
    }
    
    .bank-details h5 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .bank-row {
        padding: 10px;
    }
    
    .bank-label,
    .bank-value {
        font-size: 12px;
    }
}

/* Mobile Menu Integration */
@media (max-width: 991px) {
    .donate-button-container {
        display: none; /* Hide on mobile, will be added to mobile menu */
    }
    
    /* Mobile Menu Donate Button */
    .donate-mobile {
        margin-top: 20px;
        padding: 0;
    }
    
    .donate-button-mobile {
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, #3EB75E 0%, #2d8a47 100%);
        border-radius: 50px;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(62, 183, 94, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        min-width: 140px;
        margin: 0 auto;
    }
    
    .donate-button-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(62, 183, 94, 0.4);
    }
    
    .donate-icon-mobile {
        background: rgba(255, 255, 255, 0.2);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .donate-icon-mobile:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .donate-icon-mobile i {
        color: white;
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    .donate-icon-mobile:hover i {
        transform: scale(1.1);
    }
    
    .donate-text-mobile {
        padding: 12px 20px;
        color: white;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .donate-text-mobile:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Animation for popup close */
.donate-popup-overlay.closing .donate-popup-content {
    animation: popupSlideOut 0.3s ease-in forwards;
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
}
