/* Skeleton Base Styles */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 4px;
}

.skeleton::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: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* UI Component Placeholders */

/* Navbar Skeleton */
.skeleton-nav {
    height: 80px;
    width: 100%;
    margin-bottom: 2rem;
}

/* Hero Skeleton */
.skeleton-hero {
    height: 500px;
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.skeleton-hero-content {
    width: 50%;
}

.skeleton-hero-image {
    width: 40%;
    height: 400px;
    margin-left: auto;
}

/* Text Skeletons */
.skeleton-title {
    height: 2.5rem;
    width: 60%;
    margin-bottom: 1.5rem;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text.short {
    width: 40%;
}

/* Card Skeleton */
.skeleton-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    height: 100%;
}

.skeleton-card-img {
    height: 200px;
    width: 100%;
    margin-bottom: 20px;
}

.skeleton-card-body h4 {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 1rem;
}

/* Button Skeleton */
.skeleton-btn {
    height: 45px;
    width: 150px;
    border-radius: 50px;
}

/* Footer Skeleton */
.skeleton-footer {
    height: 300px;
    width: 100%;
    margin-top: 4rem;
}

/* Preloader Wrapper */
#skeleton-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999999;
    overflow-y: scroll;
    /* Force browser-default-like scrollbar */
    transition: opacity 0.5s ease;
}

body:not(.loaded) {
    overflow: hidden !important;
}

body.loaded #skeleton-preloader {
    opacity: 0;
    pointer-events: none;
}