/* 
   ═══════════════════════════════════════════════════
   ✨ STATS REDESIGN - RESPONSIVE & BALANCED ✨
   ═══════════════════════════════════════════════════
   Bubbles, but balanced sizing and mobile-optimized
*/

:root {
    --stats-primary: #2b8cee;
    --stats-card-bg: #eff6ff;
    --stats-text-gradient: linear-gradient(135deg, #1062b1 0%, #2b8cee 100%);
}

[data-theme="dark"] {
    --stats-card-bg: #1a202c;
}

/* ═══════════════════════════════════════════════════
   📦 MAIN CONTAINER
   ═══════════════════════════════════════════════════ */

.pro-sections-wrapper {
    margin: 30px 0;
}

.pro-unified-card {
    background: var(--card-bg);
    border-radius: 40px;
    /* Balanced rounding */
    padding: 40px 30px;
    /* Reduced padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* ═══════════════════════════════════════════════════
   🎯 VISION HEADER
   ═══════════════════════════════════════════════════ */

.pro-vision-section {
    margin-bottom: 35px;
    text-align: center;
}

.pro-section-title {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

/* Gradient line */
.pro-vision-section::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, #66a6ff 0%, #89f7fe 100%);
    margin: 15px auto 0;
    border-radius: 10px;
}

.pro-vision-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   📊 STATS GRID - BALANCED BUBBLES
   ═══════════════════════════════════════════════════ */

.pro-stats-section {
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.pro-stats-grid {
    display: flex;
    justify-content: center;
    /* align-items: center; REMOVED for equal height */
    gap: 20px;
    /* Tighter gap */
    flex-wrap: wrap;
    width: 100%;
}

/* 
   THE BUBBLE ITEM
   More compact sizing
*/
.pro-stat-item {
    background-color: #f8fafc;
    /* Lighter/subtle bubble */
    border-radius: 35px;
    /* Moderate rounding */
    padding: 25px 15px;
    /* Much more compact padding */
    width: 170px;
    /* Reduced width */
    min-width: 150px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
}

.pro-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background-color: #f1f5f9;
    border-color: rgba(43, 140, 238, 0.1);
}

/* Numbers - Balanced Size */
.pro-stat-value {
    font-size: 2rem;
    /* Reduced from 2.8rem to 2rem */
    font-weight: 800;
    color: #0d4f8b;
    background: var(--stats-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Labels */
.pro-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 12px;
    border-radius: 15px;
    margin-top: auto;
}

/* Dark Mode */
[data-theme="dark"] .pro-unified-card {
    background: #111827;
}

[data-theme="dark"] .pro-stat-item {
    background-color: #1f2937;
}

[data-theme="dark"] .pro-stat-item:hover {
    background-color: #374151;
}

[data-theme="dark"] .pro-stat-label {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════
   📱 RESPONSIVE OPTIMIZATIONS
   ═══════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .pro-stat-item {
        width: 150px;
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .pro-sections-wrapper {
        margin: 25px 0;
    }

    .pro-unified-card {
        padding: 30px 15px;
        /* Use screen width efficienty */
        border-radius: 24px;
    }

    .pro-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        /* Gap handles spacing perfectly */
    }

    /* Force 2 Columns on Mobile */
    .pro-stat-item {
        width: auto;
        /* Reset width for Grid */
        min-width: 0;
        /* Allow shrinking to fit */
        padding: 20px 5px;
        /* Compact padding */
        border-radius: 24px;
        margin: 0;
        height: 100%;
        /* Fill grid cell height */
    }

    .pro-stat-value {
        font-size: 1.6rem;
    }

    .pro-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {

    /* Even smaller screens */
    .pro-stat-value {
        font-size: 1.4rem;
    }

    .pro-stat-label {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}