/* =========================================================================
 * Belonz Stories – استایل
 * ====================================================================== */

:root {
	--belonz-brand: #E3B5BC;
	--belonz-dark: #111;
}

/* ---------- اسلایدر آواتارها ---------- */
.belonz-stories-container {
    display: flex;
    gap: 16px;
    justify-content: space-between; /* پخش در کل پهنا وقتی تعداد کم است */
    overflow-x: auto;
    padding: 10px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.belonz-stories-container::-webkit-scrollbar { display: none; }

.belonz-story-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 88px;
}

.belonz-story-avatar {
	width: 80px; 
	height: 80px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	transition: all 0.3s ease;
}
.belonz-story-avatar.seen-story { background: #e0e0e0; }

.belonz-story-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
}

.belonz-story-title {
	font-size: 12px;
	margin-top: 6px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

/* ---------- مودال ---------- */
#belonz-story-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}
#belonz-story-modal:not(.belonz-modal-hidden) {
	opacity: 1;
	visibility: visible;
}
.belonz-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(4px);
}
.belonz-modal-content {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 92vh;
	max-height: 920px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--belonz-dark);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	user-select: none;
	touch-action: pan-y;
}
@media (max-width: 480px) {
	.belonz-modal-content {
		max-width: 100%;
		height: 100%;
		border-radius: 0;
	}
}

/* موبایل: برگرد به چیدمان اسکرولیِ راست‌چین */
@media (max-width: 600px) {
    .belonz-stories-container { justify-content: flex-start; gap: 14px; }
    .belonz-story-item   { width: 76px; }
    .belonz-story-avatar { width: 70px; height: 70px; }
}

/* ---------- پروگرس‌بار سگمنت‌دار ---------- */
.belonz-story-progress {
	position: absolute;
	top: 10px;
	inset-inline: 10px;
	z-index: 30;
	display: flex;
	gap: 4px;
}
.belonz-progress-seg {
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.35);
	overflow: hidden;
}
.belonz-progress-fill {
	display: block;
	width: 0;
	height: 100%;
	background: #fff;
	border-radius: 3px;
}

/* ---------- هدر ---------- */
.belonz-story-header {
	position: absolute;
	top: 22px;
	inset-inline: 12px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.belonz-story-user {
	display: flex;
	align-items: center;
	gap: 8px;
}
.belonz-story-user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.85);
}
.belonz-story-user-name {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.belonz-modal-close {
	background: none !important;
	border: none !important;
	color: #fff !important;
	font-size: 32px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 4px !important;
	/* دو لایه سایه تا روی هر تصویری (روشن یا تیره) دیده شود */
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95)) !important;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.85) !important;
}


/* ---------- صحنه ---------- */
.belonz-story-stage {
	position: absolute;
	inset: 0;
	z-index: 10;
}
.belonz-slide {
	position: absolute;
	inset: 0;
	animation: belonzFade 0.35s ease;
}
@keyframes belonzFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* اسلاید تصویری (تمام‌صفحه) */
.belonz-image-fill {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.belonz-image-cta {
	position: absolute;
	bottom: 34px;
	inset-inline: 0;
	margin: 0 auto;
	width: max-content;
	max-width: 80%;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 22px;
	background: var(--belonz-brand);
	color: #111;
	border-radius: 22px;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- اسلاید کارت پست (Instagram "shared post") ---------- */
.belonz-slide-post {
	display: flex;
	align-items: center;
	justify-content: center;
}
.belonz-post-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(0.5);
	transform: scale(1.25);
}
.belonz-post-card {
	position: relative;
	z-index: 5;
	width: 84%;
	max-width: 330px;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: #111;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	transition: transform 0.2s ease;
}
.belonz-post-card:hover { transform: translateY(-3px); }
.belonz-post-media {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
}
.belonz-post-body {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: start;
}
.belonz-post-cat {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	color: #b32d6b;
	background: #fce8f0;
	padding: 3px 10px;
	border-radius: 20px;
}
.belonz-post-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.7;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.belonz-post-date {
	font-size: 11px;
	color: #8a8a8a;
}
.belonz-post-cta {
	margin-top: 6px;
	align-self: stretch;
	text-align: center;
	padding: 10px 0;
	background: var(--belonz-brand);
	color: #111;
	border-radius: 12px;
	font-weight: 800;
	font-size: 13px;
}

/* ---------- فلش‌های ناوبری (دسکتاپ) ---------- */
.belonz-nav-arrow {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 25 !important;
	width: 40px !important;
	height: 40px !important;
	border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
	border-radius: 50% !important;
	background: none !important;
	color: #fff !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	/* سایه روی خودِ خط دور + آیکن تا روی هر عکسی دیده شود */
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85)) !important;
	transition: transform 0.15s ease, border-color 0.15s ease !important;
}
.belonz-nav-arrow:hover {
	border-color: #fff !important;
	transform: translateY(-50%) scale(1.1) !important;
}
.belonz-next-arrow { left: 12px !important; }   /* «بعدی» سمت چپ (RTL) */
.belonz-prev-arrow { right: 12px !important; }  /* «قبلی» سمت راست */

@media (max-width: 768px) {
	.belonz-nav-arrow { display: none !important; } /* موبایل: تپ/سواپ کافی است */
}