/* ===== SKELETON SCREEN STYLES ===== */

.skeleton {
    background: #e2e8f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Card Structure (General) */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    min-height: 400px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.skeleton-title {
    width: 80%;
    height: 24px;
}

.skeleton-text {
    width: 100%;
    height: 14px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-meta {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.skeleton-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.skeleton-tag-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.skeleton-tag {
    width: 60px;
    height: 20px;
    border-radius: 12px;
}

/* Specific for Compact List (Index Page) */
.skeleton-compact-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 15px;
}

.skeleton-thumb {
    width: 120px;
    height: 150px;
    border-radius: 6px;
    flex-shrink: 0;
}

.skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* New specific for Horizontal List View (journals.php, opinions.php) */
.skeleton-list {
    display: flex;
    background: white;
    border-radius: 8px;
    height: 160px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    align-items: stretch;
}

.skeleton-list-thumb {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.skeleton-list-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-title.medium {
    width: 80%;
    height: 24px;
}

/* Specific for Statistics Numbers */
.skeleton-stat {
    display: block;
    width: 60px;
    height: 48px;
    min-width: 60px;
    min-height: 48px;
    margin: 5px auto;
    border-radius: 8px;
    background: #e2e8f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.stat-card .stat-number.skeleton-stat {
    background: #e2e8f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    opacity: 1 !important;
    visibility: visible !important;
}


