/* css/support.css */

/* ====================================================== */
/* 1. Floating Action Button (FAB) */
/* ====================================================== */
.support-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px var(--accent-glow);
    cursor: pointer;
    z-index: 999;
    transform: scale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-fab 2s infinite ease-in-out;
}
.support-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px var(--accent-glow);
    animation-play-state: paused;
}
@keyframes pulse-fab {
    0% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

/* ====================================================== */
/* 2. Support Modal Shell */
/* ====================================================== */
.support-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 2999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.support-modal-overlay.active { opacity: 1; pointer-events: auto; }

.support-modal {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 95vh; z-index: 3000;
    
    /* Use a SOLID background to prevent content blur */
    background-color: var(--bg-color); 
    
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.2); 
    
    /* REDUCED PADDING to save vertical space */
    padding: 1.5rem; 

    overflow-y: auto;
    transform: translateY(100%); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    
    /* Hide scrollbar just in case it appears on very small screens */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.support-modal::-webkit-scrollbar {
    display: none;
}

.support-modal.active { transform: translateY(0); opacity: 1; }
.close-support-modal-btn {
    position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
    color: var(--text-secondary); cursor: pointer; padding: 0.5rem; line-height: 1;
    border-radius: 50%; transition: all 0.2s ease;
}
.close-support-modal-btn:hover { background-color: var(--border-color); color: var(--text-primary); transform: scale(1.1); }
.support-modal-content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px; /* Max width for the single column */
    margin: 0 auto; /* Removed top margin */
}

.donation-section {
    width: 100%;
}
.donation-section h2 {
    /* REDUCED FONT SIZE */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}
.donation-section p {
    color: var(--text-secondary);
    /* REDUCED MARGIN */
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ====================================================== */
/* 3. Donation Cards (Redesigned & Compact) */
/* ====================================================== */
.donation-card-container {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; 
    /* REDUCED MARGIN */
    margin-bottom: 1.5rem;
}
.donation-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border: 1px solid var(--border-color); border-radius: 12px;
    /* REDUCED PADDING */
    padding: 1rem; 
    cursor: pointer; text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-emoji { 
    /* REDUCED FONT SIZE AND MARGIN */
    font-size: 2rem; 
    line-height: 1; 
    margin-bottom: 0.5rem; 
}
.donation-card h3 {
    font-size: 1rem; display: flex; flex-direction: column; gap: 0.1rem; font-weight: 500;
}
.donation-card h3 span { font-weight: 700; color: var(--text-primary); font-size: 1.1rem; }
.donation-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.donation-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px) scale(1.02);
}

/* ====================================================== */
/* 4. Custom Slider & Input (Compact) */
/* ====================================================== */
.custom-amount-section label { display: block; margin-bottom: 0.75rem; color: var(--text-secondary); font-weight: 500; text-align: center; }
.custom-slider-wrapper { display: flex; align-items: center; gap: 1rem; }
.slider-value { font-weight: 700; font-size: 1.1rem; color: var(--accent-color); min-width: 70px; text-align: right; }
.custom-slider { position: relative; width: 100%; height: 20px; display: flex; align-items: center; cursor: pointer; }
.slider-track { width: 100%; height: 6px; background: var(--border-color); border-radius: 3px; position: absolute; }
.slider-handle {
    position: absolute; width: 20px; height: 20px; background: var(--accent-color); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow); top: 50%; transform: translateY(-50%);
}
.infinity-input-container { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease; }
.infinity-input-container.visible { max-height: 100px; opacity: 1; margin-top: 1rem; }
.custom-amount-input {
    width: 100%; padding: 0.75rem; font-size: 1rem; font-family: var(--font-main);
    color: var(--text-primary); background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color); border-radius: 8px;
}
.custom-amount-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ====================================================== */
/* 5. QR and UPI Section (Compact) */
/* ====================================================== */
.qr-section {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    /* REDUCED MARGIN */
    margin-top: 1.5rem; 
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
.qr-section.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

#qr-image-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 0.75rem;
}
#qr-image {
    /* REDUCED QR CODE SIZE */
    width: 160px;
    height: 160px;
    display: block;
}
.upi-copy-wrapper {
    display: flex; align-items: center; gap: 0.75rem;
    background-color: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--border-color);
}
.upi-id { font-family: monospace; font-weight: 700; color: var(--text-primary); }
.copy-upi-btn {
    display: flex; align-items: center; gap: 0.5rem; background: var(--border-color);
    border: none; color: var(--text-secondary); border-radius: 6px; padding: 6px 10px;
    cursor: pointer; transition: background-color 0.2s ease;
}
.copy-upi-btn:hover { background-color: rgba(255,255,255,0.2); }
.copy-upi-btn .copy-text.copied { color: var(--accent-color); font-weight: 700; }