/* comments.css — コメントランキングページ専用スタイル */

.logo-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}

.comments-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ===== NOTICE ===== */
.comments-notice {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 1.5rem;
}

/* ===== GRID ===== */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* ===== COMMENT CARD ===== */
.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeUp 0.3s ease both;
  position: relative;
  overflow: hidden;
}

.comment-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-med);
  transform: translateY(-2px);
}

/* コメント数に応じてボーダーを強調 */
.comment-card.heat-high  { border-left: 4px solid var(--accent); }
.comment-card.heat-mid   { border-left: 4px solid #f0a030; }
.comment-card.heat-low   { border-left: 4px solid #70b0d0; }

.card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}

.rank-badge { /* style.css から継承 */ }

/* コメントバッジ */
.comment-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  flex-shrink: 0;
}

.comment-badge-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  color: var(--accent); line-height: 1;
}

.comment-badge-label {
  font-size: 10px; color: var(--accent); opacity: 0.8;
}

.card-title {
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  text-decoration: none;
}

.author-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-muted); object-fit: cover;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card-footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted);
}

.likes-count { color: var(--accent); font-weight: 500; }
.card-date { margin-left: auto; font-size: 11px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-mark {
  width: 40px; height: 40px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.footer-logo-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-primary); }
.footer-logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.footer-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.footer-link:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2rem; text-align: center; font-size: 11px; color: var(--text-muted); }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .comments-main { padding: 0 1rem; }
  .comments-grid { grid-template-columns: 1fr; }
}
