/* Modern Stats Cards Design */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    padding: 0 20px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Background decoration */
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
}

/* Icon background */
.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
}

/* Stat Value */
.stat-card .stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animate numbers on hover */
.stat-card:hover .stat-value {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Stat Label */
.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Different colors for each stat card */
.stat-card:nth-child(1) .stat-value {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(1)::after {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.stat-card:nth-child(2) .stat-value {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(2)::after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.stat-card:nth-child(3) .stat-value {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(3)::after {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
}

.stat-card:nth-child(4) .stat-value {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(4)::after {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

/* Add icons to each stat */
.stat-card:nth-child(1) .stat-label::before {
    content: '🔗';
    display: block;
    font-size: 24px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}

.stat-card:nth-child(2) .stat-label::before {
    content: '💬';
    display: block;
    font-size: 24px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}

.stat-card:nth-child(3) .stat-label::before {
    content: '🤖';
    display: block;
    font-size: 24px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}

.stat-card:nth-child(4) .stat-label::before {
    content: '⚡';
    display: block;
    font-size: 24px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        padding: 0 10px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-card .stat-value {
        font-size: 32px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
}

/* Loading animation for stats */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.stat-card.loading .stat-value {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    -webkit-text-fill-color: transparent;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .stat-card {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .stat-card .stat-label {
        color: #cbd5e1;
    }
}