/* ===== Skeleton Loader Styles ===== */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 4px;
}

.skeleton::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Specific Skeleton Shapes */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 5/6;
}

.skeleton-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Page Transition Loader */
#page-skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

#page-skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}