/* Professional Post Card Shimmer CSS */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes cardPulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Main post card container with shimmer */
.post-shimmer-card {
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: cardPulse 2s infinite ease-in-out;
    margin-bottom: 20px;
}

/* Individual elements with shimmer */
.shimmer-wrapper {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    position: relative;
    overflow: hidden;
}

/* Shapes */
.shimmer-circle {
    border-radius: 50%;
}

.shimmer-rounded {
    border-radius: 8px;
}

.shimmer-text {
    height: 14px;
    border-radius: 4px;
}

/* Specific elements for post card */
.shimmer-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.shimmer-post-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.shimmer-post-title {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.shimmer-post-content {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shimmer-post-button {
    height: 32px;
    width: 80px;
    border-radius: 16px;
}

.shimmer-post-tag {
    height: 24px;
    width: 80px;
    border-radius: 12px;
    margin-right: 10px;
}

/* Card sections */
.post-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
}

.post-card-body {
    padding: 15px;
}

.post-card-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Width classes */
.w-20 { width: 20%; }
.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }