/* Story Circle Gradient Indicators */
.story {
    position: relative;
}

.story-avatar {
    position: relative;
    z-index: 1;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar.has-new-content {
    background-clip: padding-box;
    border: 3px solid transparent;
    position: relative;
}

.story-avatar.has-new-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    z-index: -1;
    background: conic-gradient(
        from 0deg,
        #FF5E3A,
        #FF2A68,
        #E17EFC,
        #5151E5,
        #25C9FF,
        #3AC7FF,
        #FF2A68
    );
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Story Viewer Styles */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.story-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    color: #FFFFFF;
}

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

.story-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFFFFF;
}

.story-user-name {
    font-size: 16px;
    font-weight: 500;
}

.story-time {
    font-size: 14px;
    opacity: 0.8;
}

.story-close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

.story-progress-container {
    display: flex;
    gap: 4px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.story-progress-bar {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    flex: 1;
    border-radius: 3px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0;
    background-color: #FFFFFF;
    transition: width 5s linear;
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.story-nav {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.story-nav-prev {
    left: 0;
}

.story-nav-next {
    right: 0;
}

.story-nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.story-nav-prev .story-nav-icon {
    left: 16px;
}

.story-nav-next .story-nav-icon {
    right: 16px;
}

.story-nav:hover .story-nav-icon {
    opacity: 0.8;
}

/* Animation for story viewer */
.story-viewer-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.story-viewer-overlay.closing {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Teams & Community Section Styles */