/**
 * Skeleton Loading States
 */

.xeep-skeleton {
    background: linear-gradient(
        90deg,
        var(--xeep-gray-200) 0%,
        var(--xeep-gray-100) 50%,
        var(--xeep-gray-200) 100%
    );
    background-size: 200% 100%;
    animation: xeep-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

.xeep-skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.xeep-skeleton-text.short {
    width: 60%;
}

.xeep-skeleton-title {
    height: 2rem;
    width: 80%;
    margin-bottom: var(--space-4);
}

.xeep-skeleton-card {
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.xeep-skeleton-circle {
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
}

.xeep-skeleton-button {
    height: 40px;
    width: 120px;
}

/* Shimmer Effect */
.xeep-shimmer {
    position: relative;
    overflow: hidden;
}

.xeep-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: xeep-shimmer 2s infinite;
}

@keyframes xeep-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Loading State Container */
.xeep-loading-state {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
}
