/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Article Card */
.skeleton-article-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-article-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-article-content {
    padding: 1.5rem;
}

.skeleton-tag {
    width: 80px;
    height: 24px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    width: 100%;
    height: 60px;
    margin-bottom: 1rem;
}

.skeleton-excerpt {
    width: 100%;
    height: 60px;
    margin-bottom: 1rem;
}

.skeleton-meta {
    display: flex;
    gap: 1rem;
}

.skeleton-meta-item {
    width: 80px;
    height: 16px;
}

/* Skeleton Featured Post */
.skeleton-featured {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.skeleton-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}

/* Skeleton Full Article */
.skeleton-full-article {
    padding: 2rem 0;
}

.skeleton-article-header {
    margin-bottom: 2rem;
}

.skeleton-article-title {
    width: 80%;
    height: 80px;
    margin-bottom: 1rem;
}

.skeleton-article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skeleton-article-meta-item {
    width: 100px;
    height: 20px;
}

.skeleton-article-image-full {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

.skeleton-article-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-paragraph {
    width: 100%;
    height: 20px;
}

.skeleton-paragraph:nth-child(3) {
    width: 90%;
}

.skeleton-paragraph:nth-child(5) {
    width: 95%;
}

/* Skeleton Search Results */
.skeleton-search-result {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.skeleton-search-image {
    width: 250px;
    height: 150px;
}

.skeleton-search-content {
    padding: 1.5rem;
    padding-left: 0;
}

.skeleton-search-title {
    width: 60%;
    height: 40px;
    margin-bottom: 1rem;
}

.skeleton-search-excerpt {
    width: 100%;
    height: 60px;
    margin-bottom: 1rem;
}

.skeleton-search-meta {
    display: flex;
    gap: 1rem;
}

.skeleton-search-meta-item {
    width: 80px;
    height: 16px;
}

/* Hide skeletons when content is loaded */
.content-loaded .skeleton-wrapper {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .skeleton-search-result {
        grid-template-columns: 1fr;
    }
    
    .skeleton-search-image {
        width: 100%;
        height: 200px;
    }
    
    .skeleton-search-content {
        padding: 1.5rem;
    }
    
    .skeleton-article-title {
        width: 100%;
        height: 60px;
    }
}
