/* ===== 댓글 리스트 ===== */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* ===== 댓글 카드 ===== */
.comment-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  /* background: #fff; */
  padding: 14px 16px;
  transition: box-shadow 0.2s ease;
}

.comment-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comment-item__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== 헤더 ===== */
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 작성자 영역 */
.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== 🔥 핵심: 프로필 이미지 ===== */
.comment-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 이미지 */
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 비율 유지하면서 꽉 채움 */
  display: block;
}

/* 기본 아이콘 */
.comment-avatar .material-icons {
  font-size: 22px;
  color: #9ca3af;
}

/* ===== 작성자 정보 ===== */
.comment-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comment-author-name {
  font-weight: 600;
  font-size: 14px;
}

.comment-author-date {
  font-size: 12px;
  color: #9ca3af;
}

/* ===== 더보기 버튼 ===== */
.comment-more-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.comment-more-menu {
  position: absolute;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  z-index: 10;
}

.comment-more-menu button {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: #fff;
  border: none;
  cursor: pointer;
}

.comment-more-menu button:hover {
  background: #f9fafb;
}

/* ===== 본문 ===== */
.comment-body {
  font-size: 14px;
  line-height: 1.5;
  /* color: #374151; */
  color: white;
}

/* ===== 액션 ===== */
.comment-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin: 10px;
}

/* 버튼 */
.comment-reaction-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.comment-reaction-btn * {
  color: black;
}


.comment-reaction-btn:hover {
  background: #f3f4f6;
}

/* 활성 상태 */
.active-like {
  background: #ff7979;
  color: #dc2626;
}

.active-empathy {
  background: #4294ff;
  color: #2563eb;
}

/* ===== 수정 textarea ===== */
.comment-edit-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px;
  resize: vertical;
}

/* 수정 버튼 */
.comment-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.comment-edit-actions button {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.comment-edit-save-btn {
  background: #2563eb;
  color: white;
}

.comment-edit-cancel-btn {
  background: #e5e7eb;
}

/* ===== 빈 상태 ===== */
.comment-empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
}

.comment-empty__icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.comment-empty__title {
  font-weight: 600;
}

.comment-empty__desc {
  font-size: 13px;
}

/* ===== 페이징 ===== */
.comments-pagination {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.comments-page-btn {
  border: 1px solid rgba(255,255,255,0.08);
  /* background: #fff; */
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.comments-page-btn.is-active {
  background: #d5ff5f;
  color: black;
}

.comments-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.rd-comment-submit {
  width: 100%; height:44px; padding:0 18px; border:none; border-radius:999px; background:#d5ff5f; color:#243006; font-weight:800; cursor:pointer;
}