/*
 * CSS FOR THE STATS GRAPHIC
 * Prefixed with 'recreated-stats-' for uniqueness.
*/

/* Import a Google Font for a similar look to the original */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');

/* The main container that holds the graphic */
.recreated-stats-container {
    --stats-separator-color: #a9b3d5; /* A light, dusty blue for the lines */
    --stats-number-color: #1a1a1a;    /* Off-black for the numbers */
    --stats-label-color: #aaaaaa;     /* Light grey for the labels */

    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: space-around; /* Distributes items evenly */
    align-items: center;
    padding: 2.5rem 1rem;
    border: 2px solid #333;
    max-width: 800px;
    margin: 2rem auto; /* For centering and spacing on the page */
    background-color: #fff;
}

/* Each individual stat block (e.g., "2 DAYS") */
.recreated-stats-item {
    position: relative; /* Needed for positioning the separator line */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allows items to grow and take up space */
    flex-basis: 0; /* Ensures items start from the same size */
}

/* The vertical separator line */
.recreated-stats-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%); /* Vertically center the line */
    height: 50px;
    width: 1px;
    background-color: var(--stats-separator-color);
}

/* The large number (e.g., "750+") */
.recreated-stats-number {
    font-size: 3.5rem;
    font-weight: 300; /* A light font-weight to match the thin numbers */
    color: var(--stats-number-color);
    line-height: 1.1;
}

/* The small label (e.g., "DELEGATES") */
.recreated-stats-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--stats-label-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .recreated-stats-container {
        flex-direction: column; /* Stack items vertically */
        gap: 2rem; /* Add space between stacked items */
        padding: 2rem;
    }

    /* Hide the vertical separators on small screens */
    .recreated-stats-item:not(:last-child)::after {
        display: none;
    }

    .recreated-stats-number {
        font-size: 2.8rem;
    }
}