/* Sake Blog Features CSS */

.sake-blog-like-section {
  margin: 2rem 0;
  padding: 2rem;
  background-color: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.sake-blog-like-section:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sake-blog-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 2px solid #374151;
  color: #d1d5db;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: inherit;
}

.sake-blog-like-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.sake-blog-like-btn.liked {
  border-color: #ef4444;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.sake-blog-like-btn.liked .heart-icon {
  fill: #ef4444;
  animation: heartBeat 0.6s ease-in-out;
}

.sake-blog-like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.heart-icon {
  fill: currentColor;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.like-count {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.like-text {
  display: block;
  font-size: 0.9rem;
  color: #d1d5db;
  font-style: italic;
  opacity: 0.8;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.sake-blog-like-btn.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ショートコード用スタイル */
.popular-posts-shortcode {
  margin: 1rem 0;
}

.popular-posts-shortcode.list .popular-post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #374151;
}

.popular-posts-shortcode.list .popular-post-item:last-child {
  border-bottom: none;
}

.popular-posts-shortcode .rank {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.popular-posts-shortcode .post-info {
  flex: 1;
}

.popular-posts-shortcode .post-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.popular-posts-shortcode .post-info h4 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.popular-posts-shortcode .post-info h4 a:hover {
  color: #f59e0b;
}

.popular-posts-shortcode .views {
  font-size: 0.8rem;
  color: #d1d5db;
  opacity: 0.8;
}

/* カテゴリー記事ショートコード */
.category-posts-shortcode.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.category-posts-shortcode .shortcode-post {
  background-color: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.category-posts-shortcode .shortcode-post:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.category-posts-shortcode .post-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-posts-shortcode .post-content {
  padding: 1rem;
}

.category-posts-shortcode .post-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.category-posts-shortcode .post-content h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-posts-shortcode .post-content h3 a:hover {
  color: #f59e0b;
}

.category-posts-shortcode .post-content p {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.category-posts-shortcode .post-date {
  font-size: 0.8rem;
  color: #d1d5db;
  opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sake-blog-like-section {
    margin: 1rem -1rem;
    border-radius: 0;
    padding: 1.5rem 1rem;
  }

  .sake-blog-like-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .category-posts-shortcode.grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .popular-posts-shortcode .rank {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}

/* ダークテーマ対応 */
@media (prefers-color-scheme: light) {
  .sake-blog-like-section {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #1f2937;
  }

  .sake-blog-like-btn {
    border-color: #e5e7eb;
    color: #1f2937;
  }

  .like-text {
    color: #6b7280;
  }

  .category-posts-shortcode .shortcode-post {
    background-color: #ffffff;
    border-color: #e5e7eb;
  }

  .category-posts-shortcode .post-content h3 a,
  .popular-posts-shortcode .post-info h4 a {
    color: #1f2937;
  }

  .category-posts-shortcode .post-content p,
  .popular-posts-shortcode .views {
    color: #6b7280;
  }
}

/* 印刷用スタイル */
@media print {
  .sake-blog-like-section {
    display: none;
  }
}
