/* BYLBY V3 — espace de discussion des créations */

.creation-comments {
  width: min(100%, 820px);
  margin: 90px auto 40px;
  padding: 0 20px 60px;
  color: var(--by-text, #111);
}

.creation-comments-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--by-border, #e5e5e8);
}

.creation-comments-eyebrow {
  margin: 0 0 8px;
  color: var(--by-muted, #777782);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .18em;
}

.creation-comments-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.creation-comments-count {
  color: var(--by-muted, #777782);
  font-size: 13px;
}

.creation-comments-list {
  padding: 30px 0 12px;
  min-height: 90px;
}

.creation-comment {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--by-border, #e5e5e8);
}

.creation-comment.is-reply {
  margin-left: 35px;
  padding-left: 20px;
  border-left: 2px solid var(--by-border, #e5e5e8);
}

.creation-comment-author {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--by-text, #111);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.creation-comment-author:hover,
.creation-comment-author:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.creation-comment-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.creation-comment-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  color: var(--by-muted, #777782);
  font-size: 12px;
}

.creation-comment-reply {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.creation-comment-reply:hover {
  color: var(--by-text, #111);
}

.creation-comments-form {
  margin-top: 28px;
}

.creation-comments-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 750;
}

.creation-comments-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  padding: 18px;
  resize: vertical;
  border: 1px solid var(--by-border, #e5e5e8);
  border-radius: 16px;
  background: var(--by-card, #fff);
  color: var(--by-text, #111);
  font: 14px/1.6 Inter, Arial, sans-serif;
  outline: none;
}

.creation-comments-form textarea:focus {
  border-color: #B5FF4D;
  box-shadow: 0 0 0 2px rgba(181,255,77,.15);
}

.creation-comments-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}

.creation-comments-form-bottom p {
  margin: 0;
  color: var(--by-muted, #777782);
  font-size: 12px;
}

.creation-comments-form button[type="submit"] {
  padding: 12px 25px;
  border: 0;
  border-radius: 999px;
  background: #B5FF4D;
  color: #111;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.creation-comments-form button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .creation-comments {
    margin-top: 55px;
    padding: 0 18px 110px;
  }

  .creation-comment.is-reply {
    margin-left: 14px;
    padding-left: 12px;
  }
}
