/* Header & Hero */


.hero-media-container {
    width: 100%;
    height: 280px;
    /* Video/Image height */
    position: relative;
    background: #000;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}

/* Stories Ring Section */
.story-section {
    padding: 16px 0 24px 0;
    background: var(--bg-body);
}

.story-track {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
    gap: 16px;
    scrollbar-width: none;
}

.story-track::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    cursor: pointer;
    flex-shrink: 0;
}

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2px;
    /* Ring distance */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    /* Instagram-ish Gradient */
    /* Or use simple primary color: background: var(--primary); */
    margin-bottom: 6px;
    position: relative;
    transition: transform 0.2s;
}

.story-item:active .story-ring {
    transform: scale(0.95);
}

.story-thumb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
    /* Gap between ring and image */
    object-fit: cover;
    background: #fff;
    display: block;
}

.story-title {
    font-size: 11px;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Category Pills (Below Stories) */


/* Fullscreen Story Modal */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.story-viewer.active {
    opacity: 1;
    pointer-events: auto;
}

.story-progress-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 20;
    display: flex;
    gap: 4px;
    /* If multiple bars needed */
}

/* Single bar for now */
.story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    /* animation controlled by JS */
}

.story-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover */
    object-position: center;
}

.story-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.story-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.story-name {
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-close {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.story-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 15;
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

.story-cta {
    align-self: center;
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Allow click */
    z-index: 50;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Hide Nav Section from old layout we are replacing */
.nav-section {
    display: none;
}