/**
 * Marmiro Stones - Content Copy Protection Styles
 * Disables unauthorized text selection, image dragging, and print/PDF copying on public pages.
 */

/* Prevent text selection across public pages */
.public-body,
.embed-body,
.public-body *:not(input):not(textarea):not(select),
.embed-body *:not(input):not(textarea):not(select) {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Allow normal typing and selection inside interactive form inputs & textareas */
.public-body input,
.public-body textarea,
.public-body select,
.embed-body input,
.embed-body textarea,
.embed-body select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Prevent image dragging and saving */
.public-body img,
.embed-body img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}

/* Protection notification toast */
.cp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 99999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.cp-toast-icon {
  display: inline-flex;
  color: #f87171;
  font-size: 14px;
}

/* Print protection: hide content if user tries to Print or save to PDF */
@media print {
  html, body, .public-body, .embed-body {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
  }
}
