/* ═══════════════════════════════════════════════════════════
   KnowYourGujarat — SKELETON LOADING & BLUR-UP SYSTEM
   Bespoke Translucent Shimmer Waves & Progressive Image Loading
   ═══════════════════════════════════════════════════════════ */

/* ── Base Shimmer Animation ── */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: skeletonShimmer 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* ── Skeleton Project Card ── */
.skeleton-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  overflow: hidden;
}

.skeleton-thumb {
  width: 100%;
  height: 125px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-line.short {
  width: 40%;
  height: 10px;
}

.skeleton-line.medium {
  width: 75%;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.skeleton-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Skeleton Map Overlay ── */
.skeleton-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(9, 14, 26, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 14px;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.skeleton-map-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-radar-pulse {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 122, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-radar-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 0, 0.3);
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-radar-text {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Progressive Image Blur-Up Loading ── */
.img-blur-up {
  opacity: 0;
  filter: blur(12px) scale(0.98);
  transition:
    opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 450ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.img-blur-up.loaded {
  opacity: 1;
  filter: blur(0px) scale(1);
}

/* ── Staggered Entrance Animation ── */
@keyframes cardStaggerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contrib-card.stagger-in {
  animation: cardStaggerIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contrib-card.stagger-in:nth-child(1) { animation-delay: 60ms; }
.contrib-card.stagger-in:nth-child(2) { animation-delay: 120ms; }
.contrib-card.stagger-in:nth-child(3) { animation-delay: 180ms; }
.contrib-card.stagger-in:nth-child(4) { animation-delay: 240ms; }
