/* Latest Reports — bento layout (desktop) */

.reports-bento {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Light-mode defaults: make cards off-white to match Journey page */
.reports-bento-card {
  background-color: #F1EBEB;
  border-color: rgba(0,0,0,0.06);
  color: #000;
}

.reports-bento-cta {
  background-color: #F1EBEB;
  border-color: rgba(0,0,0,0.06);
  color: #000;
}

/* Dark-mode overrides */
.dark .reports-bento-card {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dark .reports-bento-cta {
  background: linear-gradient(165deg, #0c0c0c 0%, #1a1a1a 50%, #252525 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (min-width: 1024px) {
  .reports-bento {
    display: grid;
    grid-template-columns: minmax(280px, 360px) repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(300px, 1fr) minmax(260px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .reports-bento__intro {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .reports-bento__c1 {
    grid-column: 2;
    grid-row: 1;
  }

  .reports-bento__c2 {
    grid-column: 3;
    grid-row: 1;
  }

  .reports-bento__c3 {
    grid-column: 2;
    grid-row: 2;
  }

  .reports-bento__c4 {
    grid-column: 3;
    grid-row: 2;
  }

  .reports-bento__c5 {
    grid-column: 4;
    grid-row: 2;
  }

  /* Top-right slot (fills the empty space on large screens) */
  .reports-bento__c6 {
    grid-column: 4;
    grid-row: 1;
  }
}

.reports-bento-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 6px 18px -12px rgba(0, 0, 0, 0.12),
    0 6px 14px -6px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (min-width: 1024px) {
  .reports-bento-card {
    min-height: 0;
  }
}

.reports-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 8px 24px -12px rgba(0, 0, 0, 0.14),
    0 24px 48px -20px rgba(0, 0, 0, 0.24);
}

.reports-bento-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
  /* Keep image visible enough for context while letting text remain readable */
  opacity: 0.72;
}

/* Empty card background: show dark radial in dark mode, transparent in light so off-white base shows */
.reports-bento-card__empty {
  position: absolute;
  inset: 0;
  background: transparent;
}

.dark .reports-bento-card__empty {
  background: radial-gradient(ellipse 80% 60% at 30% 0%, #2d2d2d 0%, #121212 45%, #050505 100%);
}

.reports-bento-card:hover .reports-bento-card__media {
  transform: scale(1.1);
  /* Slightly increase visibility on hover so the image reads clearer */
  opacity: 0.85;
}

.reports-bento-card__scrim {
  position: absolute;
  inset: 0;
  /* lighter scrim in light mode to preserve image/text visibility */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01) 0%,
    rgba(0, 0, 0, 0.04) 40%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
}

.reports-bento-card__icon {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06) inset;
}

.reports-bento-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.reports-bento-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 260px;
  padding: 1.35rem 1.35rem 4.25rem;
}

/* Ensure text over image backgrounds is white in light mode */
.reports-bento-card__media ~ .reports-bento-card__body,
.reports-bento-card__media ~ .reports-bento-card__body h3,
.reports-bento-card__media ~ .reports-bento-card__body p {
  color: #fff;
}

/* Preserve dark text when card has no image (empty placeholder) */
.reports-bento-card__empty ~ .reports-bento-card__body,
.reports-bento-card__empty ~ .reports-bento-card__body h3,
.reports-bento-card__empty ~ .reports-bento-card__body p {
  color: #000;
}

@media (min-width: 1024px) {
  .reports-bento-card__body {
    min-height: 0;
    flex: 1;
  }
}

.reports-bento-card__arrow {
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.reports-bento-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #F1EBEB;
  box-shadow:
    0 6px 18px -12px rgba(0, 0, 0, 0.12),
    0 6px 14px -6px rgba(0, 0, 0, 0.06);
}

/* CTA uses an image background — ensure its text is white */
.reports-bento-cta {
  color: #fff;
}

.reports-bento-cta__icon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.reports-bento-cta__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Dark-mode scrim and icon overrides */
.dark .reports-bento-card__scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.dark .reports-bento-card__icon {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

@media (min-width: 1024px) {
  .reports-bento-cta {
    min-height: 0;
  }
}

/* Ensure the intro card uses the same off-white in light mode, and keeps the dark-mode scrim */
.reports-bento__intro {
  background-color: #F1EBEB !important;
  border-color: rgba(0, 0, 0, 0.06);
}

.dark .reports-bento__intro {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.07);
}
