/**
 * Hello Plataforma · Content Protection Styles
 *
 * Estilos para:
 * - Tooltip "Contenido protegido" al right-click
 * - Overlay full screen para DevTools/screenshot
 * - Refuerzos de bloqueo de selección/drag
 */


/* ============================================================
   REFUERZOS DE BLOQUEO (CSS-level)
   ============================================================ */

.hp-feed-post img,
.hp-feed-post video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: auto; /* dejar que los videos sigan funcionando con tap */
}

.hp-feed-post img {
  -webkit-user-drag: none;
}


/* ============================================================
   TOOLTIP: "Contenido protegido"
   Aparece al intentar right-click
   ============================================================ */

.hp-cp-tooltip {
  position: absolute;
  z-index: 9999;
  background: rgba(15, 14, 22, 0.92);
  color: #FFFFFF;
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: -0.1px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-6px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(212, 191, 232, 0.20);
  box-shadow: 0 4px 12px rgba(15, 14, 22, 0.30);
}

.hp-cp-tooltip::before {
  content: '🛡';
  margin-right: 4px;
}

.hp-cp-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-10px);
}


/* ============================================================
   FULL-SCREEN WARNING OVERLAY
   Para DevTools y screenshot detection
   ============================================================ */

.hp-cp-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 14, 22, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.hp-cp-warning-overlay.is-visible {
  opacity: 1;
}

.hp-cp-warning-card {
  max-width: 420px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 64px -12px rgba(217, 119, 87, 0.30);
  border: 0.5px solid rgba(217, 119, 87, 0.20);
  transform: scale(0.95);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hp-cp-warning-overlay.is-visible .hp-cp-warning-card {
  transform: scale(1);
}

.hp-cp-warning-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #D97757 0%, #B85B40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 28px -6px rgba(217, 119, 87, 0.40);
  animation: hpCpIconPulse 1.5s ease-in-out infinite;
}

@keyframes hpCpIconPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 12px 28px -6px rgba(217, 119, 87, 0.40),
      0 0 0 0 rgba(217, 119, 87, 0.5);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 12px 28px -6px rgba(217, 119, 87, 0.40),
      0 0 0 12px rgba(217, 119, 87, 0);
  }
}

.hp-cp-warning-icon i {
  font-size: 36px;
  color: #FFFFFF;
}

.hp-cp-warning-title {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #1A1726;
  margin: 0 0 10px;
  line-height: 1.2;
}

.hp-cp-warning-sub {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 14px;
  color: #5B5566;
  line-height: 1.6;
  margin: 0 0 24px;
}

.hp-cp-warning-btn {
  background: linear-gradient(135deg, #9575CD 0%, #69499E 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 4px 12px -2px rgba(105, 73, 158, 0.40);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hp-cp-warning-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px -2px rgba(105, 73, 158, 0.50);
}

.hp-cp-warning-btn:active {
  transform: translateY(0);
}


/* ============================================================
   ACCESSIBILITY: prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hp-cp-warning-icon,
  .hp-cp-warning-overlay,
  .hp-cp-warning-card,
  .hp-cp-tooltip {
    animation: none !important;
    transition: opacity 200ms linear !important;
  }
}
