/* ==========================================================================
   CUTE JUMPING PANDA DELIGHT WIDGET (OBSIDIAN LUXURY EDITION)
   Interactive mascot for Kishan Kumar Sharma (Dada)
   With blinking baby eyes, waving paw, happy/sad states, cute pop sound,
   and rotating Hindi thought cloud dialogue.
   ========================================================================== */

.panda-delight-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.panda-delight-container.active {
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   1. Fluffy Frosted Glass Cloud Bubble (Obsidian Luxury Edition)
   -------------------------------------------------------------------------- */
.panda-cloud-bubble-wrap {
  position: relative;
  margin-bottom: 12px;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.panda-cloud-bubble-wrap.show-bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.panda-cloud-bubble {
  position: relative;
  background: rgba(8, 14, 26, 0.94);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 14px 16px 12px;
  max-width: 240px;
  box-shadow: 
    0 20px 45px -8px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(37, 211, 102, 0.25),
    0 0 25px rgba(56, 189, 248, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  animation: cloudFloat 4s ease-in-out infinite alternate;
}

/* Fluffy Cloud Puff Tails */
.cloud-puff-1 {
  position: absolute;
  bottom: -8px;
  right: 36px;
  width: 14px;
  height: 14px;
  background: rgba(8, 14, 26, 0.95);
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cloud-puff-2 {
  position: absolute;
  bottom: -13px;
  right: 28px;
  width: 8px;
  height: 8px;
  background: rgba(8, 14, 26, 0.95);
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes cloudFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.panda-cloud-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panda-cloud-close:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.15);
}

.panda-cloud-subtitle {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  padding-right: 18px;
  font-family: 'Share Tech Mono', monospace;
}

.panda-cloud-punchline {
  font-size: 0.86rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.panda-mini-tags {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 9px;
  line-height: 1.2;
}

.panda-mini-tags span {
  color: #38BDF8;
  font-weight: 700;
}

.panda-cloud-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* WhatsApp Direct Button */
.panda-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
  color: #030509;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.panda-btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
}

/* --------------------------------------------------------------------------
   2. Confused Floating Question Marks
   -------------------------------------------------------------------------- */
.panda-confused-marks {
  position: absolute;
  top: -30px;
  left: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panda-confused-marks.show-confused {
  opacity: 1;
}

.qmark {
  position: absolute;
  font-weight: 900;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
  animation: qmarkFloat 2s ease-in-out infinite alternate;
}

.qmark-1 {
  font-size: 24px;
  top: -10px;
  left: -15px;
  animation-delay: 0s;
  color: #38BDF8;
}

.qmark-2 {
  font-size: 16px;
  top: -24px;
  left: 15px;
  animation-delay: 0.35s;
  color: #34D399;
}

.qmark-3 {
  font-size: 20px;
  top: -5px;
  left: 35px;
  animation-delay: 0.7s;
  color: #FB7185;
}

@keyframes qmarkFloat {
  0% { transform: translateY(0) rotate(-10deg) scale(0.9); }
  100% { transform: translateY(-12px) rotate(10deg) scale(1.15); }
}

/* --------------------------------------------------------------------------
   3. Cute Panda Character & States (HAPPY vs. SAD)
   -------------------------------------------------------------------------- */
.panda-character-stage {
  position: relative;
  width: 96px;
  height: 102px;
  cursor: pointer;
  transform: translateY(160px) scale(0.6);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.panda-character-stage.jump-in {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: pandaIdleWobble 4s ease-in-out infinite alternate 1s;
}

.panda-character-stage.celebrate {
  animation: pandaJoyJump 0.85s cubic-bezier(0.2, 0, 0.2, 1) !important;
}

@keyframes pandaIdleWobble {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-4px) rotate(-3deg); }
  70% { transform: translateY(-2px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pandaJoyJump {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(8px) scale(1.15, 0.85); }
  50% { transform: translateY(-44px) scale(0.9, 1.15) rotate(14deg); }
  75% { transform: translateY(-10px) scale(1.05, 0.95) rotate(-6deg); }
  100% { transform: translateY(0) scale(1, 1); }
}

.panda-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(56, 189, 248, 0.35));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.panda-character-stage:hover .panda-svg {
  transform: scale(1.1);
}

/* === HAPPY STATE (Cloud Open) === */
.panda-character-stage.is-happy .mouth-happy {
  display: block;
}
.panda-character-stage.is-happy .mouth-sad {
  display: none;
}
.panda-character-stage.is-happy .tear-drop {
  display: none;
}
.panda-character-stage.is-happy .panda-blush {
  opacity: 0.85;
  animation: blushPulse 2s infinite ease-in-out alternate;
}
.panda-character-stage.is-happy .panda-ear-left {
  transform: rotate(-15deg);
  transition: transform 0.4s ease;
  animation: earWiggleL 3s ease-in-out infinite alternate;
}
.panda-character-stage.is-happy .panda-ear-right {
  transform: rotate(15deg);
  transition: transform 0.4s ease;
  animation: earWiggleR 3s ease-in-out infinite alternate 0.5s;
}

/* Waving Paw Animation */
.panda-character-stage.is-happy .panda-waving-paw {
  transform-origin: 74px 66px;
  animation: pawWave 2s infinite ease-in-out;
}

@keyframes pawWave {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-25deg); }
}

@keyframes blushPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

/* === SAD STATE (Cloud Closed) === */
.panda-character-stage.is-sad .mouth-happy {
  display: none;
}
.panda-character-stage.is-sad .mouth-sad {
  display: block;
}
.panda-character-stage.is-sad .tear-drop {
  display: block;
  animation: tearDropAnim 1.6s infinite ease-in;
}
.panda-character-stage.is-sad .panda-blush {
  opacity: 0.25;
}
.panda-character-stage.is-sad .panda-ear-left {
  transform: rotate(-38deg) translateY(4px);
  transition: transform 0.4s ease;
  animation: none;
}
.panda-character-stage.is-sad .panda-ear-right {
  transform: rotate(38deg) translateY(4px);
  transition: transform 0.4s ease;
  animation: none;
}
.panda-character-stage.is-sad .panda-svg {
  transform: translateY(6px) scale(0.96);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(100, 116, 139, 0.4));
}

@keyframes tearDropAnim {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  25% { opacity: 0.9; }
  80% { transform: translateY(16px) scale(1); opacity: 0.8; }
  100% { transform: translateY(22px) scale(0.5); opacity: 0; }
}

/* Wiggling Ears */
@keyframes earWiggleL {
  0%, 80% { transform: rotate(-15deg); }
  90% { transform: rotate(-25deg); }
  100% { transform: rotate(-15deg); }
}

@keyframes earWiggleR {
  0%, 80% { transform: rotate(15deg); }
  90% { transform: rotate(25deg); }
  100% { transform: rotate(15deg); }
}

/* Cute Blinking Baby Eyes */
.panda-eye-pupil {
  transform-origin: 50% 43.5%;
  animation: eyeBlink 4.2s infinite ease-in-out;
}

@keyframes eyeBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.08); }
}

/* Hint Tooltip when Sad */
.panda-hint-bubble {
  position: absolute;
  top: -24px;
  right: 0;
  background: rgba(15, 23, 42, 0.94);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.panda-character-stage.is-sad .panda-hint-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Sparkles Burst */
.panda-sparkle-burst {
  position: absolute;
  pointer-events: none;
  font-size: 15px;
  animation: sparkleRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10001;
}

@keyframes sparkleRise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -40px)) scale(1.2); opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .panda-delight-container {
    right: 14px;
    bottom: 16px;
  }
  .panda-cloud-bubble {
    max-width: 260px;
    padding: 14px 16px 12px;
  }
  .panda-character-stage {
    width: 78px;
    height: 84px;
  }
}
