/**
 * voice-section.css
 * 配置: /assets/css/voice-section.css
 */

/* =============================================
   Sort Controls
   ============================================= */
.sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.sort-btn {
  padding: 8px 20px;
  border: 2px solid #ccc;
  border-radius: 9999px;
  background: #fff;
  color: #555;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.sort-btn:hover {
  border-color: #888;
  color: #222;
}

.sort-btn.active {
  border-color: #222;
  background: #222;
  color: #fff;
}

/* =============================================
   Voice List（グリッドレイアウト）
   ============================================= */
.voice-list {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
  gap: 24px;
  margin-bottom: 40px;
}

/* =============================================
   Voice Item
   ============================================= */
.voice-item {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.voice-item:hover {
  box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
  transform: translateY( -2px );
}

.voice-item__inner {
  padding: 20px;
}

.voice-item__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 12px;
}

.voice-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.5;
}

.voice-item__title a {
  color: inherit;
  text-decoration: none;
}

.voice-item__title a:hover {
  text-decoration: underline;
}

.voice-item__excerpt {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

.voice-item__evaluation {
  font-size: 0.8125rem;
  color: #444;
  margin-bottom: 8px;
}

.evaluation-value {
  font-weight: 700;
  color: #e67e22;
}

.voice-item__meta {
  font-size: 0.75rem;
  color: #999;
}

/* =============================================
   Load More
   ============================================= */
.load-more-wrap {
  text-align: center;
  margin-top: 8px;
}

.load-more-btn {
  display: inline-block;
  padding: 12px 48px;
  border: 2px solid #222;
  border-radius: 9999px;
  background: #fff;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.load-more-btn:hover {
  background: #222;
  color: #fff;
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   Loading Indicator
   ============================================= */
.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #888;
}

.loading-indicator.is-active {
  display: flex;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: #555;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* =============================================
   No Posts
   ============================================= */
.no-posts {
  color: #888;
  font-size: 0.9375rem;
  padding: 40px 0;
}
