/* =============================================
   report.css — Penetration Test Report Styling
   ============================================= */

/* --- Layout wrapper --- */
.report-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5rem;
}

/* --- Disclaimer banner --- */
.disclaimer-banner {
  background: rgba(255, 200, 0, 0.1);
  border: 1.5px solid rgba(255, 200, 0, 0.5);
  color: #ffe066;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.disclaimer-banner strong { color: #ffc800; }

/* --- Report document --- */
.report {
  background: #111521;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #c0ccd8;
}

.report h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8fa6;
  margin: 1.25rem 0 0.5rem;
  font-weight: 700;
}

.report p, .report ul, .report ol {
  margin: 0 0 0.75rem;
}

.report ul, .report ol {
  padding-left: 1.5rem;
}

.report li {
  margin-bottom: 0.3rem;
}

.report code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: rgba(0,212,255,0.1);
  color: #5dd8f0;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* --- Cover page --- */
.report__cover {
  background: linear-gradient(140deg, #0d1117 0%, #0a1628 60%, #001432 100%);
  border-bottom: 3px solid var(--c-accent, #00d4ff);
  padding: 3.5rem 3rem 3rem;
  display: grid;
  gap: 2.5rem;
}

.report__cover-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}

.report__cover-logo span { color: var(--c-accent, #00d4ff); }

.report__cover-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--c-accent, #00d4ff);
  margin: 0 0 0.5rem;
}

.report__cover-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 2rem;
  line-height: 1.2;
}

.report__cover-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.report__cover-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border-left: 3px solid rgba(0,212,255,0.4);
}

.report__cover-meta-item span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a7f96;
}

.report__cover-meta-item strong {
  color: #dce8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

.report__cover-meta-item em {
  font-style: normal;
  font-size: 0.78rem;
  color: #6a7f96;
}

/* --- Section --- */
.report__section {
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report__section:last-child { border-bottom: none; }

.report__section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.report__section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--c-accent, #00d4ff);
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Executive summary stat cards --- */
.report__summary-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.report__summary-card {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.report__summary-number {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.report__summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8fa6;
}

.report__summary-card--critical .report__summary-number { color: #ff4444; }
.report__summary-card--high     .report__summary-number { color: #ff8c00; }
.report__summary-card--medium   .report__summary-number { color: #ffc800; }
.report__summary-card--low      .report__summary-number { color: #5abf5e; }

/* --- Severity badges --- */
.badge-sev {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-sev--critical { background: rgba(255,60,60,0.18);  color: #ff5555; border: 1px solid rgba(255,60,60,0.3);  }
.badge-sev--high     { background: rgba(255,140,0,0.15);  color: #ffaa33; border: 1px solid rgba(255,140,0,0.3);  }
.badge-sev--medium   { background: rgba(255,200,0,0.12);  color: #ffd040; border: 1px solid rgba(255,200,0,0.25); }
.badge-sev--low      { background: rgba(76,175,80,0.12);  color: #6abf6d; border: 1px solid rgba(76,175,80,0.25); }

/* --- Status badges --- */
.badge-status {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-status--open  { background: rgba(255,60,60,0.1);  color: #ff7070; border: 1px solid rgba(255,60,60,0.2);  }
.badge-status--fixed { background: rgba(76,175,80,0.12); color: #6abf6d; border: 1px solid rgba(76,175,80,0.25); }

/* --- Findings overview table --- */
.report__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.report__table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  color: #6a7f96;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.report__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
  color: #b8c8d8;
}

.report__table tr:last-child td { border-bottom: none; }

.report__table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Finding detail blocks --- */
.report__finding {
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.report__finding:last-child { margin-bottom: 0; }

.report__finding-header {
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.report__finding-header > span:nth-child(2) {
  flex: 1;
  font-weight: 600;
  color: #e0e8f0;
  font-size: 0.95rem;
}

.report__finding-header--critical { background: rgba(255,60,60,0.1);   border-bottom: 2px solid rgba(255,60,60,0.35);  }
.report__finding-header--high     { background: rgba(255,140,0,0.08);  border-bottom: 2px solid rgba(255,140,0,0.3);   }
.report__finding-header--medium   { background: rgba(255,200,0,0.07);  border-bottom: 2px solid rgba(255,200,0,0.28);  }
.report__finding-header--low      { background: rgba(76,175,80,0.07);  border-bottom: 2px solid rgba(76,175,80,0.25);  }

.report__finding-body {
  padding: 1.5rem;
}

/* --- Finding meta strip (CVSS / Category / OWASP) --- */
.report__finding-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report__finding-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.report__finding-meta span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7f96;
}

.report__finding-meta strong {
  color: #d0dce8;
  font-size: 0.88rem;
}

/* --- Fixed during engagement notice --- */
.report__finding-status {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(76,175,80,0.07);
  border: 1px solid rgba(76,175,80,0.22);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #90c894;
}

/* --- Code block --- */
.report__code {
  background: #0a0d14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #9dd8a8;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.65;
  margin: 0.5rem 0;
}

.report__code-caption {
  font-size: 0.78rem;
  color: #6a7f96;
  font-style: italic;
  margin: 0.4rem 0 0.75rem;
}

/* --- Mono utility --- */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--c-accent, #00d4ff);
  font-weight: 500;
}

/* --- Report footer --- */
.report__footer {
  padding: 1.5rem 3rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: #5a6a7a;
}

.report__footer-disclaimer {
  grid-column: 1 / -1;
  font-style: italic;
  color: rgba(255,200,0,0.5);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .report-wrapper { padding: 1rem 0.75rem 3rem; }

  .report__cover,
  .report__section { padding: 2rem 1.25rem; }

  .report__footer {
    padding: 1.25rem 1.25rem;
    grid-template-columns: 1fr;
  }

  .report__summary-grid { gap: 0.6rem; }

  .report__finding-header { padding: 0.75rem 1rem; }
  .report__finding-body   { padding: 1rem; }

  .report__finding-meta { gap: 1rem; }

  .report__code { font-size: 0.72rem; }
}

@media print {
  .nav, .disclaimer-banner { display: none !important; }
  .report-wrapper { padding: 0; max-width: 100%; }
  .report { border: none; border-radius: 0; background: #fff; color: #000; }
}
