/* ============================================================
   NATA ARAH - Reports Page Stylesheet
   Pure Visual Showcase Gallery (Image-first with Hover Zoom & Overlay Details)
   Source: REPORTS sample (NATA ARAH Intelligence)
   ============================================================ */

.reports-page {
  background: #F3EFE6;
}

/* ------------------------------------------------------------
   MAIN SHOWCASE WRAPPER
   ------------------------------------------------------------ */
.reports-main {
  padding-block: 36px 90px;
}

/* ------------------------------------------------------------
   SAMPLE SHOWCASE NOTICE BANNER
   "tambahkan notes bahwa report yang ada pada showcase ini adalah sample,
    hasil setiap klinik bisa jadi cukup berbeda tergantung juga ketersediaan bahannya yaitu data"
   ------------------------------------------------------------ */
.reports-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #f7faf5 0%, #f0f5ed 100%);
  border: 1px solid #dce5d6;
  border-left: 3.5px solid var(--green);
  border-radius: 14px;
  padding: 14px 22px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(18, 59, 50, 0.03);
}

.notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(18, 59, 50, 0.08);
  color: var(--green);
}

.notice-body {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--green);
  color: #eaf3e1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice-text {
  margin: 0;
  color: #27453b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.notice-text strong {
  color: var(--green-deep);
}

.notice-hint {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #72847b;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .reports-notice-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .notice-hint {
    display: none;
  }
}

/* ------------------------------------------------------------
   REPORTS SHOWCASE GRID (PURE IMAGE FORMAT)
   ------------------------------------------------------------ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}


/* ------------------------------------------------------------
   REPORT CARD (IMAGE CONTAINER - 3:2 ASPECT RATIO)
   Image enlarges on hover & overlay detail appears inside
   ------------------------------------------------------------ */
.report-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0D302A;
  border: 1px solid #dfe5da;
  box-shadow: 0 4px 16px rgba(18, 59, 50, 0.045);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  outline: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

/* Card Lift on Hover */
.report-card:hover,
.report-card:focus-within,
.report-card.is-active {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px -10px rgba(18, 59, 50, 0.22), 0 6px 18px -4px rgba(18, 59, 50, 0.08);
  border-color: #8C9870;
}

/* Image Inner Wrap */
.report-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Image Enlarge / Zoom Effect on Hover */
.report-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.45s ease;
}

.report-card:hover .report-img,
.report-card:focus-within .report-img,
.report-card.is-active .report-img {
  transform: scale(1.10);
  filter: brightness(0.76) contrast(1.06);
}

/* Default Top Floating Badge (Visible when idle) */
.report-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 45, 37, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 152, 112, 0.35);
  color: #e5f0d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.report-format-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.report-format-pill .format-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}


/* ------------------------------------------------------------
   HOVER OVERLAY: DETAIL INFORMASI DI DALAM GAMBAR
   "dimana ketika kita hover diatas image tersebut image itu
    akan membesar dan akan ada detail informasi didalamanya selain image"
   ------------------------------------------------------------ */
.report-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 22px 22px 18px;
  background: linear-gradient(
    180deg,
    rgba(18, 59, 50, 0.15) 0%,
    rgba(18, 59, 50, 0.60) 40%,
    rgba(10, 46, 37, 0.88) 85%
  );
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s;
}

.report-card:hover .report-card-overlay,
.report-card:focus-within .report-card-overlay,
.report-card.is-active .report-card-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overlay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.overlay-cat {
  color: var(--sage);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overlay-date {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  font-weight: 500;
}

.overlay-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.overlay-desc {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overlay-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.overlay-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.69rem;
  font-weight: 600;
}
.overlay-pill.accent {
  background: var(--sage);
  color: var(--green-deep);
  border-color: var(--sage);
  font-weight: 700;
}

.overlay-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  font-size: 0.80rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.report-card:hover .overlay-btn {
  background: var(--sage);
}
.overlay-btn .arrow {
  transition: transform 0.2s ease;
}
.report-card:hover .overlay-btn .arrow {
  transform: translate(2px, -2px);
}
.overlay-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.70rem;
}

/* ------------------------------------------------------------
   INTERACTIVE DETAIL MODAL / LIGHTBOX
   Shows full resolution report image + complete insights
   ------------------------------------------------------------ */
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 35, 28, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.report-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.report-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1020px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dce5d6;
  box-shadow: 0 28px 64px -15px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.report-modal-backdrop.is-open .report-modal-dialog {
  transform: translateY(0) scale(1);
}
.report-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dce2d8;
  background: #ffffff;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.report-modal-close:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

/* Modal Media Frame (Placed directly above explanation text) */
.modal-media-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 520px;
  background: #092821;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin-block: 16px 24px;
  border: 1px solid #dbe6d1;
  box-shadow: 0 10px 26px -8px rgba(18, 59, 50, 0.12);
}
.modal-media-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}
.modal-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #051a14;
  display: block;
  transition: transform 0.3s ease;
}
.modal-media-wrap a:hover img {
  transform: scale(1.02);
}
.modal-media-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 45, 37, 0.88);
  border: 1px solid rgba(140, 152, 112, 0.35);
  backdrop-filter: blur(8px);
  color: #e5f0d8;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  pointer-events: none;
}
.modal-media-wrap a:hover .modal-media-hint {
  background: var(--green);
  border-color: var(--sage);
  color: #ffffff;
}

.modal-content-wrap {
  padding: 32px 38px 38px;
}
.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-cat-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #eaf1e2;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-date-tag {
  color: #74847e;
  font-size: 0.82rem;
  font-weight: 500;
}
.modal-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.28;
  color: var(--green-deep);
}
.modal-lead-summary {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3b4d45;
  margin-bottom: 26px;
}

/* Two-column Section: Data Dibutuhkan vs Nilai/Manfaat */
.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.modal-info-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #f7faf4;
  border: 1.5px solid #e2ebd9;
}
.modal-info-card h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-info-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  color: #45564f;
  line-height: 1.55;
}
.modal-info-card li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Modal Highlights Grid */
.modal-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.modal-highlight-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7faf4;
  border: 1px solid #e1ebda;
}
.modal-highlight-card span.label {
  display: block;
  font-size: 0.70rem;
  font-weight: 700;
  color: #697d74;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.modal-highlight-card b.value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
}

/* Modal Footer Actions */
.modal-footer-actions {
  padding-top: 22px;
  border-top: 1px solid #e5ede0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.modal-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-dl-btn:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}
.modal-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid #c9d8c2;
  background: transparent;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.modal-secondary-btn:hover {
  background: #f1f6ed;
}

/* ------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .reports-main {
    padding-block: 22px 60px;
  }
  .reports-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .reports-search-box {
    max-width: none;
    width: 100%;
  }
  .reports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-content-wrap {
    padding: 24px 20px;
  }
  .modal-highlights-grid {
    grid-template-columns: 1fr;
  }
  .modal-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-dl-btn, .modal-secondary-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-card,
  .report-img,
  .report-card-overlay,
  .overlay-btn {
    transition: none !important;
    transform: none !important;
  }
}
