/* Skeleton Loader Styles */
/* Skeleton Loader Styles */
.skeleton-loading {
    display: block;
    background: #fff;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #eee;
    /* Removed min-height: 300px and !important to prevent layout breakage */
}

.skeleton-loading .post-thumb img,
.skeleton-loading .entry-content-holder .entry-header,
.skeleton-loading .entry-content-holder .entry-content {
    opacity: 1;
    /* Override default */
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: #f0f0f0;
    background-image: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Skeleton Elements */
.skeleton-image {
    width: 100%;
    height: 200px;
    /* Approximate height */
    background-color: #ddd;
    margin-bottom: 15px;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 10px;
    background-color: #ddd;
}

.skeleton-meta {
    height: 14px;
    width: 40%;
    margin-bottom: 15px;
    background-color: #eee;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
    background-color: #eee;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Spinner for Skeleton */
.skeleton-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.skeleton-loading .post-thumb {
    position: relative;
    /* For centering spinner */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Theme Integration */
.post.skeleton-loading .entry-title a {
    display: none;
}

.post.skeleton-loading .entry-content {
    color: transparent;
}