/* ===== Blog Loading Animation ===== */
.blog-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 50%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-scene {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}

/* Maid Character SVG */
.maid-character {
  width: 120px;
  height: 160px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: maidBob 1.2s ease-in-out infinite;
}

@keyframes maidBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Mop/broom sweeping motion */
.maid-arm {
  transform-origin: 60px 90px;
  animation: sweep 0.8s ease-in-out infinite alternate;
}

@keyframes sweep {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* Sparkle stars */
.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
}

.sparkle svg {
  width: 100%;
  height: 100%;
}

.sparkle:nth-child(1) {
  top: 20px; left: 30px;
  animation: sparkleAnim 1.5s ease-in-out infinite 0s;
}
.sparkle:nth-child(2) {
  top: 10px; right: 35px;
  animation: sparkleAnim 1.5s ease-in-out infinite 0.3s;
}
.sparkle:nth-child(3) {
  top: 50px; right: 20px;
  animation: sparkleAnim 1.5s ease-in-out infinite 0.6s;
}
.sparkle:nth-child(4) {
  top: 40px; left: 15px;
  animation: sparkleAnim 1.5s ease-in-out infinite 0.9s;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Floating Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(12,113,195,0.15));
  border: 1.5px solid rgba(12,113,195,0.2);
  opacity: 0;
}

.bubble:nth-child(5) {
  width: 18px; height: 18px;
  bottom: 60px; left: 20px;
  animation: bubbleFloat 2s ease-in-out infinite 0.1s;
}
.bubble:nth-child(6) {
  width: 12px; height: 12px;
  bottom: 50px; right: 25px;
  animation: bubbleFloat 2.2s ease-in-out infinite 0.4s;
}
.bubble:nth-child(7) {
  width: 22px; height: 22px;
  bottom: 70px; left: 50px;
  animation: bubbleFloat 1.8s ease-in-out infinite 0.7s;
}
.bubble:nth-child(8) {
  width: 10px; height: 10px;
  bottom: 80px; right: 40px;
  animation: bubbleFloat 2.5s ease-in-out infinite 0.2s;
}
.bubble:nth-child(9) {
  width: 16px; height: 16px;
  bottom: 40px; left: 70px;
  animation: bubbleFloat 2s ease-in-out infinite 0.5s;
}
.bubble:nth-child(10) {
  width: 14px; height: 14px;
  bottom: 55px; right: 15px;
  animation: bubbleFloat 2.3s ease-in-out infinite 0.8s;
}
.bubble:nth-child(11) {
  width: 8px; height: 8px;
  bottom: 90px; left: 40px;
  animation: bubbleFloat 1.6s ease-in-out infinite 0.3s;
}

@keyframes bubbleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-10px) scale(0.8);
  }
  60% {
    opacity: 0.6;
    transform: translateY(-50px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-90px) scale(0.6);
  }
}

/* Loading text */
.loading-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy, #1B3A5C);
  text-align: center;
  animation: textPulse 1.5s ease-in-out infinite;
}

.loading-dots {
  display: inline-block;
}

.loading-dots span {
  opacity: 0;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 60%, 100% { opacity: 0; }
  30% { opacity: 1; }
}

@keyframes textPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Floor line under maid */
.floor-line {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(12,113,195,0.2), rgba(12,113,195,0.3), rgba(12,113,195,0.2), transparent);
  border-radius: 1px;
}

/* Wet floor shine effect */
.floor-shine {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: radial-gradient(ellipse, rgba(12,113,195,0.1), transparent);
  animation: shineSlide 1.5s ease-in-out infinite;
}

@keyframes shineSlide {
  0%, 100% { transform: translateX(-50%) scaleX(0.8); opacity: 0.3; }
  50% { transform: translateX(-50%) scaleX(1.3); opacity: 0.7; }
}
