/* =========================================================
   BI-SHOWCASE.CSS
   Page-level layout for the BI Showcase page.

   The Supply Chain BI dashboard itself has been moved to:
   assets/dashboards/supply-chain-bi/
   ========================================================= */

/* Integration panel below dashboard */
.bi-integration-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(13, 16, 34, 0.58);
}

.bi-integration-panel h2 {
  margin-bottom: 0.75rem;
}

.bi-integration-panel p {
  max-width: 70ch;
  margin-bottom: 0;
}

.integration-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 420px;
}

.integration-notes span {
  width: 100%;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.integration-notes code {
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: rgba(147, 197, 253, 0.08);
  color: #dbeafe;
  font-size: 0.78rem;
}

/* Page-level responsiveness */
@media (max-width: 980px) {
  .bi-integration-panel {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .integration-notes {
    justify-content: flex-start;
  }

  .integration-notes span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .bi-integration-panel {
    border-radius: 18px;
  }
}

/* Make BI Showcase hero title wider */
.page-hero h1 {
  max-width: 26ch;
}

/* Reduce top empty space on BI Showcase page */
.page-hero {
  padding-top: 3rem;
}

/* BI Showcase hero with GIF on the right */
.bi-hero {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.bi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
}

.bi-hero-visual {
  position: relative;
  justify-self: start;
  overflow: hidden;
  max-width: 420px;
  padding: 0.75rem;
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(13, 16, 34, 0.62);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bi-hero-copy {
  max-width: 760px;
}

.bi-hero-copy h1 {
  max-width: 26ch;
}

.bi-hero-copy .lead {
  max-width: 68ch;
}

.bi-hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 500 / 335;
}

@media (max-width: 980px) {
  .bi-hero-grid {
    grid-template-columns: 1fr;
  }

  .bi-hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  .bi-hero {
    padding-top: 1.5rem;
  }

  .bi-hero-visual {
    border-radius: 22px;
    padding: 0.55rem;
  }

  .bi-hero-visual img,
  .bi-hero-visual video {
    border-radius: 16px;
  }
}

/* =========================================================
   POWER BI EMBED SECTION
   ========================================================= */

.powerbi-embed-panel {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.powerbi-embed-copy {
  max-width: 860px;
}

.powerbi-embed-copy h2 {
  margin-bottom: 0.75rem;
}

.powerbi-embed-copy p {
  max-width: 78ch;
}

.powerbi-embed-copy .stack-wrap {
  margin-top: 1rem;
}

.powerbi-embed-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 700px;
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.006)
    ),
    rgba(13, 16, 34, 0.18);
}

.powerbi-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.powerbi-embed-actions {
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .powerbi-embed-frame {
    min-height: 540px !important;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .powerbi-embed-frame {
    min-height: 460px !important;
  }
}

/* =========================================================
   Power BI iframe performance mode + large-screen tuning
   ========================================================= */

.powerbi-embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.95rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(147, 197, 253, 0.12), transparent 20rem),
    rgba(13, 16, 34, 0.22);
}

.powerbi-embed-placeholder h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.powerbi-embed-placeholder p {
  max-width: 56ch;
  margin: 0;
}

.powerbi-embed-frame.is-loaded .powerbi-embed-placeholder {
  display: none;
}

