/* Extracted from website/index.html */
/* =========================================================
   REAL DASHBOARD SHOWCASE
   ========================================================= */

.sm-real-product-preview{
  width:min(1180px,calc(100% - 48px)) !important;
  margin:54px auto 0 !important;
}


/* Main frame */

.sm-dashboard-showcase{
  position:relative;
  width:100%;
  overflow:hidden;

  border:1px solid #292d35;
  border-radius:16px;

  background:#0b0d10;

  box-shadow:
    0 32px 90px rgba(0,0,0,.40);
}


/* Screenshot area */

.sm-showcase-stage{
  position:relative;
  width:100%;

  aspect-ratio:16 / 8.8;

  overflow:hidden;

  background:#090b0e;
}


/* Slides */

.sm-showcase-slide{
  position:absolute;
  inset:0;

  margin:0;

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;

  transform:
    translateY(8px)
    scale(.995);

  pointer-events:none;

  transition:
    opacity .65s ease,
    transform .75s cubic-bezier(.2,.7,.2,1);
}


.sm-showcase-slide.is-active{
  opacity:1;

  transform:
    translateY(0)
    scale(1);

  pointer-events:auto;
}


/* Normal full dashboard pages */

.sm-showcase-slide:not(.sm-showcase-slide-modal) img{
  width:100%;
  height:100%;

  display:block;

  object-fit:contain;
  object-position:center;

  user-select:none;
  -webkit-user-drag:none;
}


/* Modal/dialog screenshots */

.sm-showcase-slide-modal{
  padding:
    clamp(24px,4vw,58px);

  box-sizing:border-box;

  background:
    radial-gradient(
      circle at center,
      rgba(154,124,244,.055),
      transparent 58%
    ),
    #090b0e;
}


.sm-showcase-slide-modal img{
  display:block;

  width:auto;
  height:auto;

  max-width:92%;
  max-height:92%;

  object-fit:contain;

  border-radius:10px;

  box-shadow:
    0 25px 75px rgba(0,0,0,.58);

  user-select:none;
  -webkit-user-drag:none;
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

.sm-showcase-footer{
  min-height:54px;

  padding:0 18px;

  display:grid;

  grid-template-columns:
    minmax(140px,1fr)
    auto
    minmax(70px,1fr);

  align-items:center;

  gap:18px;

  border-top:
    1px solid #252932;

  background:#111318;
}


/* Current page */

.sm-showcase-label{
  min-width:0;

  display:flex;
  align-items:center;

  gap:9px;

  color:#aeb4be;

  font-size:11px;
  font-weight:600;
}


.sm-showcase-label i{
  width:6px;
  height:6px;

  flex:0 0 6px;

  border-radius:50%;

  background:#9a7cf4;

  box-shadow:
    0 0 10px rgba(154,124,244,.6);
}


/* Navigation dots */

.sm-showcase-nav{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:7px;
}


.sm-showcase-nav button{
  appearance:none;
  -webkit-appearance:none;

  width:7px;
  height:7px;

  min-width:7px;

  padding:0;

  border:0;
  border-radius:999px;

  background:#444952;

  cursor:pointer;

  transition:
    width .25s ease,
    background .25s ease,
    transform .25s ease;
}


.sm-showcase-nav button:hover{
  background:#777d88;

  transform:
    scale(1.12);
}


.sm-showcase-nav button.is-active{
  width:22px;

  background:#9a7cf4;

  transform:none;
}


/* Slide counter */

.sm-showcase-count{
  justify-self:end;

  display:flex;

  gap:5px;

  color:#626873;

  font-size:10px;

  font-variant-numeric:
    tabular-nums;
}


.sm-showcase-count span:first-child{
  color:#c7cbd2;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:800px){

  .sm-real-product-preview{
    width:
      calc(100% - 32px)
      !important;

    margin-top:
      44px !important;
  }

  .sm-showcase-stage{
    aspect-ratio:
      16 / 10;
  }

  .sm-showcase-footer{
    grid-template-columns:
      1fr auto;

    min-height:
      52px;

    gap:
      10px;
  }

  .sm-showcase-nav{
    grid-column:
      1 / -1;

    grid-row:
      2;

    padding-bottom:
      13px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:520px){

  .sm-real-product-preview{
    width:
      calc(100% - 20px)
      !important;

    margin-top:
      34px !important;
  }

  .sm-dashboard-showcase{
    border-radius:
      11px;
  }

  .sm-showcase-stage{
    aspect-ratio:
      4 / 3;
  }

  .sm-showcase-slide-modal{
    padding:
      18px 12px;
  }

  .sm-showcase-slide-modal img{
    max-width:
      100%;

    max-height:
      100%;
  }

  .sm-showcase-footer{
    padding:
      0 13px;
  }

}

@media(prefers-reduced-motion:reduce){

  .sm-showcase-slide,
  .sm-showcase-nav button{
    transition:none !important;
  }

}
