/* ============================================
   TOP SECRET CLASSIFIED DOCUMENT STYLING
   For: Conspiracy Chronicles - The Game
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.classified-document {
  background: #d2c9b7;
  background-image: 
    linear-gradient(rgb(210 201 183 / 90%), rgb(210 201 183 / 90%)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="50" y="50" font-size="14" fill="rgba(0,0,0,0.03)" text-anchor="middle" dominant-baseline="middle" transform="rotate(-30,50,50)" font-family="monospace">TOP SECRET</text></svg>');
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  font-family: 'Courier New', Courier, 'Lucida Sans Typewriter', monospace;
}

.document-container {
  max-width: 900px;
  width: 100%;
  background: #f5f0e1;
  border: 3px solid #1a1a1a;
  box-shadow: 8px 8px 0 rgb(0 0 0 / 30%);
  padding: 0;
  position: relative;
}

/* ---- TOP/BOTTOM CLASSIFICATION BANNERS ---- */
.classified-banner {
  background: #c00;
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 4px;
  font-family: Arial, Helvetica, sans-serif;
  border-bottom: 2px solid #1a1a1a;
  text-transform: uppercase;
}

.classified-banner.bottom {
  border-bottom: none;
  border-top: 2px solid #1a1a1a;
}

.classified-banner .sub-class {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: normal;
  display: block;
}

/* ---- DOCUMENT HEADER ---- */
.doc-header {
  padding: 20px 30px 10px;
  border-bottom: 1px dashed #333;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-header .ref-block {
  font-size: 12px;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}

.doc-header .ref-block .label {
  font-weight: bold;
  text-transform: uppercase;
}

.doc-header .stamp-area {
  border: 2px solid #c00;
  color: #c00;
  padding: 5px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(3deg);
  letter-spacing: 1px;
  display: inline-block;
  float: right;
  margin-left: 12px;
  margin-bottom: 6px;
}

/* ---- DOCUMENT TITLE ---- */
.doc-title {
  padding: 15px 30px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #333;
  line-height: 1.4;
}

/* ---- HANDLING INSTRUCTIONS ---- */
.handling-instructions {
  padding: 10px 30px;
  background: #e8e3d4;
  border-bottom: 1px solid #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #333;
}

/* ---- CONTENT ---- */
.doc-content {
  padding: 25px 30px;
  font-size: 13px;
  line-height: 1.7;
  color: #1a1a1a;
}

.doc-content .section-heading {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid #666;
  padding-bottom: 3px;
  letter-spacing: 1px;
}

.doc-content .section-heading:first-child {
  margin-top: 0;
}

.doc-content p {
  margin-bottom: 12px;
  text-align: justify;
}

.doc-content .classification-marker {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doc-content .redacted {
  display: inline-block;
  background: #000;
  color: #000;
  padding: 0 8px;
  user-select: none;
}

.doc-content .redacted:hover {
  color: #fff;
}

.doc-content .redacted-block {
  display: block;
  background: #000;
  height: 20px;
  margin: 8px 0;
  width: 100%;
}

/* ---- SOURCES / FOOTER ---- */
.doc-sources {
  padding: 15px 30px;
  border-top: 1px solid #666;
  font-size: 11px;
  line-height: 1.8;
}

.doc-sources .section-heading {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.doc-sources li {
  margin-left: 20px;
  margin-bottom: 4px;
}

/* ---- DISCLAIMER ---- */
.doc-footer-disclaimer {
  padding: 12px 30px;
  background: #e8e3d4;
  border-top: 1px solid #999;
  font-size: 9px;
  text-align: center;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- REDACTED WATERMARK OVERLAY ---- */
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 120px;
  font-weight: bold;
  color: rgb(204 0 0 / 4%);
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 20px;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 0;
}

.doc-content, .doc-header, .doc-title, .handling-instructions, .doc-sources {
  position: relative;
  z-index: 1;
}

/* ---- PRINT STYLES ---- */
@media print {
  body.classified-document {
    background: white;
    padding: 0;
  }

  .document-container {
    box-shadow: none;
    border: 2px solid #000;
  }
}