/* ============================================
   Skeleton Cards для галереи
   ============================================ */

.skeleton-card {
    background: var(--color-surface);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    position: relative;
    contain: layout style paint;
}

.skeleton-card-image {
    width: 100%;
    height: 70%;
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a3e 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-card-title {
    width: 70%;
    height: 14px;
    background: linear-gradient(90deg, #2a2a3e 25%, #3a3a4e 50%, #2a2a3e 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.skeleton-card-creator {
    width: 50%;
    height: 12px;
    background: linear-gradient(90deg, #2a2a3e 25%, #3a3a4e 50%, #2a2a3e 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

/* Animation in animations.css */

/* ============================================
   Legacy Skeleton (для профилей)
   ============================================ */

.photo-skeleton {
    position: relative;
    overflow: hidden;
    background: #2A2E3A;
    animation: shimmer 2s infinite linear;
    background-image: linear-gradient(
        to right,
        #2A2E3A 0%,
        #353B4D 20%,
        #2A2E3A 40%,
        #2A2E3A 100%
    );
    background-size: 800px 104px;
}

.photo-skeleton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
}

/* Для разных размеров */
.photo-preview.photo-skeleton {
    width: 120px;
    height: 120px;
    border-radius: 12px;
}

.reference-photo-preview.photo-skeleton {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
}

/* Плавная анимация появления */
.photo-preview img,
.reference-photo-preview img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.photo-preview img.loaded,
.reference-photo-preview img.loaded {
    opacity: 1;
}
