/* Professional Story Shimmer CSS */
@keyframes storyShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes storyPulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Main story container with shimmer */
.story-shimmer-container {
    overflow: hidden;
    animation: storyPulse 2s infinite ease-in-out;
    margin-bottom: 10px;
    padding: 5px;
}

/* Individual elements with shimmer */
.story-shimmer-wrapper {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: storyShimmer 1.5s infinite;
    position: relative;
    overflow: hidden;
}

/* Specific story box with dimensions */
.story-box {
    width: 150px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-right: 8px;
    flex-shrink: 0;
}

/* Story sections */
.story-box-header {
    height: 60px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-box-body {
    height: 150px;
    width: 100%;
}

.story-box-footer {
    height: 40px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Specific elements for story box */
.shimmer-story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.shimmer-story-username {
    height: 16px;
    border-radius: 4px;
    flex-grow: 1;
}

.shimmer-story-image {
    width: 100%;
    height: 100%;
}

.shimmer-story-button {
    height: 24px;
    width: 60px;
    border-radius: 12px;
}

.shimmer-story-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Story container */
.story-box-container {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    gap: 8px;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.story-box-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 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%; }