/**
 * My A2O - Hardened Anti-Piracy Watermark & Security DRM Styles
 */

/* ========================================================
   1. HARDENED ANTI-PIRACY WATERMARK OVERLAYS (BIGGER, DARKER, RED)
   ======================================================== */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.48; /* Darker & highly visible */
  display: flex;
  align-items: center;
  justify-content: center;
}

.watermark-inner-grid {
  width: 180%;
  height: 180%;
  transform: rotate(-24deg);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.watermark-row {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px; /* Bigger size */
  font-weight: 900; /* Extra bold */
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #dc2626; /* Bold red */
  padding: 10px 0;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.watermark-row:nth-child(even) {
  margin-left: 80px;
}

.wm-shield {
  font-size: 14px;
  color: #ef4444;
  opacity: 0.9;
}

.wm-text {
  color: #dc2626;
  font-weight: 900;
  letter-spacing: 2px;
}

.wm-hash {
  font-family: monospace;
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 800;
  letter-spacing: 1px;
}




/* ========================================================
   2. INSTANT ZERO-LATENCY INTENSE FROSTED BLUR SHIELD
   ======================================================== */
.security-blur-shield {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(9, 12, 16, 0.55);
  backdrop-filter: blur(28px) saturate(110%);
  -webkit-backdrop-filter: blur(28px) saturate(110%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: none !important;
  animation: none !important;
}

body.content-blurred main,
body.content-blurred .main-wrapper,
body.content-blurred #ebook-reader-modal,
body.content-blurred .navbar,
body.content-blurred header {
  filter: blur(24px) saturate(80%) !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: none !important;
}

.blur-shield-card {
  background: rgba(17, 22, 34, 0.92);
  border: 1.5px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 440px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 35px var(--gold-glow);
  transition: none !important;
  animation: none !important;
}

.shield-icon {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--gold-primary);
}

.shield-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.shield-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.shield-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #0c0f14;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
}

@keyframes shieldPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========================================================
   3. DISCREET SECURITY TOAST NOTIFICATION
   ======================================================== */
.security-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-shield {
  color: var(--gold-primary);
}

/* ========================================================
   4. ANTI-PRINT & HARDENED SELECTION LOCK
   ======================================================== */
* {
  -webkit-user-drag: none;
}

.reader-page, .purchased-book-card, .reader-main-stage {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

@media print {
  html, body, * {
    display: none !important;
    visibility: hidden !important;
  }
}
