/* ============================================================
   CD - Creative Digitals | Content protection styles
   Loaded for public (non-logged-in) visitors only.
   ============================================================ */

/* No dragging media out of the page */

img,
video {
	-webkit-user-drag: none;
	user-drag: none;
}

/* No text/media selection on protected visual sections
   (regular text content stays selectable and readable) */

.cd-card-media,
.cd-gallery-item,
.cd-hero-video-frame,
.cd-video-frame,
.cd-ratio-card,
.cd-seo-screenshot,
.cd-about-banner,
.cd-carousel-item {
	-webkit-user-select: none;
	user-select: none;
}

/* ---------- Subtle premium watermark (toggle: CD Security) ---------- */

body.cd-watermark-on .cd-card-media::before,
body.cd-watermark-on .cd-gallery-item::before,
body.cd-watermark-on .cd-ratio-card::before,
body.cd-watermark-on .cd-video-frame::before,
body.cd-watermark-on .cd-seo-screenshot::before {
	content: "Creative Digitals";
	position: absolute;
	bottom: 10px;
	inset-inline-start: 14px;
	z-index: 5;
	font-family: "Assistant", "Heebo", "Arial", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.09em;
	color: rgba(255, 255, 255, 0.32);
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.65);
	pointer-events: none;
	direction: ltr;
}

/* ---------- Protection toast ---------- */

.cd-protect-toast {
	position: fixed;
	bottom: 28px;
	right: 50%;
	z-index: 9999;
	transform: translateX(50%) translateY(12px);
	background: rgba(8, 8, 8, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	padding: 11px 26px;
	color: #CFCFCF;
	font-family: "Assistant", "Heebo", "Arial", sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease, transform 300ms ease;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.cd-protect-toast.is-show {
	opacity: 1;
	transform: translateX(50%) translateY(0);
}

@media (max-width: 480px) {
	.cd-protect-toast {
		white-space: normal;
		text-align: center;
		max-width: calc(100vw - 48px);
		border-radius: 16px;
	}
}

/* ---------- Print protection ---------- */

@media print {
	img,
	video,
	.cd-card-media,
	.cd-gallery,
	.cd-video-frame,
	.cd-hero-video-frame,
	.cd-ratio-card,
	.cd-carousel,
	.cd-about-banner,
	.cd-seo-screenshot {
		display: none !important;
	}

	body::before {
		content: "התוכן באתר מוגן ואינו מיועד להדפסה.";
		display: block;
		padding: 48px 24px;
		font-size: 20px;
		font-weight: 700;
		text-align: center;
	}
}
