/* ============================================================
 * diblati-features — الميزة 02: خصوصية الصور (mobile-first, RTL)
 * ملاحظة: التمويه نفسه مولّد server-side عبر GD. الـ CSS هنا للعرض
 * والحماية التفاعلية فقط (منع التحديد/السحب/قائمة السياق).
 * ============================================================ */

/* حاوية الصورة المموّهة */
.dibfeat-photo-blurred {
	position: relative;
	display: block;
	overflow: hidden;
	max-width: 100%;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none; /* منع قائمة الحفظ في iOS على هذه الصور فقط */
	touch-action: manipulation;  /* منع زوم النقر المزدوج */
	border-radius: inherit;
}

/* صورة الملف (واضحة أو مموّهة) — بلا رابط lightbox حولها أبدًا */
.dibfeat-photo {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
}

/* طبقة القفل فوق الصورة المموّهة */
.dibfeat-photo-lock {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(10, 10, 20, 0.28);
	color: #fff;
	text-align: center;
	pointer-events: none;
}

.dibfeat-lock-icon {
	font-size: 28px;
	line-height: 1;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.dibfeat-lock-text {
	font-size: 13px;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	padding: 0 8px;
}

/* زر طلب الكشف — ≥44px للمس */
.dibfeat-photo-request {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	margin-top: 8px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
}

.dibfeat-photo-request[disabled] {
	opacity: 0.65;
	cursor: wait;
}

/* حالة الطلب المعلّق */
.dibfeat-photo-status {
	display: block;
	margin-top: 8px;
	min-height: 44px;
	padding: 10px 12px;
	font-size: 14px;
	color: #8a6d1c;
	background: #fdf3d7;
	border: 1px solid #f0dfa8;
	border-radius: 10px;
	line-height: 1.5;
}

/* ============ صندوق طلبات الكشف (صفحة تعديل الملف) ============ */
.dibfeat-requests-box {
	margin: 24px 0;
	padding: 16px;
	border: 1px solid #e5e0d5;
	border-radius: 14px;
	background: #fffdf8;
}

.dibfeat-requests-box h2 {
	font-size: 18px;
	margin: 0 0 6px;
}

.dibfeat-requests-hint {
	font-size: 14px;
	color: #6b6257;
	margin: 0 0 12px;
	line-height: 1.6;
}

.dibfeat-requests-empty {
	font-size: 14px;
	color: #8a8378;
	margin: 0;
}

.dibfeat-requests-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dibfeat-request {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid #eee7d8;
	border-radius: 12px;
	background: #fff;
}

.dibfeat-request-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.dibfeat-request-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dibfeat-request-meta strong {
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dibfeat-request-time {
	font-size: 12px;
	color: #8a8378;
}

.dibfeat-request-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.dibfeat-decide {
	min-height: 44px;
	min-width: 64px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
}

.dibfeat-accept {
	background: #1e7e34;
	color: #fff;
}

.dibfeat-decline {
	background: #fff;
	color: #b3261e;
	border-color: #e5b8b4;
}

.dibfeat-request.is-done {
	opacity: 0.55;
	pointer-events: none;
}

/* شاشات أكبر: صف أوسع قليلًا */
@media (min-width: 640px) {
	.dibfeat-request-thumb {
		width: 72px;
		height: 72px;
	}
	.dibfeat-lock-icon {
		font-size: 34px;
	}
	.dibfeat-lock-text {
		font-size: 14px;
	}
}
