﻿@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        rgba(61, 153, 112, 0.08) 50%,
        var(--bg-card) 75%
    );
    background-size: 1200px 100%;
    animation: skeleton-shimmer 1.6s infinite linear;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    border: 1px solid var(--color-green-30);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-section-darker);
    display: flex;
    flex-direction: column;
}

.skeleton-card-image {
    width: 100%;
    height: 280px;
}

.skeleton-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-card-badge {
    width: 80px;
    height: 22px;
    border-radius: var(--radius-sm);
}

.skeleton-card-title {
    width: 90%;
    height: 20px;
}

.skeleton-card-title-short {
    width: 60%;
    height: 20px;
}

.skeleton-card-text {
    width: 100%;
    height: 14px;
}

.skeleton-card-text-short {
    width: 75%;
    height: 14px;
}

.skeleton-card-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.skeleton-card-meta-item {
    width: 100px;
    height: 14px;
}

.skeleton-photographer {
    height: 500px;
    width: 340px;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
}

.skeleton-masonry-grid {
    display: flex;
    gap: 12px;
    width: 100%;
}

.skeleton-masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-masonry-item {
    width: 100%;
    border-radius: 12px;
}

.skeleton-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skeleton-filter-btn {
    height: 38px;
    border-radius: var(--radius-sm);
}

.skeleton-wrapper {
    display: block;
}

.skeleton-wrapper.skeleton-hidden {
    display: none;
}

@media (max-width: 992px) {
    .skeleton-masonry-grid { gap: 8px; }
    .skeleton-card-image { height: 220px; }
}

@media (max-width: 768px) {
    .skeleton-masonry-grid { gap: 6px; }
    .skeleton-masonry-col:nth-child(3),
    .skeleton-masonry-col:nth-child(4) { display: none; }
    .skeleton-card-image { height: 200px; }
    .skeleton-photographer { width: 100%; height: 380px; }
}

@media (max-width: 480px) {
    .skeleton-masonry-col:nth-child(2) { display: none; }
    .skeleton-card-image { height: 180px; }
    .skeleton-photographer { height: 320px; }
}

@media (max-width: 375px) {
    .skeleton-card-image { height: 160px; }
    .skeleton-photographer { height: 300px; }
}