/*  Container - Instagram Style */
.stories-container {
    background: var(--bg-card);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.stories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.stories-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.story-video-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.story-title {
    font-size: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Story Modal/Viewer */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.story-modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.story-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.2s ease;
    backdrop-filter: blur(10px);
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-header {
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.story-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.story-media-container {
    width: 100%;
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

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

.story-media-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

.story-footer {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.story-footer p {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.story-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.story-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.story-link-btn i {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stories-container {
        margin: 0.5rem 0;
        border-radius: 0;
    }
    
    .story-ring {
        width: 70px;
        height: 70px;
    }
    
    .story-title {
        font-size: 0.7rem;
        max-width: 70px;
    }
    
    .story-modal-content {
        max-width: 100%;
        border-radius: 0;
    }
    
    .story-media-container {
        min-height: 300px;
        max-height: 80vh;
    }
    
    .story-media-image,
    .story-media-video {
        max-height: 80vh;
    }
}

/* Theme support handled by CSS variables */
