/* static/css/report_detail.css */

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
}

/* Section spacing */
.hero-section {
  margin-top: 1.5rem;
}

/* --- HERO BILD (NEU & OPTIMIERT) --- */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 50vh;
}

@media (min-width: 992px) {
  .hero-image-wrapper {
    min-height: 40vh;
  }
}

.hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
}

.hero-text-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.hero-text-overlay h1,
.hero-text-overlay p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 576px) {
  .hero-text-overlay {
    padding: 1rem;
  }
  .hero-text-overlay h1 {
    font-size: 1.75rem;
  }
  .hero-text-overlay p {
    font-size: 1rem;
  }
}

/* --- INHALTSBILD (OPTIMIERT) --- */
.report-image-container {
  margin: 2.5rem auto; /* Zentriert den Container horizontal */
  max-width: 75%; /* Das Bild nimmt maximal 75% der Inhaltsbreite ein */
  text-align: center; /* Stellt sicher, dass das Bild innerhalb des Containers zentriert ist */
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

.report-image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.5rem;
}
.report-img-small {
  max-width: 60%;
}

/* ALLGEMEINER INHALT */
.report-content h2 {
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.report-content p,
.report-content ul li {
  line-height: 1.8;
  color: #495057;
}
.report-content ul {
  padding-left: 1.5rem;
}
.report-content ul li {
  margin-bottom: 0.5rem;
}

/* SPEZIELLE BOXEN & TABELLEN */
.callout-box {
  background-color: #f0f8ff;
  border-left: 5px solid #0d6efd;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}
.callout-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* NEU: Styling für Blockquotes (z.B. "Wussten Sie schon?") */
.report-content blockquote {
  background-color: #f0f8ff; /* Hellblau, passend zur callout-box */
  border-left: 5px solid #0d6efd;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 0.5rem;
}
.report-content blockquote p:last-child {
  margin-bottom: 0;
}
.report-content blockquote h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.food-table {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}
.food-table th {
  background-color: #f8f9fa;
}
.food-table td,
.food-table th {
  padding: 0.75rem;
}

/* PERSÖNLICHES ERGEBNIS */
.personal-result-box {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-left-width: 5px;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.personal-result-box.result-blue {
  border-left-color: #0d6efd;
}
.personal-result-box.result-red {
  border-left-color: #dc3545;
}
.personal-result-box.result-green {
  border-left-color: #198754;
}
.result-title {
  font-weight: 700;
  font-size: 1.5rem;
}

/* WISSENSCHAFTLICHES AKKORDEON */
.science-details-accordion .accordion-item {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  background-color: #fff;
}
.science-details-accordion .accordion-button {
  font-weight: 600;
}
.science-details-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.snp-table {
  font-size: 0.9rem;
}
.sources-list {
  font-size: 0.85rem;
  color: #6c757d;
  list-style-type: decimal;
  padding-left: 1.25rem;
}

/* PLATZHALTER FÜR VERSTECKTEN INHALT */
.hidden-content-placeholder {
  position: relative;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 2.5rem;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
}
.hidden-content-placeholder::before {
  content: "Ihre genetischen Details und wissenschaftliche Hintergründe sind hier für Sie verfügbar. Erhalten Sie tiefere Einblicke in Ihre DNA.";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: "Redacted Script", sans-serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ced4da;
  filter: blur(4px);
  z-index: 1;
}
.hidden-content-placeholder .content-lock {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: inline-block;
}
.hidden-content-placeholder .icon {
  font-size: 2rem;
  color: #0d6efd;
}

/* --- NEUES STYLING FÜR REPORT-DETAILS (TITEL, KATEGORIE) --- */
.report-details .report-category-display {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0d6efd; /* Blaue Farbe aus Ihrem alten Design */
}

.report-details .report-title-display {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1c1c1c;
}

/* --- Optional: Besserer Stil für Bilder IM Fließtext --- */
.report-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem auto;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  display: block;
}

/* Dark mode overrides */
body.dark-mode .science-details-accordion .accordion-item {
  background-color: var(--dark-surface);
  border-color: var(--dark-border);
}
body.dark-mode .science-details-accordion .accordion-button {
  background-color: var(--dark-surface);
  color: var(--text-light);
}
body.dark-mode .science-details-accordion .accordion-button::after {
  filter: invert(1);
}
body.dark-mode .science-details-accordion .accordion-body {
  background-color: var(--dark-surface);
  color: var(--text-light);
}
body.dark-mode .snp-table {
  color: var(--text-light);
}
body.dark-mode .snp-table thead {
  --bs-table-bg: var(--dark-border);
  --bs-table-color: var(--text-light);
  background-color: var(--dark-border);
  color: var(--text-light);
}
body.dark-mode .snp-table tbody tr {
  background-color: var(--dark-surface);
  border-color: var(--dark-border);
}
body.dark-mode .snp-table tbody tr:nth-child(odd) {
  background-color: var(--dark-border);
}
body.dark-mode .snp-table tbody tr:hover {
  background-color: var(--dark-border);
}
body.dark-mode .sources-list {
  color: rgba(248, 249, 250, 0.85);
}
