/* ۱. استایل رینگ دور لوگو در منوی اصلی سایت */
.logo-story-container {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-story-container.viewed {
    background: #e2e2e2 !important; /* رنگ طوسی برای استوری‌های دیده شده */
}

.logo-link {
    display: block;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    line-height: 0;
}

.logo-link img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

/* ۲. پس‌زمینه کل مودال (Overlay) */
.story-full-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000; 
    justify-content: center; 
    align-items: center;
}

/* ۳. قاب اصلی استوری (حالت کارتی) */
.story-card {
    position: relative; 
    width: 100%; 
    max-width: 420px; 
    height: 85vh;
    background: #1a1a1a; 
    border-radius: 20px; 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ۴. هدر داخل کارت (لوگو و دکمه اطلاعات بیشتر) */
.story-card-header {
    padding: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: absolute; 
    top: 10px; 
    width: 100%; 
    z-index: 10;
}

.header-right { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: bold; }
.story-logo { width: 35px; height: 35px; border-radius: 50%; border: 1.5px solid #fff; }

.more-info-link {
    background: rgba(255, 255, 255, 0.25); 
    color: #fff; 
    padding: 6px 14px;
    border-radius: 20px; 
    font-size: 11px; 
    text-decoration: none; 
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}

/* ۵. محتوای اصلی (تصویر یا ویدیو) */
.story-main-content { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: #000; 
}

.story-main-content img, 
.story-main-content video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ۶. فوتر کارت (لایک، کامنت و کپشن) */
.story-card-footer {
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    padding: 20px 20px 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    color: #fff;
}

.interaction-bar { display: flex; gap: 18px; margin-bottom: 10px; }
.action-btn { cursor: pointer; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.action-btn .icon-active { color: #ff3b30; }

.caption-p { 
    font-size: 13px; 
    line-height: 1.6; 
    color: #eee; 
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ۷. نوار پیشرفت بالای کارت */
.multi-progress-container {
    position: absolute; 
    top: 8px; 
    width: calc(100% - 20px); 
    left: 10px;
    display: flex; 
    gap: 4px; 
    z-index: 11;
}

.progress-segment {
    height: 2.5px; 
    background: rgba(255, 255, 255, 0.3);
    flex: 1; 
    border-radius: 2px; 
    overflow: hidden;
}

.progress-inner {
    height: 100%; 
    width: 0%; 
    background: #fff;
    transition: width linear;
}

/* ۸. دکمه بستن و مناطق کلیک */
.close-story-btn {
    color: #fff; 
    font-size: 30px; 
    background: none; 
    border: none; 
    cursor: pointer;
    margin-right: 5px;
}

.click-area {
    position: absolute; top: 0; height: 100%; width: 30%; z-index: 5;
}
.left-area { left: 0; }
.right-area { right: 0; }