/**
 * landing_page_stats_loading.css
 * Auto-fix #345 — a vitrine não mostra zero enquanto os números do Clube carregam.
 * v1.0 (2026-11-08)
 *
 * Direção (UX + Social Media):
 *  - Enquanto a API não responde, cada número é uma faixa curta, não um zero.
 *  - O valor real aparece de uma vez, com um fade curto. Sem contagem a partir de zero.
 *  - Se a API falhar, a frase fica visível e o zero não entra no lugar do número.
 */

.landing-stats .stat-number.is-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1em;
}

.landing-stats .stat-skeleton {
    display: inline-block;
    width: 4.2rem;
    height: 0.72em;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--color-surface) 0%,
        rgba(var(--color-accent-rgb), 0.28) 50%,
        var(--color-surface) 100%
    );
    background-size: 200% 100%;
    animation: landing-stat-shimmer 1.4s ease-in-out infinite;
}

.landing-stats .stat-number.is-ready {
    animation: landing-stat-in 0.35s ease;
}

.landing-stats-status {
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.landing-stats-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes landing-stat-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes landing-stat-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .landing-stats .stat-skeleton {
        width: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-stats .stat-skeleton,
    .landing-stats .stat-number.is-ready {
        animation: none;
    }
}
