
/* 🔗 Back link */
.back-link {
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  margin-top: 0;
  font-size: 0.9rem;
  color: #920000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
  margin-bottom: 15px;
}
.back-link:hover {
  color: #6b0606;
}

/* 📝 Comment Form Wrapper */
#comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

/* 👤 Name Input */
#comment-name {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #111;
  color: #eee;
  font-size: 0.75rem;
  box-sizing: border-box;
}

/* 💬 Textarea Input */
#comment-text {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #111;
  color: #eee;
  font-size: 0.75rem;
  resize: none;
  min-height: 120px;
  box-sizing: border-box;
}

/* 🛠️ Toolbar (icons and submit) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}

.toolbar .tools {
  display: flex;
  gap: 0.75rem;
  font-size: 1rem;
}

.toolbar .tools button {
  min-width: 25px;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
  font-family: inherit;
}

/* 📤 Submit Button */
#submit-comment {
  background-color: rgb(112, 20, 20); 
  transition: background-color 0.3s;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

#submit-comment:hover {
  background-color: #360000;
}
/* 💬 Comment Layout */
.comment {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.2rem;
}
.comment-meta strong {
  color: #fff;
}

.timestamp {
  color: #777;
  font-weight: normal;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.comment-text {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0.25rem 0 0.5rem;
}

.comment-actions {
  position: relative;
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: #999;
  align-items: center;
}

/* 🔁 Replies */
.replies {
  margin-left: 2rem;
  padding-left: 1.25rem;
  position: relative;
}


.reply {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  position: relative;
  padding-left: 0.5rem;
}


.reply .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.reply .comment-content {
  flex: 1;
}

.reply .comment-meta {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 0.2rem;
}

.reply .comment-text {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.3rem;
}

.reply .comment-actions {
  font-size: 0.95rem;
  color: #777;
  display: flex;
  gap: 1rem;
}

.comment-actions .reply {
  margin-top: 0rem;
  display: inline-block;
}

/* 🧱 Row helper */
.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#comments-title {
  margin-top: 30px;
  font-size: 1rem;
}




.reply-form {
  margin-top: 2rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 85%;
}

.reply-text {
  width: 100%;
  padding: 0.75rem;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  box-sizing: border-box;
}


.reply-name {
  width: 100%;
  padding: 0.75rem;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  box-sizing: border-box;
}

.reply-buttons {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 10px;
}

.reply-buttons button {
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
}

.cancel-reply {
  background: transparent;
  color: #aaa;
  transition: color 0.3s ease;
}

.cancel-reply:hover {
  color: #525252; 
}

.submit-reply {
  background-color: rgb(112, 20, 20); 
  color: #fff;
}

.submit-reply:hover {
  transition: background-color 0.3s;
  background-color: #360000;
}


.comment-actions .reply {
  cursor: pointer; 
  font-size: 0.85rem;
  transition: color 0.3s ease;

}

.comment-actions .reply:hover {
  color: #525252;
}

.comment-editor {
  border: 1px solid #ccc;
  padding: 10px;
  min-height: 120px;
  font-family: inherit;
  margin-top: 10px;
  white-space: pre-wrap;
}


.comment-editor:empty::before {
  content: attr(placeholder);
  color: #aaa;
  pointer-events: none;
}





.menu-wrapper {
  position: relative; /* Anchors the popup */
  display: inline-block;
}

.menu {
  transition: color 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
}

.menu:hover {
  color: #525252; 
}

.menu-popup-comment {
  position: absolute;
  top: -40%; /* right under the dots */
  right: -120px;
  background: #1c1c1c;
  border: 1px solid #333;
  color: #f0f6fc;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
  white-space: nowrap;
  min-width: 50px;
}

.menu-popup-reply {
  position: absolute;
  top: -30%; /* right under the dots */
  right: -120px;
  background: #1c1c1c;
  border: 1px solid #333;
  color: #f0f6fc;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
  white-space: nowrap;
  min-width: 50px;
}



.menu-popup-comment button,
.menu-popup-reply button {
  font-family: 'Poppins', sans-serif;
  background: none;
  border: none;
  color: #f0f6fc;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s ease;
}


.menu-popup-comment button:hover,
.menu-popup-reply button:hover {
  color: #920000;
}


/* Selected state: subtle circular outline */
.tools button.selected {
  border: 1px solid #999;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

#blog-comments {
  margin-bottom: 50px;
}


.comment-icon {
  margin-right: 3px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.comment-main-icon {
  cursor: pointer;
}

.comment-icon:hover {
  color: #525252; /* or any highlight color you want */
}


.comment-like-icon {
  cursor: pointer;
  margin-right: 2px;
  color: #333333;
  transition: color 0.2s ease, transform 0.2s ease;
}

.comment-like-icon:hover {
  color: #e63946; /* or any highlight color you want */
  transform: scale(1.1);
}

.comment-like-icon.liked {
  color: #e63946;
}

.noselect {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE10+ */
}