/* Donation Page Styles */
:root {
    --primary-color: #470047;
    --primary-light: #7A4A7A;
    --secondary-color: #FF8C00;
    --secondary-light: #FFA500;
    --accent-color: #B8860B;
    --background-color: #F8F8F0;
}

/* Hero Section */
.hero-donate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L50 100 M0 50 L100 50" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    animation: scrollBackground 20s linear infinite;
}

@keyframes scrollBackground {
    from { transform: translateY(0); }
    to { transform: translateY(100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stats-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Campaign Cards */
.campaign-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.campaign-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.campaign-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.campaign-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.campaign-image i {
    font-size: 80px;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Donation Button */
.btn-donate {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-donate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-donate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-donate:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,140,0,0.4);
    color: white;
}

/* Impact Section */
.impact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.impact-item {
    display: flex;
    align-items: start;
}

.impact-item i {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.impact-illustration i {
    color: rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Modal Styles */
.donation-modal .modal-content {
    border-radius: 20px;
    border: none;
}

.donation-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.donation-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Donor Type Tabs */
.donor-type-tab {
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.donor-type-tab:hover {
    border-color: var(--secondary-color);
    background: rgba(255,140,0,0.05);
    transform: translateY(-5px);
}

.donor-type-tab.active {
    border-color: var(--secondary-color);
    background: rgba(255,140,0,0.1);
    box-shadow: 0 5px 15px rgba(255,140,0,0.2);
}

/* Amount Buttons */
.amount-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.amount-btn:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.amount-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(71, 0, 71, 0.3);
}

/* Form Controls */
.donation-modal .form-control,
.donation-modal .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px;
}

.donation-modal .form-control:focus,
.donation-modal .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
}

/* List Group */
.list-group-item {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-donate {
        padding: 60px 0 40px;
    }
    
    .stats-card h2 {
        font-size: 2rem;
    }
    
    .campaign-image {
        height: 200px;
    }
    
    .campaign-image i {
        font-size: 60px;
    }
    
    .amount-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Loading Spinner */
.spinner-border-donate {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Success Message */
.donation-success {
    text-align: center;
    padding: 40px;
}

.donation-success i {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Scrollbar Styling */
.donation-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.donation-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.donation-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.donation-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
