/**
 * Loading Skeleton Styles
 * Provides smooth placeholder animations while content loads
 */

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

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

.skeleton-course {
    height: 350px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-product {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-article {
    height: 250px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 30px;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 70%;
}

/* Hide skeleton when content is loaded */
.loaded .skeleton {
    display: none;
}

/* Smooth fade-in for loaded content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
