/* Donation Goals Styles */

.donation-goals-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cause-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.cause-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cause-card:hover .cause-image img {
    transform: scale(1.05);
}

.cause-content {
    padding: 30px;
}

.cause-content h3 {
    font-size: 1.4rem;
    color: #2E8B57;
    margin-bottom: 15px;
    font-weight: 600;
}

.cause-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Progress Bar Styles */
.donation-progress {
    margin: 25px 0;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2E8B57);
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-info .raised {
    color: #4CAF50;
    font-weight: 600;
}

.progress-info .goal {
    color: #666;
    font-weight: 500;
}

.progress-percentage {
    text-align: center;
    font-size: 0.85rem;
    color: #2E8B57;
    font-weight: 600;
}

/* Donate Button */
.cause-donate-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #2E8B57);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.cause-donate-btn:hover {
    background: linear-gradient(135deg, #45a049, #1E5945);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-goals-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .causes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cause-card {
        margin: 0 10px;
    }
    
    .cause-content {
        padding: 25px;
    }
    
    .cause-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .causes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cause-content {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .progress-info {
        font-size: 0.85rem;
    }
}

/* Animation for when goals update */
.progress-bar-fill.updating {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
    100% { transform: scaleY(1); }
}

/* Success state when goal is reached */
.cause-card.goal-reached .progress-bar-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.cause-card.goal-reached .progress-percentage {
    color: #FF8C00;
    font-weight: 700;
}

.cause-card.goal-reached::after {
    content: '🎉 Goal Reached!';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD700;
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}