/* ── Skeleton & Page Progress ─────────────────────────────────── */

/* Shimmer keyframe */

@keyframes skel-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* Base skeleton block */

.skel {
    display: block;
    border-radius: 8px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.085) 50%,
            rgba(255, 255, 255, 0.035) 100%
        );
    background-size: 1200px 100%;
    animation: skel-shimmer 1.7s ease-in-out infinite;
}

/* Stagger for sibling skeletons */

.skel:nth-child(2) { animation-delay: 0.12s; }
.skel:nth-child(3) { animation-delay: 0.22s; }
.skel:nth-child(4) { animation-delay: 0.32s; }
.skel:nth-child(5) { animation-delay: 0.40s; }

/* Size helpers */

.skel-sm    { height: 10px; border-radius: 5px; }
.skel-line  { height: 13px; }
.skel-lg    { height: 18px; }
.skel-title { height: 24px; border-radius: 8px; }
.skel-card  { border-radius: 18px; } /* use with height inline */
.skel-round { border-radius: 999px; }
.skel-circle{ border-radius: 50%; }

/* ── Page transition progress bar ─────────────────────────────── */

#page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 60%, #FDBA74 100%);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.55);
    opacity: 0;
}

#page-progress.loading {
    opacity: 1;
    width: 72%;
    transition: width 2.8s cubic-bezier(0.05, 0.6, 0.3, 1), opacity 0.12s ease;
}

#page-progress.done {
    width: 100%;
    opacity: 0;
    transition: width 0.18s ease, opacity 0.28s ease 0.08s;
}
