/* Instagram Stories Style */
.stories-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-circle {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-circle:hover {
    transform: scale(1.08);
}

.story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #E57393 0%, #D1537A 50%, #f5a5c0 100%);
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.story-avatar.viewed {
    background: linear-gradient(45deg, #c7c7c7 0%, #9e9e9e 100%);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.story-title {
    display: none;
}

/* Story Viewer Modal - Instagram Style */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.2s ease;
}

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

.story-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    max-height: 740px;
    background: #000;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Progress Bars */
.story-progress {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex !important;
    gap: 4px;
    z-index: 10;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E57393 0%, #f5a5c0 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(229, 115, 147, 0.5);
}

/* Header */
.story-header {
    position: absolute;
    top: 16px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    padding: 0;
}

.story-info {
    display: none;
}

/* Close Button */
.story-close {
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.story-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.story-close svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Navigation Areas */
.story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.story-nav:active {
    background: rgba(255, 255, 255, 0.05);
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-content {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .story-image {
        border-radius: 0;
    }
    
    .story-progress {
        top: 12px;
        left: 12px;
        right: 12px;
    }
    
    .story-header {
        top: 20px;
    }
}

@media (min-width: 769px) {
    .story-content {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .story-image {
        border-radius: 12px;
    }
}
