/* ========================================================
   ANIME SOCIAL HUB - Mascot Assistant "Kira-chan"
   Theme: Anime Chibi + Comic Speech Bubbles + Soft Neon Glow
   ======================================================== */

.mascot-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mascot-speech-bubble {
  background: var(--white);
  border: 2px solid var(--purple-primary);
  border-radius: 20px 20px 4px 20px;
  padding: 12px 18px;
  box-shadow: 0 8px 25px rgba(124, 92, 252, 0.25);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  max-width: 250px;
  margin-bottom: 12px;
  pointer-events: auto;
  position: relative;
  animation: floatBubble 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 32px;
  border-width: 10px 10px 0 0;
  border-style: solid;
  border-color: var(--purple-primary) transparent;
  display: block;
  width: 0;
}

.mascot-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 34px;
  border-width: 8px 8px 0 0;
  border-style: solid;
  border-color: var(--white) transparent;
  display: block;
  width: 0;
  z-index: 1;
}

.mascot-avatar-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF0F5 0%, #F0EDFF 100%);
  border: 3px solid var(--purple-primary);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.3), 0 0 15px rgba(253, 121, 168, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: gentleBounce 4s ease-in-out infinite;
}

.mascot-avatar-wrapper:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.45), 0 0 25px rgba(253, 203, 110, 0.5);
}

.mascot-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.mascot-sparkle-dot {
  position: absolute;
  top: -4px;
  right: 0px;
  background: var(--gold-accent);
  color: #5d4037;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  animation: spinSparkle 4s linear infinite;
}

.btn-mascot-dismiss {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #ff7675;
  color: var(--white);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  cursor: pointer;
  display: none;
}

.mascot-speech-bubble:hover .btn-mascot-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

@keyframes spinSparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Confetti celebration effect on publish */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
