/* Product screenshot protection — partial fade + watermark overlay */

.img-protect {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.img-protect img,
.img-protect__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
	opacity: 0.9;
	filter: saturate(0.94) contrast(0.97);
}

/* Diagonal fade + bottom vignette — light touch */
.img-protect::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(
			115deg,
			rgba(255, 255, 255, 0.28) 0%,
			rgba(255, 255, 255, 0.08) 32%,
			transparent 55%,
			rgba(15, 23, 42, 0.05) 80%,
			rgba(15, 23, 42, 0.28) 100%
		),
		linear-gradient(
			to bottom,
			transparent 0%,
			transparent 50%,
			rgba(15, 23, 42, 0.12) 78%,
			rgba(15, 23, 42, 0.38) 100%
		);
	mix-blend-mode: normal;
}

/* Subtle repeating watermark grid */
.img-protect::before {
	content: '';
	position: absolute;
	inset: -20%;
	z-index: 3;
	pointer-events: none;
	opacity: 0.08;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Ctext x='10' y='62' fill='%23ffffff' font-family='Segoe UI,Arial,sans-serif' font-size='15' font-weight='700' letter-spacing='3' transform='rotate(-24 110 60)'%3EiXHRMS DEMO%3C/text%3E%3C/svg%3E");
	background-size: 220px 120px;
	background-repeat: repeat;
}

/* Corner badge — visible deterrent, still on-brand */
.img-protect__badge {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 4;
	pointer-events: none;
	user-select: none;
	padding: 0.28rem 0.55rem;
	border-radius: 6px;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

[data-theme="dark"] .img-protect::after {
	background:
		linear-gradient(
			115deg,
			rgba(15, 23, 42, 0.2) 0%,
			rgba(15, 23, 42, 0.06) 32%,
			transparent 58%,
			rgba(0, 0, 0, 0.08) 82%,
			rgba(0, 0, 0, 0.32) 100%
		),
		linear-gradient(to bottom, transparent 48%, rgba(0, 0, 0, 0.35) 100%);
}

[data-theme="dark"] .img-protect::before {
	opacity: 0.06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Ctext x='10' y='62' fill='%2394a3b8' font-family='Segoe UI,Arial,sans-serif' font-size='15' font-weight='700' letter-spacing='3' transform='rotate(-24 110 60)'%3EiXHRMS DEMO%3C/text%3E%3C/svg%3E");
}

[data-theme="dark"] .img-protect img,
[data-theme="dark"] .img-protect__img {
	opacity: 0.86;
}
