/* Donation System Styles */

/* Floating Donation Button */
.donate-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.donate-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6);
}

.donate-float-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Donation Modal */
.donate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.donate-modal.active {
    display: flex;
}

.donate-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 35, 0.98), rgba(18, 18, 25, 0.98));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.donate-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.donate-modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
}

.donate-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.donate-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.donate-form-group {
    margin-bottom: 20px;
}

.donate-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.donate-form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.donate-form-input:focus {
    outline: none;
    border-color: #FF6B6B;
    background: rgba(255, 255, 255, 0.08);
}

.donate-amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.donate-amount-btn {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-amount-btn:hover, .donate-amount-btn.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-color: #FF6B6B;
    transform: scale(1.05);
}

.donate-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.donate-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.donate-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.donate-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.donate-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* QRIS Display */
.qris-container {
    text-align: center;
    padding: 24px;
}

.qris-container img {
    max-width: 300px;
    width: 100%;
    border-radius: 16px;
    margin: 20px 0;
}

.qris-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6B6B;
    margin: 16px 0;
}

.qris-timer {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.qris-status {
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* Toast Notification */
.donation-toast {
    position: fixed;
    bottom: 120px;
    right: 30px;
    background: linear-gradient(135deg, rgba(26, 26, 35, 0.98), rgba(18, 18, 25, 0.98));
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideInRight 0.4s ease-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.donation-toast.show {
    opacity: 1;
    pointer-events: auto;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.toast-icon {
    font-size: 2rem;
}

.toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF6B6B;
}

.toast-donor {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.toast-amount {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.toast-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 8px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Leaderboard Widget */
.leaderboard-widget {
    background: linear-gradient(135deg, rgba(26, 26, 35, 0.6), rgba(18, 18, 25, 0.6));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
}

.leaderboard-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(8px);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 800;
    width: 50px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
    margin-left: 16px;
}

.leaderboard-name {
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.leaderboard-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF6B6B;
}

.leaderboard-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.leaderboard-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FF6B6B;
}

.leaderboard-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .donate-float-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .donate-modal-content {
        padding: 24px 20px;
    }
    
    .donate-amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-toast {
        right: 20px;
        bottom: 100px;
        min-width: 280px;
    }
    
    .leaderboard-widget {
        padding: 20px;
    }
}
