/* Likes/Dislikes functionality styles */
.liking-block__button {
  position: relative;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.liking-block__button:hover {
  transform: scale(1.1);
}

.liking-block__button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.liking-block__button.voted {
  transform: scale(1.2);
}

.liking-block__button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.liking-block__button.voted-animation {
  animation: voteSuccess 0.6s ease-in-out;
}

.vote-count {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.vote-count-appear {
  animation: voteCountAppear 0.6s ease-in-out;
}

.liking-block__button--like.voted .vote-count {
  color: #4caf50;
}

.liking-block__button--dislike.voted .vote-count {
  color: #f44336;
}

.vote-message {
  text-align: center;
  color: #4caf50;
  font-style: italic;
  transition: all 0.5s ease;
}

.vote-message.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  max-height: 0;
  margin: 0;
  padding: 0;
}

.vote-message.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease-in-out;
}

@keyframes voteCountAppear {
  0% {
    opacity: 0;
    transform: scale(0) translateY(10px);
  }
  50% {
    transform: scale(1.2) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes voteSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
