/* ========================================
   YDA Statistics Section - One Line Design
   Youth Development Association
   ======================================== */

/* ===== Statistics Section ===== */
.yda-statistics-section {
    background: linear-gradient(135deg, #6CB44D 0%, #5A9D3D 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.yda-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 195, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 195, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.yda-statistics-section .container {
    position: relative;
    z-index: 1;
}

/* ===== Stats Row (Flexbox for One Line) ===== */
.yda-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

/* ===== Stat Item ===== */
.yda-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(245, 195, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 160px;
}

.yda-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(245, 195, 0, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Stat Icon ===== */
.yda-stat-icon {
    font-size: 1.5rem;
    color: #F5C300;
    min-width: 30px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.yda-stat-item:hover .yda-stat-icon {
    transform: scale(1.2) rotate(10deg);
    color: #FFD633;
}

/* ===== Stat Content ===== */
.yda-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.yda-stat-label {
    font-size: 0.813rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 991px) {
    .yda-stats-row {
        gap: 1.5rem;
    }
    
    .yda-stat-item {
        min-width: 150px;
        padding: 0.625rem 1.25rem;
        gap: 0.625rem;
    }
    
    .yda-stat-icon {
        font-size: 1.35rem;
    }
    
    .yda-stat-number {
        font-size: 1.5rem;
    }
    
    .yda-stat-label {
        font-size: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .yda-statistics-section {
        padding: 1.5rem 0;
    }
    
    .yda-stats-row {
        gap: 1rem;
        flex-direction: column;
    }
    
    .yda-stat-item {
        min-width: 100%;
        max-width: 300px;
        padding: 0.625rem 1.25rem;
        justify-content: center;
        gap: 0.625rem;
    }
    
    .yda-stat-icon {
        font-size: 1.25rem;
        min-width: 28px;
    }
    
    .yda-stat-number {
        font-size: 1.5rem;
    }
    
    .yda-stat-label {
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .yda-stat-item {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .yda-stat-icon {
        font-size: 1.125rem;
    }
    
    .yda-stat-number {
        font-size: 1.35rem;
    }
    
    .yda-stat-label {
        font-size: 0.688rem;
    }
}

/* ===== Animation on Scroll ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .yda-stat-item,
    .yda-stat-icon,
    [data-animate] {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .yda-statistics-section {
        background: white;
        color: black;
    }
    
    .yda-stat-item {
        border: 1px solid #ddd;
        background: white;
    }
    
    .yda-stat-number,
    .yda-stat-label {
        color: black;
    }
    
    .yda-stat-icon {
        color: #6CB44D;
    }
}

/* ===== Alternative: Compact Version (Optional) ===== */
.yda-stats-row.compact .yda-stat-item {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
}

.yda-stats-row.compact .yda-stat-icon {
    font-size: 1.5rem;
}

.yda-stats-row.compact .yda-stat-number {
    font-size: 2rem;
}

.yda-stats-row.compact .yda-stat-label {
    font-size: 0.813rem;
}
