/* ==========================================================================
   STATS STRIP SECTION STYLING (MARQUEE WITH GOOGLE COLORS & MULTICOLOR HOVER GLOW)
   ========================================================================== */

.stats-strip-section {
    background: var(--bg-surface-gradient, #f8f9fb);
    border-top: 1px solid var(--hairline);
    border-bottom: none !important;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
    overflow: hidden;
    user-select: none;
}

.stats-marquee-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.stats-marquee-track {
    display: flex;
    width: max-content;
    animation: stats-marquee-scroll-reverse 36s linear infinite;
    will-change: transform;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.stats-strip-section:hover .stats-marquee-track,
.stats-strip-section:focus-within .stats-marquee-track,
.stats-marquee-track:hover {
    animation-play-state: paused;
}

.stats-marquee-group {
    display: flex;
    align-items: stretch;
    gap: 1.35rem;
    flex-shrink: 0;
    padding-right: 1.35rem;
    padding-top: 8px;
    padding-bottom: 8px;
}

.stat-strip-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 220px;
    padding: 1rem 1.45rem;
    background: #ffffff;
    border: 1.5px solid var(--hairline);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.04);
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2), 
                box-shadow 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2), 
                border-color 260ms ease, 
                background-color 260ms ease;
    cursor: default;
    position: relative;
    overflow: visible;
    transform-origin: center center;
    -webkit-tap-highlight-color: transparent;
}

.stat-strip-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem; /* 25px */
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

@media (min-width: 640px) {
    .stat-strip-value {
        font-size: 1.7rem;
    }
}

.stat-strip-label {
    font-family: var(--font-sans);
    font-size: 0.75rem; /* 12px */
    color: var(--soft);
    margin-top: 0.3rem;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
}

/* ==========================================================================
   NORMAL STATE STATIC GOOGLE COLOR ACCENTS
   ========================================================================== */

/* 1. Google Blue Metric */
.stat-strip-card.color-blue {
    border-color: rgba(66, 133, 244, 0.28);
}
.stat-strip-card.color-blue .stat-strip-value {
    color: #1a73e8;
}

/* 2. Google Green Metric */
.stat-strip-card.color-green {
    border-color: rgba(52, 168, 83, 0.28);
}
.stat-strip-card.color-green .stat-strip-value {
    color: #1e8e3e;
}

/* 3. Google Yellow / Amber Metric */
.stat-strip-card.color-yellow {
    border-color: rgba(251, 188, 5, 0.35);
}
.stat-strip-card.color-yellow .stat-strip-value {
    color: #e37400;
}

/* 4. Google Red Metric */
.stat-strip-card.color-red {
    border-color: rgba(234, 67, 53, 0.28);
}
.stat-strip-card.color-red .stat-strip-value {
    color: #d93025;
}

/* 5. Google Multi / Reviews Metric */
.stat-strip-card.color-multi {
    border-color: rgba(66, 133, 244, 0.28);
}
.stat-strip-card.color-multi .stat-strip-value {
    color: #1a73e8;
}

/* ==========================================================================
   HOVER / ACTIVE STATE: ZOOMOUT + DYNAMIC GOOGLE MULTI-COLOR SHIFTING GLOW
   ========================================================================== */

@keyframes google-multicolor-glow {
    0% {
        border-color: #4285f4;
        box-shadow: 0 12px 32px -4px rgba(66, 133, 244, 0.42), 0 0 20px rgba(66, 133, 244, 0.3), inset 0 0 12px rgba(66, 133, 244, 0.05);
    }
    25% {
        border-color: #ea4335;
        box-shadow: 0 12px 32px -4px rgba(234, 67, 53, 0.42), 0 0 20px rgba(234, 67, 53, 0.3), inset 0 0 12px rgba(234, 67, 53, 0.05);
    }
    50% {
        border-color: #fbbc05;
        box-shadow: 0 12px 32px -4px rgba(251, 188, 5, 0.48), 0 0 20px rgba(251, 188, 5, 0.35), inset 0 0 12px rgba(251, 188, 5, 0.06);
    }
    75% {
        border-color: #34a853;
        box-shadow: 0 12px 32px -4px rgba(52, 168, 83, 0.42), 0 0 20px rgba(52, 168, 83, 0.3), inset 0 0 12px rgba(52, 168, 83, 0.05);
    }
    100% {
        border-color: #4285f4;
        box-shadow: 0 12px 32px -4px rgba(66, 133, 244, 0.42), 0 0 20px rgba(66, 133, 244, 0.3), inset 0 0 12px rgba(66, 133, 244, 0.05);
    }
}

.stat-strip-card:hover,
.stat-strip-card:active {
    transform: scale(1.06);
    z-index: 20;
    background: #ffffff;
    animation: google-multicolor-glow 2.4s linear infinite;
}

/* Reverse Marquee Animation Keyframes */
@keyframes stats-marquee-scroll-reverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-marquee-track {
        animation: none;
    }
    .stat-strip-card:hover,
    .stat-strip-card:active {
        animation: none;
        transform: none;
    }
}
