/* /frontend/static/css/spa-skeleton.css */

body[data-page-ready="false"] #spa-root> :not(.spa-skel-wrapper),
body[data-page-ready="false"] #app-bottom {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-page-ready="true"] #spa-root> :not(.spa-skel-wrapper),
body[data-page-ready="true"] #app-bottom {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease-out;
}

.spa-skel-wrapper {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.spa-skel-wrapper.skel-fade-in {
  opacity: 1;
}

.spa-skel-wrapper.skel-fade-out {
  opacity: 0;
  transition: opacity 250ms ease-out;
}

.spa-skel-card {
  max-width: 460px;
  width: 100%;
  padding: 40px 30px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skel-line {
  height: 16px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.35);
  overflow: hidden;
  position: relative;
}

.skel-line::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0) 100%);

  animation: skel-shimmer 1.35s infinite;
  transform: translateX(-100%);
}

.skel-line.wide {
  width: 100%;
}

.skel-line.mid {
  width: 72%;
}

.skel-line.short {
  width: 48%;
}

.skel-line.tiny {
  width: 30%;
}

@keyframes skel-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}
