@keyframes logo-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.logo-skeleton-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 415 / 107;
  background: linear-gradient(
    90deg,
    var(--color-bg-accent, #1a1f2e) 0%,
    var(--color-bg-accent-light, #252b3d) 50%,
    var(--color-bg-accent, #1a1f2e) 100%
  );
  background-size: 200% 100%;
  animation: logo-shimmer 1.5s ease-in-out infinite;
  border-radius: 12px;
  overflow: hidden;
}

.screenshot-skeleton-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 100px;
  background: linear-gradient(
    90deg,
    var(--color-bg-accent, #1a1f2e) 0%,
    var(--color-bg-accent-light, #252b3d) 50%,
    var(--color-bg-accent, #1a1f2e) 100%
  );
  background-size: 200% 100%;
  animation: logo-shimmer 1.5s ease-in-out infinite;
  border-radius: 26px;
  /* overflow: hidden; */
}

.logo-skeleton-wrapper img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.screenshot-skeleton-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.logo-skeleton-wrapper.loaded,
.screenshot-skeleton-wrapper.loaded {
  animation: none;
  background: transparent;
}

.logo-skeleton-wrapper.loaded img,
.screenshot-skeleton-wrapper.loaded img {
  opacity: 1 !important;
}

.logo-sitepic-wrapper {
  width: 350px;
  max-width: 100%;
  margin: 0 auto;
}

.logo-promocode-wrapper {
  width: 300px;
  max-width: 100%;
  margin: 30px auto;
}

.logo-promo-wrapper {
  width: 160px;
  max-width: 100%;
  margin: auto;
}

.logo-lastsites-wrapper {
  width: 140px;
  max-width: 100%;
}

.screenshot-skeleton-wrapper {
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 800px) {
  .logo-sitepic-wrapper {
    width: 280px;
  }

  .logo-promocode-wrapper {
    /* width: 240px; */
  }

  .logo-promo-wrapper {
    /* width: 120px; */
  }

  .screenshot-skeleton-wrapper {
    min-height: 80px;
  }
}

@media screen and (max-width: 520px) {
  .logo-sitepic-wrapper {
    /* width: 200px; */
  }

  .logo-promocode-wrapper {
    /* width: 180px; */
  }

  .logo-promo-wrapper {
    /* width: 100px; */
  }

  .logo-lastsites-wrapper {
    width: 75px;
  }

  .screenshot-skeleton-wrapper {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-skeleton-wrapper,
  .screenshot-skeleton-wrapper {
    animation: logo-pulse 2s ease-in-out infinite;
  }

  @keyframes logo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
}
