/**
 * =============================================================================
 * ADORABLE KAWAII CAT SCROLL COMPANION STYLES
 * =============================================================================
 */

.bottom-scroll-track-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(43, 41, 39, 0.15);
  backdrop-filter: blur(4px);
  z-index: 90;
  pointer-events: none;
}

.bottom-track-rail {
  width: 100%;
  height: 100%;
  position: relative;
}

.bottom-track-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4A359, #FF6B81, #FF3B30);
  border-radius: 3px;
  transition: width 0.1s ease-out;
}

/* Cat Floating Wrapper along Bottom */
.cute-cat-companion-wrapper {
  position: fixed;
  bottom: 6px;
  left: 2%;
  z-index: 100;
  cursor: pointer;
  user-select: none;
  transform-origin: 50% 100%;
  transition: transform 0.2s ease-out;
}

.cute-cat-companion-wrapper:hover {
  transform: scale(1.1);
}

.cute-cat-companion-wrapper:active {
  transform: scale(0.95);
}

/* Speech Dialogue Bubble */
.cute-cat-speech-bubble {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #FFFFFF;
  border: 1.5px solid #FFB2BA;
  color: #C85A6A;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 107, 129, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-cat-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #FFB2BA;
}

.cute-cat-speech-bubble.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Floating Love Hearts Emitter */
.cute-cat-hearts-emitter {
  position: absolute;
  top: -15px;
  left: 50%;
  pointer-events: none;
}

.cute-floating-heart {
  position: absolute;
  font-size: 14px;
  color: #FF4D6D;
  animation: floatHeartUp 1.4s ease-out forwards;
}

@keyframes floatHeartUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translateY(-10px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(0.8);
  }
}

/* Gentle Idle Breathing & Tail Swish */
.cute-cat-companion-wrapper.is-idle .cat-belly-breathe {
  animation: cuteBellyBreathe 2.4s ease-in-out infinite;
  transform-origin: 50px 56px;
}

@keyframes cuteBellyBreathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.03, 1.05); }
}

.cute-cat-companion-wrapper.is-idle .cat-fluffy-tail {
  animation: cuteTailWag 2.2s ease-in-out infinite alternate;
  transform-origin: 28px 60px;
}

@keyframes cuteTailWag {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(12deg); }
}

.cute-cat-companion-wrapper.is-idle .cat-head-tilt {
  animation: cuteHeadTilt 3.6s ease-in-out infinite alternate;
  transform-origin: 62px 46px;
}

@keyframes cuteHeadTilt {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-3deg); }
  100% { transform: rotate(2deg); }
}

/* Bouncy Joyful Walking Animation */
.cute-cat-companion-wrapper.is-walking {
  animation: cuteCatTrot 0.28s infinite alternate ease-in-out;
}

@keyframes cuteCatTrot {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-3px) rotate(2deg); }
}

.cute-cat-companion-wrapper.is-walking .cat-fluffy-tail {
  animation: cuteTailWalk 0.28s infinite alternate ease-in-out;
  transform-origin: 28px 60px;
}

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