/* ============================================
   Skeleton Loading Styles
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--gradient-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.skeleton-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.skeleton-title {
    height: 16px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    width: 80%;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-badge {
    height: 20px;
    width: 80px;
    border-radius: 10px;
    margin-top: 4px;
}

/* Dark mode support */
[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        #2a2a2a 25%,
        #3a3a3a 50%,
        #2a2a2a 75%
    );
    background-size: 200% 100%;
}

/* Responsive */
@media (max-width: 576px) {
    .skeleton-card {
        height: 100px;
        padding: 8px;
    }
    
    .skeleton-thumb {
        width: 80px;
        height: 80px;
    }
    
    .skeleton-title {
        height: 14px;
    }
    
    .skeleton-text {
        height: 10px;
    }
}

