/**
 * Clanto AntiCopia – Frontend Protection Styles
 *
 * @package ClantoAntiCopia
 */

/* ------------------------------------------------------------------ */
/* User-select: block text selection when copy protection is active.   */
/* Applied via JS class on <body>.                                      */
/* ------------------------------------------------------------------ */
body.clantoacp-no-select,
body.clantoacp-no-select * {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
}

/* ------------------------------------------------------------------ */
/* DevTools Warning Overlay                                             */
/* ------------------------------------------------------------------ */
#clantoacp-devtools-warn {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.clantoacp-devtools-inner {
	text-align: center;
	color: #fff;
	max-width: 400px;
	padding: 40px;
}

.clantoacp-devtools-inner svg {
	color: #f0ab00;
	margin-bottom: 20px;
}

.clantoacp-devtools-inner h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
}

.clantoacp-devtools-inner p {
	font-size: 1rem;
	color: #d0d0d0;
	margin: 0;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Watermark                                                            */
/* ------------------------------------------------------------------ */
#clantoacp-watermark {
	/* Styles applied entirely via JS (dynamic canvas data URL). */
	pointer-events: none !important;
	user-select: none !important;
}

/* ------------------------------------------------------------------ */
/* Image Protection                                                     */
/* ------------------------------------------------------------------ */
img.clantoacp-protected {
	pointer-events: none !important;
	-webkit-user-drag: none !important;
	user-drag: none !important;
}

/* ------------------------------------------------------------------ */
/* PDF Trigger (inline links converted by PHP)                          */
/* ------------------------------------------------------------------ */
.clantoacp-pdf-trigger {
	cursor: pointer;
	color: #2271b1;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.clantoacp-pdf-trigger::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Print blocking (supplement to JS)                                   */
/* ------------------------------------------------------------------ */
@media print {
	body.clantoacp-no-print {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Screenshot Protection Overlay                                        */
/* ------------------------------------------------------------------ */
#clantoacp-screenshot-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	background: #000;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Toast Notification (blocco copia)                                   */
/* ------------------------------------------------------------------ */
#clantoacp-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 2147483645;
	background: rgba(30, 30, 30, 0.92);
	color: #fff;
	padding: 10px 22px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	backdrop-filter: blur(4px);
}

#clantoacp-toast.clantoacp-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
