/* ==========================================================================
   Joykali Royal Skeleton Loading System
   Matches authentic vintage parchment, ivory cream, and warm golden tones
   ========================================================================== */

@keyframes joykali-skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(235, 214, 188, 0.65) 0%,
    rgba(253, 246, 235, 0.95) 50%,
    rgba(235, 214, 188, 0.65) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: joykali-skeleton-shimmer 1.6s ease-in-out infinite !important;
}

.skeleton-shimmer-dark {
  background: linear-gradient(
    90deg,
    rgba(46, 22, 11, 0.65) 0%,
    rgba(77, 36, 17, 0.9) 50%,
    rgba(46, 22, 11, 0.65) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: joykali-skeleton-shimmer 1.6s ease-in-out infinite !important;
}

/* Page Skeleton Fullscreen Screen Layer */
#joykali-page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #f8ebda;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

#joykali-page-skeleton.skeleton-loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mughal Arch Sweet Card Skeleton */
.skeleton-sweet-card {
  position: relative;
  width: 100%;
  aspect-ratio: 682 / 1024;
  border-radius: 20px;
  background: #fbf2e3;
  border: 2px solid #dec39d;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(69, 26, 3, 0.08);
}

.skeleton-sweet-card .skeleton-arch-photo {
  position: absolute;
  top: 3.5%;
  left: 5%;
  right: 5%;
  height: 48%;
  border-radius: 999px 999px 12px 12px;
}

.skeleton-sweet-card .skeleton-plaque-1 {
  position: absolute;
  top: 56%;
  left: 10%;
  right: 10%;
  height: 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skeleton-sweet-card .skeleton-plaque-2 {
  position: absolute;
  top: 66%;
  left: 12%;
  right: 12%;
  height: 12%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.skeleton-sweet-card .skeleton-plaque-3 {
  position: absolute;
  top: 83%;
  left: 24%;
  right: 24%;
  height: 7%;
  border-radius: 999px;
}
