/* Story (Instagram-style) styles — circle in header + fullscreen modal. Loaded site-wide via layout. */
/* Story Circle in Header */
.story-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light), var(--primary));
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.story-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.story-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    filter: blur(0.5px);
}
.story-preview-text {
    color: white;
    font-size: 7px;
    font-weight: 600;
    text-align: center;
    padding: 2px;
    line-height: 1.1;
}
.story-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-preview-video {
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.story-modal.open {
    display: flex;
}
.story-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.story-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}
.story-modal-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.story-modal-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}
.story-modal-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}
.story-modal-time {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.story-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.story-modal-close:hover {
    opacity: 1;
}
.story-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}
.story-text-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}
.story-text-content p {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0;
}
.story-image-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}
.story-video-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}
.story-progress {
    position: absolute;
    top: 8px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}
@media (max-width: 767px) {
    .story-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .story-text-content p {
        font-size: 20px;
    }
}
