/* VIVA STORIES 2026 - Instagram inspired elite feature */
.viva-stories-container {
    padding: 0px 0 10px 0;
    margin-top: -5px;
    background: #000;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stories-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 12px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stories-row::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-item:hover {
    transform: scale(1.05);
}

/* Instagram-like story circle */
.story-circle {
        width: 84px;
        height: 84px;
        border-radius: 50%;
        border: 4px solid transparent;
        padding: 2px;
        background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        transition: box-shadow 0.25s, transform 0.25s;
}

.story-circle img, .story-circle .story-thumb {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 2.5px solid #222;
        background: #111;
        box-sizing: border-box;
}

@media (max-width: 600px) {
    .story-circle {
        width: 68px;
        height: 68px;
    }
    .story-circle img, .story-circle .story-thumb {
        width: 58px;
        height: 58px;
    }
}

.stories-row {
    gap: 16px;
    padding: 12px 16px;
}

.story-item {
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
}
.story-item:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.story-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(42deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(250, 126, 30, 0.2);
}

.story-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(246, 152, 74, 0.35);
    animation: rotateStory 4s linear infinite;
    opacity: 0.5;
}

.story-item.story-seen .story-circle {
    background: linear-gradient(145deg, #5e5e5e 0%, #8c8c8c 50%, #5a5a5a 100%);
    box-shadow: 0 0 10px rgba(120, 120, 120, 0.18);
}

.story-item.story-seen .story-circle::after {
    border-color: rgba(180, 180, 180, 0.2);
    animation: none;
    opacity: 0.35;
}

.story-item.story-seen .story-label {
    opacity: 0.62;
    color: #c7c7c7;
}

.story-item.story-unseen .story-label {
    opacity: 0.92;
}

@keyframes rotateStory {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.story-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.story-label {
    font-size: 0.78rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .stories-row {
        gap: 12px;
        padding: 7px 10px;
    }

    .story-item {
        gap: 8px;
    }

    .story-circle {
        width: 70px;
        height: 70px;
    }

    .story-label {
        font-size: 0.72rem;
    }
}

/* Modal Viewer */
#viva-story-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#viva-story-viewer.active {
    display: flex;
    opacity: 1;
}

.story-viewer-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
}

.story-progress-bar {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

#story-progress-filler {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
}

.story-viewer-header {
    position: absolute;
    top: 25px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.story-viewer-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
}

.story-viewer-close {
    position: absolute;
    top: 25px;
    right: 20px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-caption {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    z-index: 10;
}