/* ============================================================
 * LESKOV — R21 Performance UI (no visible UI; styles reserved
 * for future per-page perf badges / skeleton-screen fallbacks).
 * Most of R21 is invisible (opcache, gzip, lazy, ETag) — this
 * file ships the few classes the perf-observer.js might need
 * if we later add an opt-in debug overlay.
 * ============================================================ */

.leskov-perf-badge {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9996;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    display: none;
}
.leskov-perf-badge.is-rendered { display: block; }
.leskov-perf-badge[data-rating="good"] { color: #6fdc8c; }
.leskov-perf-badge[data-rating="needs-improvement"] { color: #f0a040; }
.leskov-perf-badge[data-rating="poor"] { color: #ff8080; }

/* Skeleton state for the homepage hero while the first image loads. */
.leskov-skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: leskov-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
    min-height: 80px;
}
@keyframes leskov-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .leskov-skeleton { animation: none; background: rgba(255, 255, 255, 0.05); }
}
