/* ==============================================================================
   PROSKILL SHIELD — Anti-Copy & Anti-Screenshot Protection
   ============================================================================== */

/* 1. Global Copy & Selection Protection */
html, body {
  -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 typing inputs and textareas to work normally */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Prevent image dragging and saving */
img, svg, video, canvas {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}

/* 2. Screen Privacy Curtain (Blackout on Screenshot / Snipping / Blur) */
#proskill-screen-curtain {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  z-index: 2147483647 !important;
  pointer-events: all !important;
  cursor: none !important;
  opacity: 0;
  transition: opacity 0.06s ease-in-out;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#proskill-screen-curtain.active {
  display: flex !important;
  opacity: 1 !important;
}

#proskill-screen-curtain .curtain-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#proskill-screen-curtain .curtain-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

#proskill-screen-curtain .curtain-desc {
  font-size: 13px;
  color: #a0aec0;
}

/* 3. Print / Save as PDF Protection */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
    background: #000000 !important;
  }
}
