/*
 * Shared skeleton placeholders (web).
 * Markup comes from resources/views/web/includes/skeleton.blade.php, or from
 * window.wevSkeleton(variant, count) for placeholders inserted by JS.
 * Shapes mirror the footage .video-card (16:9 thumb, title, avatar + meta row)
 * and the conversation/notification list row.
 */
.wev-sk-shim {
    background: linear-gradient(90deg, #ececec 25%, #f6f6f6 37%, #ececec 63%);
    background-size: 400% 100%;
    animation: wev-sk-shimmer 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes wev-sk-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .wev-sk-shim { animation: none; }
}

/* Card: same proportions as .video-card */
.wev-sk-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.wev-sk-card .wev-sk-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}
.wev-sk-card .wev-sk-title { height: 14px; width: 75%; }
.wev-sk-card .wev-sk-meta { display: flex; align-items: center; gap: 8px; }
.wev-sk-card .wev-sk-avatar { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; }
.wev-sk-card .wev-sk-line { height: 10px; width: 45%; }

/* Horizontal row (swiper sections). Cards beyond the visible width are clipped. */
.wev-sk-row {
    display: flex;
    gap: 16px;
    overflow: hidden;
    padding: 4px 0 16px;
}
.wev-sk-row > .wev-sk-card { flex: 0 0 calc((100% - 4 * 16px) / 4.6); }
.wev-sk-row.wev-sk-row--lg > .wev-sk-card { flex-basis: calc((100% - 2 * 16px) / 2.3); }

@media (max-width: 1023px) {
    .wev-sk-row > .wev-sk-card,
    .wev-sk-row.wev-sk-row--lg > .wev-sk-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 767px) {
    .wev-sk-row > .wev-sk-card,
    .wev-sk-row.wev-sk-row--lg > .wev-sk-card { flex-basis: 100%; }
}

/* Grid (newest / most popular / my footage tabs) */
.wev-sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 4px 0 16px;
    grid-column: 1 / -1;
}
@media (max-width: 767px) {
    .wev-sk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* List rows (conversations, notifications) */
.wev-sk-list { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.wev-sk-list-item { display: flex; align-items: flex-start; gap: 10px; }
.wev-sk-list-item .wev-sk-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
.wev-sk-list-item .wev-sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wev-sk-list-item .wev-sk-line { height: 10px; }

/* Section heading placeholder used by the ALL tab before sections arrive */
.wev-sk-heading { height: 18px; width: 160px; margin: 8px 0 14px; }

.wev-sk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
