/**
 * BG Stats Counter Widget Styles
 * Based on BoldGroup production design
 *
 * @package BG_Elementor_Addons
 * @since 1.1.0
 */

/* Main Section Wrapper */
.bg-stats-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.bg-stats-section .section-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stats Container */
.bg-stats-wrapper {
    border-radius: 32px;
    background: #2c3447;
    box-shadow: 0px 32px 80px 0px rgba(47, 47, 47, 0.08);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    width: 100%;
}

/* Individual Stat Item */
.bg-stats-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
}

/* Counter Value Container */
.counter-value {
    color: #b82519;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: -0.9px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Counter Number Elements */
.countup,
.statText,
.pre-post {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* Hide empty elements to prevent spacing issues */
.countup:empty,
.statText:empty,
.decimal:empty {
    display: none;
}

.pre-post {
    margin-left: 4px;
}

/* Counter Title */
.counter-title {
    color: #ffffff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin-top: 8px;
    display: block;
}

/* Divider Between Items */
.bg-stats-divider {
    display: none;
}

/* Tablet Responsive (768px and up) */
@media (min-width: 768px) {
    .bg-stats-wrapper {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        max-width: 536px;
    }
}

/* Laptop Responsive (1024px and up) */
@media (min-width: 1024px) {
    .bg-stats-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: 100%;
        gap: 30px;
        padding: 24px 60px;
    }

    .bg-stats-item {
        width: auto;
        max-width: 170px;
    }

    /* Show dividers on desktop */
    .bg-stats-divider {
        display: block;
        height: 56px;
        min-width: 2px;
        width: 2px;
        background: rgba(255, 255, 255, 0.24);
        flex-shrink: 0;
    }
}

/* Animation States */
.bg-stats-wrapper.animating .countup {
    transition: none;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bg-stats-wrapper.animating .countup {
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .bg-stats-section {
        page-break-inside: avoid;
    }

    .bg-stats-wrapper {
        background-color: #f5f5f5 !important;
        box-shadow: none !important;
    }

    .counter-value,
    .countup,
    .statText,
    .pre-post {
        color: #000 !important;
    }

    .counter-title {
        color: #333 !important;
    }
}
