/* ================================
   Skeleton Loading
   ================================ */
.skeleton-wrapper {
    display: contents; /* Grid layout preserved */
}

.skeleton-card {
    background: var(--coop-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--coop-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.skeleton-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 1rem;
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.title {
    height: 1.5rem;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.skeleton-tag {
    height: 1.5rem;
    width: 3rem;
    background: #e0e0e0;
    border-radius: 999px;
}

/* Shimmer Animation */
.skeleton-image::after,
.skeleton-line::after,
.skeleton-tag::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: 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;
}

.skeleton-image, .skeleton-line, .skeleton-tag {
    position: relative; /* For pseudo-element absolute positioning */
    overflow: hidden;
}

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