/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: #e0e0e0;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

/* Specific Skeleton Types */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    width: 100%;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-rect {
    width: 100%;
    height: 100%;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Component Specific Skeletons */

/* Notice Board Skeleton */
.skeleton-notice {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skeleton-notice .date {
    height: 12px;
    width: 30%;
}

.skeleton-notice .title {
    height: 16px;
    width: 90%;
}

/* Gallery Skeleton */
.skeleton-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square */
    border-radius: 8px;
}

/* Slider Skeleton */
.skeleton-slide {
    width: 100%;
    height: 400px;
    /* Fallback height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.skeleton-slide-content {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .skeleton-slide {
        height: 250px;
    }
}