/* =========================================================
   Luxury News Feed — Style v7
   کارت مستطیلی جمع‌وجورتر + آیکون تیک سبز/ضربدر قرمز کنار اکشن‌ها
   ========================================================= */

.lnf-feed {
	--lnf-ink: #1f2430;
	--lnf-ink-dim: #6b7280;
	--lnf-card-bg: #ffffff;
	--lnf-card-border: #ebebec;
	--lnf-highlight: #fff3a3;
	--lnf-accent: #0e7490;
	--lnf-green: #16a34a;
	--lnf-red: #dc2626;
	--lnf-header-bg: #eef2f5;
	--lnf-header-text: #1f2430;

	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	max-width: 760px;
	margin: 0 auto;
}

/* ------- هر لیست (جدید / بعداً بخوانم): ارتفاع ثابت، ۳ کارت کامل + نیمی از کارت چهارم دیده می‌شه ------- */
.lnf-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 442px;
	overflow-y: auto;
	padding: 2px 6px 2px 2px;
}

.lnf-list::-webkit-scrollbar {
	width: 6px;
}

.lnf-list::-webkit-scrollbar-thumb {
	background: var(--lnf-card-border);
	border-radius: 3px;
}

/* ------- عنوان هر ستون: باکس رنگی، حس جدول (bg قابل تنظیم از تنظیمات) ------- */
.lnf-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 12px;
	padding: 10px 16px;
	background: var(--lnf-header-bg);
	color: var(--lnf-header-text);
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.lnf-divider--active {
	margin-bottom: 12px;
}

.lnf-streak {
	margin-inline-start: 8px;
	font-weight: 500;
	opacity: 0.75;
}

/* ------- اعلان بالای فید ------- */
.lnf-announcement {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	margin-bottom: 14px;
	background: var(--lnf-announcement-bg, #0e7490);
	color: var(--lnf-announcement-text, #ffffff);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.lnf-announcement--closing {
	opacity: 0;
}

.lnf-announcement-text {
	flex: 1 1 auto;
}

.lnf-announcement-close {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	flex: 0 0 auto;
	font-size: 13px;
	color: inherit;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.lnf-announcement-close:hover,
.lnf-announcement-close:focus-visible {
	opacity: 1;
}

/* ------- هر خبر: کارت مستطیلی (بدون گوشه گرد)، پدینگ کم ------- */
.lnf-row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 14px;
	height: 116px;
	flex-shrink: 0;
	background: var(--lnf-card-bg);
	border: 1px solid var(--lnf-card-border);
	border-radius: 0;
	padding: 10px 14px;
	box-shadow: 0 1px 3px rgba(20, 20, 30, 0.05), 0 1px 2px rgba(20, 20, 30, 0.03);
	opacity: 1;
	transform: scale(1) translateY(0);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.22s ease, transform 0.22s ease;
}

.lnf-row.lnf-row--leaving {
	opacity: 0;
	transform: scale(0.95) translateY(4px);
	pointer-events: none;
}

.lnf-row.lnf-row--entering {
	opacity: 0;
	transform: scale(0.97) translateY(-6px);
}

.lnf-row:hover {
	box-shadow: 0 4px 14px rgba(20, 20, 30, 0.09);
	border-color: #dcdcdd;
}

.lnf-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.lnf-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--lnf-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* افکت ماژیک: پس‌زمینه زرد فقط پشت خود متن، نه کل کارت */
.lnf-highlight {
	background: linear-gradient(to bottom, transparent 55%, var(--lnf-highlight) 55%);
	padding: 0 2px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.lnf-excerpt {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--lnf-ink-dim);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ------- ستون اکشن‌های مستقل، همراه با آیکون ------- */
.lnf-meta-divider {
	flex: 0 0 auto;
	width: 1px;
	align-self: stretch;
	background: var(--lnf-card-border);
}

.lnf-meta {
	flex: 0 0 auto;
	width: 92px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
}

.lnf-meta-hr {
	height: 1px;
	background: var(--lnf-card-border);
}

.lnf-link {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--lnf-ink-dim);
	text-decoration: none;
	letter-spacing: 0.1px;
	transition: color 0.2s ease;
}

.lnf-link:hover,
.lnf-link:focus-visible {
	color: var(--lnf-ink);
}

.lnf-link:focus-visible {
	outline: 2px solid var(--lnf-accent);
	outline-offset: 3px;
}

.lnf-icon {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.lnf-icon--check {
	color: var(--lnf-green);
}

.lnf-icon--cross {
	color: var(--lnf-red);
}

.lnf-icon--restore {
	color: var(--lnf-accent);
}

.lnf-empty {
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	color: var(--lnf-ink-dim);
	background: var(--lnf-card-bg);
	border: 1px solid var(--lnf-card-border);
	border-radius: 0;
	padding: 18px;
	text-align: center;
	white-space: normal;
}

/* ------- ریسپانسیو موبایل ------- */
@media (max-width: 480px) {
	.lnf-list {
		height: 414px;
	}

	.lnf-row {
		height: 108px;
		padding: 8px 12px;
		gap: 10px;
	}

	.lnf-title {
		font-size: 14px;
	}

	.lnf-link {
		font-size: 11px;
	}

	.lnf-meta {
		width: 78px;
	}
}

/* ------- تب‌های دسته‌بندی بالای فید ------- */
.lnf-tabs {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0 4px 14px;
	border-bottom: 1px solid var(--lnf-card-border);
	overflow-x: auto;
}

.lnf-tab {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: none;
	border: none;
	white-space: nowrap;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--lnf-ink-dim);
	padding: 0 2px 10px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.lnf-tab:hover {
	color: var(--lnf-ink);
}

.lnf-tab.is-active {
	color: var(--lnf-ink);
	border-bottom-color: var(--lnf-accent);
}

.lnf-tab-panel:not(.is-active) {
	display: none !important;
}

/* ------- نوتیفیکیشن «بازگردانی» بعد از انتقال به لیست بعداً بخوانم ------- */
.lnf-undo-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--lnf-toast-ink, #1f2430);
	color: #f5f4f1;
	padding: 12px 20px;
	border-radius: 8px;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	font-size: 13px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 9999;
	direction: rtl;
}

.lnf-undo-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.lnf-undo-toast button {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--lnf-toast-accent, #4fb3c9);
}

@media (prefers-reduced-motion: reduce) {
	.lnf-row {
		transition: none !important;
	}

	.lnf-undo-toast {
		transition: none !important;
	}

	.lnf-announcement {
		transition: none !important;
	}
}

