/**
 * STATISTIQUES.PHP - Styles spécifiques
 * Les styles de base sont dans main-clean.css
 */

/* ========== STATS PRINCIPALES ========== */
.stats-main-modern {
    padding: 80px 20px;
}

.stat-card-modern {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #E63946;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.stat-primary { border-left-color: #E63946; }
.stat-success { border-left-color: #0B6E4F; }
.stat-warning { border-left-color: #FFD166; }
.stat-info { border-left-color: #118AB2; }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon-modern {
    font-size: 3rem;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0B6E4F;
    background: rgba(11, 110, 79, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.stat-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: #E63946;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-modern {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label-modern {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 15px;
}

.stat-meta {
    font-size: 0.9rem;
    color: #999;
}

.stat-progress {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E63946 0%, #FFD166 100%);
    border-radius: 10px;
    transition: width 1s ease;
    animation: progressAnimation 1.5s ease-in-out;
}

@keyframes progressAnimation {
    from { width: 0; }
}

/* ========== IMPACT SECTION ========== */
.impact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E63946 0%, #d62839 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '🇨🇺';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.impact-section .section-title {
    color: white;
}

.impact-section .section-title::after {
    background: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.impact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.impact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.impact-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.impact-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== DONATIONS LIST ========== */
.donations-list-section {
    padding: 80px 20px;
    background: white;
}

.donations-list {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donation-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #FFD166;
}

.donation-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.donation-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E63946 0%, #FFD166 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.donation-info {
    flex: 1;
}

.donation-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 5px;
}

.donation-message {
    font-size: 0.95rem;
    color: #333 !important;
    font-style: italic;
    margin-bottom: 5px;
}

.donation-date {
    font-size: 0.85rem;
    color: #666 !important;
}

.donation-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #E63946;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .stat-value-modern {
        font-size: 2.5rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-number {
        font-size: 3rem;
    }
    
    .donation-item {
        flex-direction: column;
        text-align: center;
    }
    
    .donation-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* ========== EMPTY STATE ========== */
.empty-donations {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-donations h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.empty-donations p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .stats-main-modern {
        padding: 40px 15px;
    }
    
    .impact-section {
        padding: 40px 15px;
    }
    
    .stat-card-modern {
        padding: 25px;
    }
}
