/* ========================================
   DONATION MODAL STYLES
   Shared across MadDog.Music & HamsterBrainMusic.com
   MyDigital.media/css/donate-modal.css
   v=20260110001
   ======================================== */

/* ----------------------------------------
   BACKDROP & CONTAINER
   ---------------------------------------- */
.donate-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.donate-backdrop.active {
    opacity: 0.99;
    visibility: visible;
}

/* ----------------------------------------
   MODAL BOX
   ---------------------------------------- */
.donate-modal {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 20px 20px 20px;
    width: 90%;
    max-width: 340px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: visible; /* Allow image to break out */
    margin-top: 80px;  /* Make room for breakout image */
}

.donate-backdrop.active .donate-modal {
    transform: scale(1);
}

/* ----------------------------------------
   CLOSE BUTTON - Clear and visible
   ---------------------------------------- */
.donate-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.donate-close:hover,
.donate-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.donate-close::before,
.donate-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.donate-close::before {
    transform: rotate(45deg);
}

.donate-close::after {
    transform: rotate(-45deg);
}

/* ----------------------------------------
   BRANDING HEADER
   ---------------------------------------- */
.donate-header {
    text-align: center;
    margin-bottom: 20px;
}

.donate-logo {
    max-width: 300px;
    height: auto;
    /* Breakout effect - image extends beyond modal */
    position: relative;
    top: -155px;
    margin-bottom: -150px; /* Pull content up to compensate */
    pointer-events: none; /* Don't interfere with close button */
}

.donate-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.donate-subtitle {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 0 0;
}

/* ----------------------------------------
   SECTION DIVIDERS
   ---------------------------------------- */
.donate-section-label {
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 16px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.donate-section-label::before,
.donate-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ----------------------------------------
   BUTTON ROWS
   ---------------------------------------- */
.donate-button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* ----------------------------------------
   AMOUNT BUTTONS (One-time: $2, $5, $10)
   ---------------------------------------- */
.donate-btn-amount {
    flex: 1;
    max-width: 90px;
    padding: 14px 8px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.donate-btn-amount:hover,
.donate-btn-amount:active {
    background: linear-gradient(145deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.donate-btn-amount .amount {
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.donate-btn-amount .label {
    font-family: 'Ubuntu', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* ----------------------------------------
   CUSTOM AMOUNT BUTTON
   ---------------------------------------- */
.donate-btn-custom {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.donate-btn-custom:hover,
.donate-btn-custom:active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ----------------------------------------
   MONTHLY SUBSCRIPTION BUTTONS
   ---------------------------------------- */
.donate-btn-monthly {
    flex: 1;
    padding: 14px 12px;
    background: linear-gradient(145deg, #1e3a1e 0%, #0d1f0d 100%);
    border: 1px solid rgba(100, 200, 100, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.donate-btn-monthly:hover,
.donate-btn-monthly:active {
    background: linear-gradient(145deg, #2a4a2a 0%, #1a2f1a 100%);
    border-color: rgba(100, 200, 100, 0.5);
    transform: translateY(-2px);
}

.donate-btn-monthly .amount {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #7dce7d;
    display: block;
}

.donate-btn-monthly .period {
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    color: rgba(125, 206, 125, 0.7);
    margin-top: 2px;
    display: block;
}

/* ----------------------------------------
   FOOTER MESSAGE
   ---------------------------------------- */
.donate-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-footer p {
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.donate-footer .heart {
    color: #e74c3c;
}

/* ----------------------------------------
   HEADER ZONE FOR DONATE TRIGGER
   ---------------------------------------- */
.header-zone-donate {
    position: absolute;
    right: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    /* Debug: background: rgba(255, 0, 255, 0.2); */
}

/* Adjusted zones for 3-way split */
.header-zone-third-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    z-index: 10;
}

.header-zone-third-center {
    position: absolute;
    left: 33.33%;
    top: 0;
    width: 33.33%;
    height: 100%;
    z-index: 10;
}

.header-zone-third-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    z-index: 10;
}

/* ----------------------------------------
   OPT-OUT CHECKBOX
   ---------------------------------------- */
.donate-optout {
    text-align: center;
    margin-top: 16px;
}

.donate-optout-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
	margin-bottom: -16px;
	opacity: 0.4;
}

.donate-optout-label:hover {
    /*background: rgba(255, 255, 255, 0.05);*/
}

.donate-optout-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #666;
	opacity: 0.3;
}

.donate-optout-text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 1);
    user-select: none;
}

.donate-optout-label:hover .donate-optout-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   DESKTOP ADJUSTMENTS
   ---------------------------------------- */
@media (min-width: 769px) {
    .donate-backdrop {
        align-items: flex-start;  /* Align to top instead of center */
        padding-top: 160px;       /* Room for breakout image */
        overflow-y: auto;         /* Allow scroll if window is short */
    }
    
    .donate-modal {
        margin-top: 0;            /* Remove the mobile offset */
        margin-bottom: 40px;      /* Bottom breathing room */
    }
}
