/* Like Button Styles */

.post-like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-like-button:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.post-like-button:active {
  transform: scale(0.95);
}

/* Like Icon */
.like-icon {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.like-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.like-icon-outline {
  opacity: 1;
  transform: scale(1);
}

.like-icon-filled {
  opacity: 0;
  transform: scale(0);
}

/* Liked State */
.post-like-button.liked {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.post-like-button.liked .like-icon-outline {
  opacity: 0;
  transform: scale(0);
}

.post-like-button.liked .like-icon-filled {
  opacity: 1;
  transform: scale(1);
}

/* Animation when clicking */
.post-like-button.animating .like-icon {
  animation: likeHeartBeat 0.6s ease;
}

@keyframes likeHeartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Like Count */
.like-count {
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  text-align: center;
}

/* Loading State */
.post-like-button.loading {
  pointer-events: none;
  opacity: 0.6;
}

.post-like-button.loading .like-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Success Animation */
.post-like-button.success {
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Different sizes */
.post-like-button.size-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.post-like-button.size-small .like-icon {
  width: 16px;
  height: 16px;
}

.post-like-button.size-large {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
}

.post-like-button.size-large .like-icon {
  width: 24px;
  height: 24px;
}

/* Inline variant (no border, just icon and count) */
.post-like-button.variant-inline {
  border: none;
  padding: 0.25rem 0.5rem;
  background: transparent;
}

.post-like-button.variant-inline:hover {
  background: #fef2f2;
}

/* Meta section integration */
.post-meta .post-like-button {
  margin-left: 0.5rem;
}

/* Article footer integration */
.article-footer .post-like-button {
  margin-right: 1rem;
}

/* Post Actions Layout */
.post-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-actions .post-like-button {
  padding: 0.625rem 1.25rem;
}

/* Share Buttons Integration */
.post-actions .share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-actions .share-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
  .post-like-button {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
}
