/* WP ULikeのデフォルトボタンを非表示 */
.wpulike,
.wpulike-wrapper,
#wpulike-button,
.wp_ulike_general_class,
.wp_ulike_btn {
  display: none !important;
}

/* アーカイブページのいいね数表示 */
.archive-like-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  color: #9ca3af;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-left: auto;
  transition: all 0.3s ease;
}

.archive-like-count.has-likes {
  color: #ec4899;
}

.news-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-like-count:hover {
  background-color: #f9fafb;
}

.archive-heart-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.archive-heart-icon path {
  fill: #9ca3af;
  stroke: #9ca3af;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archive-like-count.has-likes .archive-heart-icon path {
  fill: #ec4899;
  stroke: #ec4899;
}

.archive-like-count:hover .archive-heart-icon {
  transform: scale(1.1);
}

.archive-like-count > span {
  line-height: 1;
}

/* いいねセクションのベーススタイル */
.like-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
  margin-bottom: 0;
  padding-bottom: 0;
}

.like-section-description {
  color: #9ca3af;
  font-size: 0.75rem;
  margin: 0;
}

/* ボタンコンテナ */
.like-button-container {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.like-button-container:hover {
  transform: scale(1.05);
}

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

/* いいねボタン */
.custom-like-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.3s ease;
  border-radius: 9999px;
  user-select: none;
  cursor: pointer;
  font-weight: 500;
  border: 1px solid;
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #9ca3af;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.custom-like-button:hover {
  border-color: #f9a8d4;
  color: #f472b6;
}

.custom-like-button .heart-icon {
  stroke: #9ca3af;
}

/* いいね済みの状態（いいね数が1以上） */
.custom-like-button.liked {
  background-color: #fdf2f8;
  border-color: #f472b6;
  color: #ec4899;
}

.custom-like-button.liked:hover {
  border-color: #ec4899;
  color: #db2777;
}

/* ハートアイコン */
.heart-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.custom-like-button.liked .heart-icon {
  fill: #ec4899;
  stroke: #ec4899;
}

.custom-like-button:active .heart-icon {
  transform: scale(1.2);
}

/* いいね数とテキストのスタイル */
.like-count {
  font-weight: 500;
}

.like-text {
  font-weight: 400;
}

/* ローディング状態 */
.custom-like-button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* アニメーション */
@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
}

.heart-icon.animate {
  animation: heartBeat 0.6s ease;
}

/* エラーメッセージ */
.like-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.like-error.show {
  display: block;
}

/* ナビゲーション */
.nav-previous, .nav-next {
  text-align: center;
  padding: 1.5rem;
  padding-top: 3rem;
}
