/**
 * Skeleton Loading Animation Styles
 * Advanced PC Builder Pro
 */

.apbp-skeleton-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.apbp-skeleton-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
}

.apbp-skeleton-image,
.apbp-skeleton-title,
.apbp-skeleton-price,
.apbp-skeleton-button {
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #f0f0f0 50%,
        #e0e0e0 75%
    );
    background-size: 200% 100%;
    animation: apbp-shimmer 1.5s infinite;
    border-radius: 4px;
}

.apbp-skeleton-image {
    width: 100%;
    height: 150px;
    margin-bottom: 16px;
}

.apbp-skeleton-title {
    width: 100%;
    height: 20px;
    margin-bottom: 12px;
}

.apbp-skeleton-price {
    width: 60%;
    height: 18px;
    margin-bottom: 16px;
}

.apbp-skeleton-button {
    width: 100%;
    height: 40px;
}

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

/* Skeleton for container items */
.apbp-container-skeleton {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.apbp-container-skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: apbp-shimmer 1.5s infinite;
}

.apbp-container-skeleton-text {
    flex: 1;
}

.apbp-container-skeleton-title {
    width: 40%;
    height: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: apbp-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.apbp-container-skeleton-subtitle {
    width: 60%;
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: apbp-shimmer 1.5s infinite;
    border-radius: 4px;
}
