/* Story Modal Styles */
.story-avatar-wrapper {
    position: relative;
}

.story-avatar-border {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid white;
}

.story-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-sender-name {
    font-size: 0.9rem;
}

.story-time {
    font-size: 0.75rem;
}

/* Story Slider */
.story-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-slide.active {
    display: flex;
    opacity: 1;
}

/* Progress Bar */
.story-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.story-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.1s linear;
}

/* Story Content */
.story-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
                url('{{ story.image.url }}') center/cover no-repeat;
}

.story-media {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.story-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    text-align: center;
}

.story-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Story Dots */
.story-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-dot.active {
    width: 25px;
    border-radius: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.story-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Story Controls */
.story-controls {
    backdrop-filter: blur(10px);
}

#story-play-pause {
    width: 45px;
    height: 45px;
    transition: all 0.2s ease;
}

#story-play-pause:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#story-next-btn {
    min-width: 120px;
    transition: all 0.2s ease;
}

#story-next-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .story-title {
        font-size: 1.2rem;
    }
    
    .story-content {
        font-size: 1rem;
    }
    
    .story-avatar-border {
        width: 35px;
        height: 35px;
    }
    
    .story-sender-name {
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.story-slide.active .story-title,
.story-slide.active .story-content {
    animation: fadeIn 0.5s ease-out;
}