/* =============================================================================
   SKELETON LOADING — Shimmer placeholders
   Reference: DESIGN_REVAMP.md § 5 — "Loading skeletons: shimmer animation,
   never spinners on content areas."
   ============================================================================= */

/* Base skeleton element — use on any placeholder block */
.skeleton {
    background: var(--color-bg-inset);
    border-radius: var(--radius-xs);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep animation */
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 40%,
        rgba(255, 255, 255, 0.36) 50%,
        rgba(255, 255, 255, 0.18) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer var(--duration-crawl) var(--ease-standard) infinite;
}

html.dark-mode .skeleton::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
}

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

/* Disable shimmer for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .skeleton::after {
        animation: none;
        background: none;
    }
}

/* =============================================================================
   SKELETON SHAPES — Composable size utilities
   ============================================================================= */

.skeleton-text {
    height: var(--text-body);
    border-radius: var(--radius-xs);
}

.skeleton-text--sm {
    height: var(--text-footnote);
}

.skeleton-text--lg {
    height: var(--text-title-3);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.skeleton-avatar--lg {
    width: 64px;
    height: 64px;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-md);
}

/* =============================================================================
   ADMIN LIST SKELETON — 5 placeholder rows
   ============================================================================= */

.admin-list-skeleton {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.admin-list-skeleton__row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-separator);
    border-radius: var(--radius-sm);
}

.admin-list-skeleton__avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
}

.admin-list-skeleton__lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.admin-list-skeleton__line {
    height: 12px;
    border-radius: var(--radius-xs);
}

.admin-list-skeleton__line--short {
    width: 40%;
}
