/* Trending AJAX Loading Styles */
.trending-loading {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #333;
}

.trending-loading i {
  margin-right: 8px;
  color: #007cba;
}

.trending-no-more {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #666;
}

.trending-error {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #d63384;
}

/* Disable navigation buttons when loading */
.td-trending-now-wrapper.loading .td_ajax-prev-pagex,
.td-trending-now-wrapper.loading .td_ajax-next-pagex {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Smooth transition for trending posts */
.td_module_trending_now {
  transition: opacity 0.3s ease-in-out;
}

/* Animation classes */
.td_animated_xlong {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.td_fadeInRight {
  animation-name: fadeInRight;
}

.td_fadeInLeft {
  animation-name: fadeInLeft;
}

.td_fadeOutLeft {
  animation-name: fadeOutLeft;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
}
