/*
 * ZG Visitor Counter — Odometer style
 * All classes namespaced with `zgvc__` to avoid collisions with theme/Elementor.
 */

.zgvc__wrap {
    display: block;
    margin: 1.25em 0;
    font-family: inherit;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.zgvc__wrap--left   { text-align: left;   }
.zgvc__wrap--center { text-align: center; }
.zgvc__wrap--right  { text-align: right;  }

/* Dark bezel around the digits, matching the reference image. */
.zgvc__frame {
    display: inline-block;
    padding: clamp(8px, 1.2vw, 14px);
    background: linear-gradient(180deg, #1a1a1c 0%, #0e0e10 100%);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.25);
}

.zgvc__digits {
    display: inline-flex;
    gap: clamp(4px, 0.6vw, 8px);
}

/* Each digit tile.
   The gradient + the ::after horizontal line create the classic
   odometer "split reel" look you see in the reference. */
.zgvc__digit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width:  clamp(30px, 4.4vw, 46px);
    height: clamp(42px, 6.2vw, 64px);

    border-radius: 6px;
    overflow: hidden;

    /* Red gradient — light top, darker crimson bottom. */
    background:
        linear-gradient(180deg,
            #ff8a75 0%,
            #ff5a3d 22%,
            #e73620 55%,
            #b81a10 100%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(0, 0, 0, 0.25),
        0 2px 3px rgba(0, 0, 0, 0.35);
}

/* Glossy highlight strip across the top half. */
.zgvc__digit::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* The horizontal odometer split line. */
.zgvc__digit::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.zgvc__digit-glyph {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3.6vw, 36px);
    letter-spacing: 0.02em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 2px 3px rgba(0, 0, 0, 0.35);
}

.zgvc__label {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.75;
}

/* Reduced motion / high-contrast fallbacks — no motion here to preserve,
   but keep the outline visible on focus for accessibility. */
@media (prefers-reduced-motion: reduce) {
    .zgvc__digit { transition: none; }
}
