/* SCRUM-1086 — LO posts: comment + collapsed 1-comment preview */

/* Comment (plain, no bubble) */
.lo-post-comment { display: flex; gap: 16px; align-items: flex-start; }
.lo-post-comment--reply { margin-left: 50px; }

/* Smooth entrance when a comment/reply is added */
.lo-post-comment--enter { animation: lo-comment-in 0.26s ease both; }
@keyframes lo-comment-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lo-post-comment__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lo-post-comment__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lo-post-comment__name { font-size: 16px; font-weight: 700; color: #000000; }

.lo-post-comment__lo-badge {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #002bc6;
  background: #e4ecff;
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
}

.lo-post-comment__date { font-size: 14px; color: #73788c; }

.lo-post-comment__body {
  font-size: 16px;
  font-weight: 600;
  color: #393e4d;
  line-height: 1.4;
  word-break: break-word;
}

.lo-post-comment__image { margin-top: 4px; }
.lo-post-comment__image img { max-width: 220px; border-radius: 8px; display: block; }

.lo-post-comment__tools { display: flex; gap: 14px; }

.lo-post-comment__tool {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #73788c;
}

.lo-post-comment__tool:hover { color: #002bc6; }


/* ---- Collapsed 1-comment preview ---- */
.lo-post-card__preview {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #c7cbd9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lo-post-card__view-all {
  align-self: flex-start;
  margin-left: 50px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #73788c;
}

.lo-post-card__view-all:hover { color: #002bc6; }

/* ---- Own-comment edit / delete (Figma node 6752-62666) ---- */
.lo-post-comment__edited { font-style: normal; color: #9296a6; }

.lo-post-comment__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #002bc6;
  border-radius: 45px;
  color: #002bc6;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
}

.lo-post-comment__edit-btn:hover { background: #002bc6; color: #ffffff; }
.lo-post-comment__edit-btn[disabled] { opacity: 0.6; cursor: default; }

.lo-post-comment__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border: 0;
  background: none;
  color: #b3261e;
  cursor: pointer;
}

.lo-post-comment__delete-btn svg { display: block; }
.lo-post-comment__delete-btn:hover { color: #8f1d17; }

/* Inline edit form (replaces the body while editing) */
.lo-post-comment__edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lo-post-comment__edit-form .lo-post-comment-form__input { min-height: 60px; }
.lo-post-comment__edit-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Delete-comment confirm dialog (report styling + trash icon) ---- */
.lo-post-confirm__dialog {
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 380px;
}

.lo-post-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fdecea;
  color: #b3261e;
  margin-bottom: 6px;
}

.lo-post-confirm__icon svg { display: block; }

.lo-post-confirm__title {
  margin: 0;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #13151a;
}

.lo-post-confirm__text {
  margin: 0 0 8px;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #73788c;
}

.lo-post-confirm__ok { background: #b3261e; }
.lo-post-confirm__ok:hover { background: #8f1d17; }
