/* ===================================
   STATS SECTION - MOBILE FIRST
   =================================== */

/* ===================================
   BASE STYLES (MOBILE)
   =================================== */
.stats-section {
    padding: 60px 1rem;
    background: var(--bg-primary);
    position: relative;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===================================
   STATS GRID (MOBILE FIRST)
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.stat-icon-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.stat-icon-green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-success);
}

.stat-icon-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-secondary);
}

.stat-icon-orange {
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-warning);
}

.stat-content {
    flex: 1;
    width: 100%;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change svg {
    width: 14px;
    height: 14px;
}

.stat-change-up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.stat-change-neutral {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-tertiary);
}

/* ===================================
   ADDITIONAL STATS
   =================================== */
.additional-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.additional-stat {
    text-align: center;
}

.additional-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.additional-stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    line-height: 1.4;
}

/* ===================================
   TABLET BREAKPOINT (640px+)
   =================================== */
@media (min-width: 640px) {
    .stats-section {
        padding: 70px 1.5rem;
    }

    .stats-header {
        margin-bottom: 3.5rem;
    }

    /* 2 columns on tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
        margin-bottom: 3.5rem;
    }

    .stat-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 2rem 1.75rem;
    }

    .stat-card:hover {
        transform: translateY(-6px);
        border-color: var(--color-primary);
        box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
    }

    .stat-card:hover::before {
        transform: scaleX(1);
    }

    .stat-icon {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .stat-icon svg {
        width: 34px;
        height: 34px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .additional-stats {
        grid-template-columns: repeat(4, 1fr);
        padding: 2.25rem 2rem;
        gap: 2rem;
    }

    .additional-stat-value {
        font-size: 2rem;
    }

    .additional-stat-label {
        font-size: 0.875rem;
    }
}

/* ===================================
   DESKTOP BREAKPOINT (1024px+)
   =================================== */
@media (min-width: 1024px) {
    .stats-section {
        padding: 80px 2rem;
    }

    .stats-header {
        margin-bottom: 4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .stat-card {
        padding: 2.25rem 2rem;
        border-radius: 24px;
    }

    .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    }

    .stat-icon {
        width: 72px;
        height: 72px;
        min-width: 72px;
        border-radius: 18px;
    }

    .stat-icon svg {
        width: 36px;
        height: 36px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .stat-label {
        font-size: 1.0625rem;
    }

    .stat-change {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .additional-stats {
        padding: 2.5rem;
        border-radius: 24px;
    }

    .additional-stat-value {
        font-size: 2.25rem;
    }
}
