/* ============================================================================
   donate.css - donation page
   ----------------------------------------------------------------------------
   Used by: donate/

   Loaded on top of main.css, so it inherits the site palette (--primary,
   --secondary, --light, --dark) and the light/dark body gradients. Only the
   pieces that do not exist on the main pages are defined here: the payment
   card grid and the QR modal. Everything else (.header, .language-dropdown,
   .theme-toggle, .main-container) is reused from main.css unchanged.
   ========================================================================== */

/* --- Layout ------------------------------------------------------------- */

.donate-container {
    max-width: 760px;
    margin: 10px auto 40px;
    width: 100%;
    padding: 20px;
}

.donate-hero {
    text-align: center;
    margin-bottom: 35px;
}

.donate-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}

.donate-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--light);
}

.donate-hero p {
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto;
    color: rgba(248, 249, 250, 0.85);
}

/* --- Payment cards ------------------------------------------------------ */
/* Same visual language as .nav-link in main.css: translucent panel, left
   accent bar that grows on hover, icon tinted with --primary. */

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.payment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
    z-index: 1;
}

.payment-card:hover,
.payment-card:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(232, 62, 140, 0.3);
    outline: none;
}

.payment-card:hover::before,
.payment-card:focus-visible::before {
    width: 100%;
    opacity: 0.12;
}

.payment-card:hover .payment-icon {
    transform: scale(1.2);
    color: var(--secondary);
}

.payment-icon {
    width: 40px;
    text-align: center;
    font-size: 1.4rem;
    margin-right: 15px;
    color: var(--primary);
    transition: var(--transition);
    z-index: 2;
}

.payment-body {
    flex: 1;
    z-index: 2;
}

.payment-title {
    display: block;
}

.payment-note {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    margin-top: 3px;
    color: rgba(248, 249, 250, 0.65);
}

.payment-arrow {
    z-index: 2;
    color: rgba(248, 249, 250, 0.5);
    font-size: 0.9rem;
}

/* --- Modal -------------------------------------------------------------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 20, 35, 0.65);
    backdrop-filter: blur(6px);
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-panel {
    background: linear-gradient(135deg, #ff7fb0 0%, #ff8e8e 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

body.dark-mode .modal-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--light);
}

/* QR image, and the fallback shown when the file is not present yet */
.qr-frame {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-missing {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(248, 249, 250, 0.75);
}

.qr-missing i {
    font-size: 1.6rem;
    color: var(--secondary);
}

.modal-hint {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(248, 249, 250, 0.85);
}

/* Bitcoin address block */
.crypto-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.crypto-address code {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    text-align: left;
    color: var(--light);
}

.copy-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    filter: brightness(1.08);
}

.copy-btn.copied {
    background: var(--secondary);
}

/* --- Back link ---------------------------------------------------------- */

.donate-back {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    color: rgba(248, 249, 250, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.donate-back:hover {
    color: var(--light);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 600px) {
    .donate-hero h1 {
        font-size: 1.6rem;
    }

    .payment-card {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .payment-card:hover,
    .payment-card:focus-visible {
        transform: none;   /* sideways slide is awkward on touch */
    }

    .qr-frame,
    .qr-missing {
        width: 190px;
        height: 190px;
    }
}
