/* LiveJournal-style mood icons — 16x16 pixel art with per-mood animations */
.mood-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 0.4em;
}

.mood-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.post-mood-music {
  display: flex;
  gap: 1.5em;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75em;
  padding: 0.5em 0;
}

.post-mood,
.post-music {
  display: flex;
  align-items: center;
  gap: 0.25em;
}

/* Music play button */
.music-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-glass-border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  padding: 0;
  margin-right: 0.35em;
  flex-shrink: 0;
}

.music-play:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.music-play.is-playing {
  color: var(--color-gold);
  border-color: var(--color-gold);
  animation: music-pulse 1.5s ease-in-out infinite;
}

.music-title {
  color: var(--text-secondary);
}

.music-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.music-title a:hover {
  border-color: var(--text-muted);
}

/* === Mood animations === */

/* Gentle float — contemplative, geeky, grateful, hopeful */
.mood-float { animation: mood-float 2.4s ease-in-out infinite; }

/* Standard bounce — accomplished, amused */
.mood-bounce { animation: mood-bounce 1.8s ease-in-out infinite; }

/* Fast bounce — hyper, energetic */
.mood-bounce-fast { animation: mood-bounce 1.0s ease-in-out infinite; }

/* Slow drift — sleepy, exhausted, nostalgic */
.mood-drift { animation: mood-float 4s ease-in-out infinite; }

/* Subtle pulse — determined, productive, creative, working */
.mood-pulse { animation: mood-pulse 2.2s ease-in-out infinite; }

/* Wobble — curious, devious, mischievous */
.mood-wobble { animation: mood-wobble 2s ease-in-out infinite; }

/* Jitter — caffeinated, frustrated */
.mood-jitter { animation: mood-jitter 0.8s ease-in-out infinite; }

/* Quixotic dream float — slow tilt + drift */
.mood-dream { animation: mood-dream 3.6s ease-in-out infinite; }

@keyframes mood-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes mood-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-1px); }
}

@keyframes mood-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes mood-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes mood-jitter {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(0.5px, -0.5px); }
  40% { transform: translate(-0.5px, 0.5px); }
  60% { transform: translate(0.5px, 0.5px); }
  80% { transform: translate(-0.5px, -0.5px); }
}

@keyframes mood-dream {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-2px) rotate(2deg); }
  66% { transform: translateY(-1px) rotate(-1deg); }
}

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0); }
}
