/* ========================================= */
/* אזור התרומה הגלובלי */
/* ========================================= */

.global-donation-section {
    background: linear-gradient(to bottom right, #f0f8ff, #f8f0ff);
    padding: 3rem 0;
    margin-top: 40px;
}

.global-donation-section .container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* אייקון לב */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0.75rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.donation-heart-icon {
    color: #ef4444;
}

/* כותרת */
.global-donation-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .global-donation-section h3 {
        font-size: 1.875rem;
    }
}

/* פסקה */
.global-donation-section p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.625;
}

/* ========================================= */
/* כפתור תרומה */
/* ========================================= */

.donate-button-global {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 1rem 2rem;
    background-color: #ee5b2b;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.donate-button-global:visited {
    color: white;
}

.donate-button-global:hover {
    background-color: #d55227;
    color: #ffdede;
}

.donate-button-global svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
}

/* אנימציה מלאה: הגדלה + צל + שקיפות */
@keyframes donatePulseFull {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(238, 91, 43, 0.7);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 0 15px rgba(238, 91, 43, 0);
    }
}

/* אנימציה עדינה: שקיפות בלבד (עבור התפריט) */
@keyframes donatePulseOpacityOnly {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 2. החלת האנימציות על הקלאסים */

/* ברירת מחדל: כל כפתור עם הקלאס הזה יקבל את האפקט המלא */
.donate-pulse {
    animation: donatePulseFull 2s infinite ease-in-out;
}

/* החרגה לתפריט: אם הכפתור נמצא בתוך אלמנט עם הקלאס donate-button-menu */
.donate-button-menu .donate-pulse {
    animation: donatePulseOpacityOnly 2s infinite ease-in-out;
    
    /* ביטול מאפיינים פיזיים כדי שהכפתור לא יזוז בתפריט */
    transform: none !important;
    box-shadow: none !important;
}

.donate-button-menu {
margin: 4px;
}

@media (max-width: 800px) {
  .donate-button-menu .donate-button-global {    
    gap: 0.5rem;
    height: 1.75rem;
    padding: 0.7rem 1.5rem;    
    font-size: 0.8rem;
    font-weight: 600;
}
.donate-button-menu .donate-button-global svg {
    width: 0.75rem;
    height: 0.75rem;    
}
}

/* ========================================= */
/* Modal - חלון קופץ */
/* ========================================= */

.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ee5b2b;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
    text-align: right;
}

.modal-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: right;
}

/* כפתורי סכום */
.donation-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donation-amount-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donation-amount-btn:hover {
    background-color: #e5e7eb;
}

.donation-amount-btn.selected {
    background-color: #fee2e2;
    border-color: #ee5b2b;
    box-shadow: 0 0 0 2px #ee5b2b;
}

.donation-small-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* שדה סכום חופשי */
.free-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: right;
    direction: rtl;
}

.free-amount-wrapper label {
    font-weight: 500;
    white-space: nowrap;
}

.donation-input {
    flex-grow: 1;
    padding: 0.75rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1.125rem;
    text-align: center;
    direction: ltr;
}

.currency-symbol {
    font-size: 1.125rem;
    font-weight: 600;
}

/* כפתור מעבר לתשלום */
.modal-donate-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ee5b2b;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.modal-donate-btn:hover {
    background-color: #d55227;
}

/* טקסט מאובטח */
.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.secure-text svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.3rem;
}