/* TraPay Stats Section - Clean Professional Design CSS */

#stats-trapay {
    background: #ffffff;
}

/* Stats Cards Animations */
.trapay-stat-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: trapayStatsSlideUp 0.6s ease-out forwards;
}

.trapay-stat-card:nth-child(1) { animation-delay: 0.1s; }
.trapay-stat-card:nth-child(2) { animation-delay: 0.2s; }
.trapay-stat-card:nth-child(3) { animation-delay: 0.3s; }
.trapay-stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes trapayStatsSlideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Clean Card Design */
.trapay-stat-card > div {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trapay-stat-card > div:hover {
    border-color: transparent;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(13, 62, 126, 0.05);
    transform: translateY(-8px);
}

/* Counter Number Enhancement */
[data-count] {
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    transition: all 0.3s ease;
}

.trapay-stat-card:hover [data-count] {
    color: var(--trapay-primary);
    transform: scale(1.02);
}

/* Icon Hover Effects */
.trapay-stat-card svg {
    transition: all 0.3s ease;
}

.trapay-stat-card:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

/* Trust Badges Animation */
.trust-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: trustBadgeSlideUp 0.6s ease-out forwards;
}

.trust-badge:nth-child(1) { animation-delay: 0.1s; }
.trust-badge:nth-child(2) { animation-delay: 0.2s; }
.trust-badge:nth-child(3) { animation-delay: 0.3s; }
.trust-badge:nth-child(4) { animation-delay: 0.4s; }

@keyframes trustBadgeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Badge Hover Effects */
.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-badge > div:first-child {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trust-badge:hover > div:first-child {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .trapay-stat-card {
        animation-delay: 0s !important;
    }
    
    .trapay-stat-card > div {
        padding: 1.5rem;
    }
    
    .trapay-stat-card [data-count] {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .trapay-stat-card .w-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .trapay-stat-card .w-16 svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Accessibility Improvements */
.trapay-stat-card > div:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

/* Performance Optimizations */
.trapay-stat-card {
    will-change: transform, opacity;
}

.trapay-stat-card > div {
    will-change: transform, backdrop-filter;
}

/* Remove loading state - show numbers immediately */

/* Success Animation for Completed Counters */
.trapay-stat-card.completed [data-count] {
    animation: pulse-success 0.6s ease-in-out;
    color: var(--trapay-primary) !important;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Clean Background Pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, #0d3e7e 1px, transparent 1px), 
                      radial-gradient(circle at 75% 75%, #0d3e7e 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.03;
}