/**
 * ePaper Global Live Readership Counters — Ultra-Compact & Centered Engine
 * Small, clean, minimized counters center-aligned in footer
 * Matching Screenshot: Mechanical Digit Tiles (Blue, Amber/Orange & Midnight Navy)
 */

/* ── Glowing Live Radar Dot ── */
.live-pulse-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-right: 2px;
    vertical-align: middle;
}

.live-pulse-dot {
    width: 4px;
    height: 4px;
    background-color: #10b981;
    border-radius: 50%;
    z-index: 2;
}

.live-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.5);
    animation: livePulseRadar 1.6s infinite ease-out;
    z-index: 1;
}

@keyframes livePulseRadar {
    0% { transform: scale(0.8); opacity: 0.95; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ========================================================
   SMALL, MINIMIZED, CENTER-ALIGNED FOOTER COUNTERS
   ======================================================== */

.epaper-odometer-showcase {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 10px auto 12px auto !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    clear: both !important;
    text-align: center !important;
}

/* Small, Compact Individual Card */
.epaper-odometer-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 8px 12px 6px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    min-width: 120px !important;
    max-width: 170px !important;
    transition: transform 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: default !important;
}

.epaper-odometer-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Row of Digit Tiles */
.epaper-odometer-tiles-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    user-select: none !important;
}

/* Small, Crisp Digit Tile */
.epaper-digit-tile {
    width: 20px !important;
    height: 26px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1.5px 3.5px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    user-select: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* ── 3 Exact Vibrant Color Variations Matching Screenshot ── */

/* 1. Azure / Royal Blue (Card: VISITS) */
.tile-color-blue {
    background: #2563eb !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* 2. Warm Amber / Sunny Orange (Card: UNIQUE READERS) */
.tile-color-orange {
    background: #f59e0b !important;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* 3. Deep Midnight Navy (Card: READERS ONLINE) */
.tile-color-navy {
    background: #1e293b !important;
    background: linear-gradient(180deg, #334155 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Single Static Digit Number */
.tile-number {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    line-height: 1 !important;
    display: inline-block !important;
    will-change: transform !important;
}

/* Active Mechanical Roll Animation */
@keyframes odometerRollUp {
    0% {
        transform: translateY(105%);
        opacity: 0.2;
    }
    40% {
        transform: translateY(-12%);
        opacity: 0.95;
    }
    75% {
        transform: translateY(4%);
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

.tile-number.rolling {
    animation: odometerRollUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Compact Centered Label */
.epaper-odometer-label {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Typography color tokens */
.text-blue { color: #2563eb !important; }
.text-orange { color: #d97706 !important; }
.text-navy { color: #1e293b !important; }
.text-emerald { color: #10b981 !important; }

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET) — CENTER-ALIGNED & COMPACT
   ======================================================== */

@media (max-width: 600px) {
    .epaper-odometer-showcase {
        gap: 6px !important;
        margin: 6px auto !important;
        padding: 0 2px !important;
        max-width: 100% !important;
    }
    .epaper-odometer-card {
        padding: 5px 6px 4px !important;
        min-width: 88px !important;
        max-width: 32% !important;
        border-radius: 7px !important;
    }
    .epaper-digit-tile {
        width: 15px !important;
        height: 21px !important;
        border-radius: 3px !important;
    }
    .epaper-odometer-tiles-row {
        gap: 2px !important;
        margin-bottom: 2px !important;
    }
    .tile-number {
        font-size: 0.75rem !important;
    }
    .epaper-odometer-label {
        font-size: 0.50rem !important;
        letter-spacing: 0.5px !important;
    }
}
