/**
 * EMERE Builder - Marketplace Stats Counter Stylesheet
 */

.emere-marketplace-stats-wrapper {
    width: 100%;
    margin-bottom: var(--emere-builder-section-spacing, 60px);
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    overflow: hidden;
}

/* 1. BRANDING HEADER */
.emere-stats-header-block {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats-heading-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.stats-subheading-main {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 2. STATS GRID STRIP TILES */
.emere-stats-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.emere-stats-grid-tile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: 3px solid #e2e8f0; /* Elegant top accent border */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.emere-stats-grid-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: var(--emere-builder-accent, #ea580c);
    border-top-color: var(--emere-builder-accent, #ea580c);
    background-color: #fffcf9; /* Subtle warm hover background glow */
}

.tile-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tile-icon-wrapper .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.emere-stats-grid-tile:hover .tile-icon-wrapper {
    background-color: var(--emere-builder-accent, #ea580c);
    color: #ffffff;
    transform: scale(1.08);
}

.tile-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-number-display {
    display: flex;
    align-items: baseline;
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.emere-stats-grid-tile:hover .stats-number-display {
    color: var(--emere-builder-accent, #ea580c);
}

.stats-number-suffix {
    font-size: 1.5rem;
    color: var(--emere-builder-accent, #ea580c);
    margin-left: 2px;
    font-weight: 700;
}

.stats-label-display {
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* RESPONSIVE LAYOUT STACKING */
@media (max-width: 1200px) {
    .stats-heading-main {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .emere-stats-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
        gap: 20px;
    }
    
    .emere-stats-grid-tile {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .emere-stats-grid-container {
        grid-template-columns: 1fr; /* Full stack on mobile */
        gap: 15px;
    }
    
    .stats-heading-main {
        font-size: 1.7rem;
    }
    
    .emere-stats-grid-tile {
        padding: 18px;
    }
}
