/* Live snapshot block — used on T14 pages where asset_type = ART-LIV.
 * The hero image is replaced by a constantly-refreshing JPEG with a live
 * badge overlay showing the wall-clock and the artwork age.
 */

.live-snapshot-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Same as the default artwork image: full width, natural aspect. The pre-reveal
 * placeholder is a 1000x1400 transparent SVG so the box keeps the right portrait
 * shape (shows black) with no layout shift when the live feed swaps in. */
.live-snapshot-wrap .artwork-main-image {
    display: block;
    width: 100%;
    height: auto;
}

.live-snapshot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.live-snapshot-badge .live-dot {
    color: #ef4444;
    animation: aqc-live-pulse 1.4s ease-in-out infinite;
}
@keyframes aqc-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.live-snapshot-badge .live-sep {
    opacity: 0.4;
}

.live-snapshot-badge .live-clock,
.live-snapshot-badge .live-age {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
}

.live-snapshot-badge .live-clock    { opacity: 0.85; }
.live-snapshot-badge .live-location { opacity: 0.9; }

.live-snapshot-badge .live-age-group {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.live-snapshot-badge .live-age-label {
    opacity: 0.55;
    font-size: 0.85em;
}
.live-snapshot-badge .live-age {
    opacity: 0.95;
    font-weight: 600;
}

/* Reveal gating — the live feed stays BLACK until reveal.json says revealed=true
 * (e.g. the vernissage). Then the veil fades and the badge appears. */
.live-snapshot-wrap .live-veil {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}
/* transitions only after first poll (.armed) → instant on load if already revealed */
.live-snapshot-wrap.armed .live-veil { transition: opacity 6s ease; }
.live-snapshot-wrap.revealed .live-veil { opacity: 0; }

.live-snapshot-badge {
    z-index: 2;
    opacity: 0;
}
.live-snapshot-wrap.armed .live-snapshot-badge { transition: opacity 5s ease 1.8s; }
.live-snapshot-wrap.revealed .live-snapshot-badge { opacity: 1; }
