/*
 * GARS "Support the Club" - Donate Popup
 * Inline call-to-action button + modal overlay linking out to Adfin
 */

/* === INLINE CTA BUTTON (sits in the membership page content) === */

.gars-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    background: linear-gradient(135deg, #9a6a14 0%, #cf9a2e 55%, #eec050 100%);
    color: #3a2504;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 4px 14px rgba(160, 110, 20, 0.40),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease,
                background 0.2s ease;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.gars-donate-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gars-donate-btn:hover {
    background: linear-gradient(135deg, #8a5d10 0%, #c08b26 55%, #e6b643 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 22px rgba(160, 110, 20, 0.48),
        0 2px 6px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gars-donate-btn:hover svg {
    transform: scale(1.12);
}

.gars-donate-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 2px 8px rgba(160, 110, 20, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.12);
}

.gars-donate-btn:focus-visible {
    outline: 3px solid #f0cd7a;
    outline-offset: 3px;
}

/* === MODAL OVERLAY === */

#gars-donate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(40, 26, 4, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

#gars-donate-overlay.gars-overlay-open {
    opacity: 1;
    pointer-events: auto;
}

/* === MODAL PANEL === */

#gars-donate-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow:
        0 20px 60px rgba(80, 50, 10, 0.30),
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255,255,255,0.08) inset;
    transform: translateY(36px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.34, 1.46, 0.64, 1),
                opacity 0.28s ease;
    opacity: 0;
    position: relative;
}

#gars-donate-overlay.gars-overlay-open #gars-donate-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#gars-donate-modal::-webkit-scrollbar { width: 6px; }
#gars-donate-modal::-webkit-scrollbar-track { background: transparent; }
#gars-donate-modal::-webkit-scrollbar-thumb { background: #e8dcc4; border-radius: 3px; }

/* === MODAL HEADER === */

#gars-donate-header {
    background: linear-gradient(135deg, #9a6a14 0%, #cf9a2e 55%, #eec050 100%);
    color: #3a2504;
    padding: 26px 24px 20px;
    border-radius: 14px 14px 0 0;
    position: relative;
    overflow: hidden;
}

#gars-donate-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.30) 0%, transparent 70%);
    pointer-events: none;
}

#gars-donate-header .gars-donate-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 10px rgba(90,60,10,0.25);
}

#gars-donate-header h2 {
    margin: 0 0 6px;
    font-size: 1.3em;
    font-weight: 700;
    color: #3a2504;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

#gars-donate-header p {
    margin: 0;
    font-size: 0.9em;
    color: #4d3208;
    opacity: 0.85;
    line-height: 1.45;
}

#gars-donate-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.30);
    border: 1px solid rgba(255,255,255,0.45);
    color: #3a2504;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
    outline: none;
    font-size: 18px;
    line-height: 1;
}

#gars-donate-close:hover {
    background: rgba(255,255,255,0.48);
    transform: rotate(90deg);
}

#gars-donate-close:focus-visible {
    outline: 2px solid rgba(60,40,5,0.6);
    outline-offset: 2px;
}

/* === BODY === */

#gars-donate-body {
    padding: 22px 24px 26px;
}

#gars-donate-body p {
    margin: 0 0 16px;
    font-size: 0.96em;
    line-height: 1.65;
    color: #3d4a5a;
}

.gars-donate-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gars-donate-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92em;
    line-height: 1.5;
    color: #3d4a5a;
    margin: 0;
}

.gars-donate-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #cf9a2e;
}

/* === DONATE CTA BUTTON (inside modal) === */

#gars-donate-cta {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #9a6a14 0%, #cf9a2e 55%, #eec050 100%);
    color: #3a2504;
    text-decoration: none;
    border: none;
    border-radius: 9px;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.02em;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                background 0.2s ease;
    box-shadow: 0 4px 14px rgba(160, 110, 20, 0.40), inset 0 1px 0 rgba(255,255,255,0.55);
    outline: none;
    margin-top: 2px;
    box-sizing: border-box;
}

#gars-donate-cta:hover {
    background: linear-gradient(135deg, #8a5d10 0%, #c08b26 55%, #e6b643 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 110, 20, 0.5), inset 0 1px 0 rgba(255,255,255,0.55);
    text-decoration: none;
    color: #3a2504;
}

#gars-donate-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(160, 110, 20, 0.35);
}

#gars-donate-cta:focus-visible {
    outline: 3px solid #f0cd7a;
    outline-offset: 3px;
}

#gars-donate-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px !important;
    font-size: 0.78em !important;
    color: #8a95a3 !important;
    text-align: center;
}

#gars-donate-secure-note svg {
    flex-shrink: 0;
}

/* === RESPONSIVE === */

@media screen and (max-width: 520px) {
    #gars-donate-modal {
        border-radius: 12px;
        max-height: 96vh;
    }

    #gars-donate-header {
        padding: 20px 18px 16px;
    }

    #gars-donate-body {
        padding: 18px 18px 22px;
    }
}
