/* ============================================================================
   CAREER COMPASS — 14-PAGE CLINICAL PSYCHOMETRIC REPORT STYLESHEET
   ============================================================================ */

/* Report Page Paper Canvas (Screen Presentation) */
.report-page {
  background: #FFFFFF !important;
  color: #0F172A !important;
  width: 100%;
  min-height: 1100px;
  padding: 3rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .report-page {
    padding: 2rem 1.25rem;
    min-height: auto;
  }
}

/* ============================================================================
   REDACTION & SECURITY WATERMARKS (FIX FOR BLUE SQUARES)
   ============================================================================ */

/* Replaces solid blue rectangles with an elegant frosted security blur */
.redacted-text {
  display: inline-block;
  background: rgba(148, 163, 184, 0.12) !important;
  color: #64748B !important;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  user-select: none;
  pointer-events: none;
  border-radius: 4px;
  padding: 0 6px;
  letter-spacing: 2px;
  font-family: monospace;
}

/* Paywall Gated Card Boxes */
.paywall-gate-box {
  background: #F8FAFC !important;
  border: 1.5px dashed #CBD5E1 !important;
  border-radius: 1rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.locked-card-overlay {
  position: relative;
  overflow: hidden;
}

.locked-card-overlay::after {
  content: "Locked in Preview";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #B45309;
  background: rgba(254, 243, 199, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 1rem;
}

/* ============================================================================
   PRINT MEDIA OPTIMIZATION (14-PAGE PDF GENERATION)
   ============================================================================ */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .no-print,
  header,
  footer,
  #modal-login,
  #modal-duplicate-detected,
  #modal-admin-pin,
  #modal-student-dossier,
  #modal-checkout {
    display: none !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .report-page {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2.5cm 2cm !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  .report-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .redacted-text {
    background: #F1F5F9 !important;
    color: #94A3B8 !important;
    filter: blur(3px) !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}