/**
 * styles/donate.css
 * Donate modal + floating Donate button (sitewide)
 * Extracted from includes for CSP-friendly style-src (no inline <style>).
 */

/* -------------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------------- */
.donate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
    overflow: auto;
    backdrop-filter: blur(4px);
}

.donate-modal.is-open {
    display: flex;
}

.donate-modal-content {
    background-color: var(--apald-purple, #762cca);
    color: var(--apald-honeydew, #fff);
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--apald-radius-lg, 1rem);
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.95);
    max-width: 520px;
    width: 92%;
    text-align: center;
    position: relative;
    border: 3px solid var(--apald-litepurple, #9370db);
}

.donate-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2.4rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.donate-modal-close:hover {
    color: var(--apald-peach, #ffdab9);
}

.donate-modal h2 {
    color: var(--apald-cyan, #0ad6e9);
    font-size: 1.85rem;
    margin: 0 0 1rem 0;
}

.donate-modal p {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 1.8rem;
}

#modal-donate-button-container {
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    min-height: 48px;
}

.donate-modal-thanks {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* -------------------------------------------------------------------------
   Floating Donate button (under navbar, top-left)
   ------------------------------------------------------------------------- */
#floating-donate-container {
    position: fixed;
    top: 85px;
    left: 25px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
}

#floating-donate-container.is-hidden {
    display: none;
}

#floating-donate-btn {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    color: #fff;
    border: 0;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    padding: 14px 26px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#floating-donate-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 10px 25px rgba(147, 112, 219, 0.6);
    background-image: linear-gradient(var(--apald-peach), var(--apald-darkpurple));
    color: var(--apald-black);
}

#floating-donate-btn:active {
    transform: scale(0.98);
}

#floating-donate-btn::before {
    content: "\1F499";
    font-size: 1.3rem;
}

#floating-close-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#floating-close-btn:hover {
    background-color: rgba(244, 67, 54, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #floating-donate-container {
        top: 75px;
        left: 15px;
    }
    #floating-donate-btn {
        padding: 12px 22px;
        font-size: 1rem;
    }
    #floating-close-btn {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
}
