/* Skeleton Loader Component */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-bg-surface) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            var(--color-bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Preset shapes */
.skeleton-text {
    height: 1rem;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    height: 1rem;
    width: 40%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1rem;
}

.skeleton-card {
    padding: 1rem;
    border-radius: 1rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feed item skeleton */
.skeleton-feed-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-feed-item .skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
