.card--comments {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Comments Section - BEM */
.comments {
  /* Main comments wrapper inside card */
}

.comments__header {
  margin-bottom: 2rem;
}

.comments__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 0.5rem 0;
  position: relative;
  padding: 0 2rem;
}

.comments__title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
  z-index: 1;
}

.comments__title::after {
  content: 'Conversation';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg);
  padding: 0 1.5rem;
  z-index: 2;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
}

.comments__count {
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* Comment Card - BEM */
.card--comment {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 1.25rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
}

.card--comment:last-child {
  margin-bottom: 0;
}

.comment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.comment__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(226, 226, 226);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text);
  overflow: hidden;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment__author-info {
  display: flex;
  flex-direction: column;
}

.comment__author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

.comment__timestamp {
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.6;
  margin: 0;
}

.comment__actions {
  display: flex;
  gap: 0.5rem;
}

.comment__action {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment__action:hover {
  opacity: 1;
  background: var(--color-selected);
}

.comment__content {
  line-height: 1.6;
  color: var(--color-text);
  font-size: 1.25rem;
  margin: 0;
  word-wrap: break-word;
}

.comment__content .mention {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
  line-height: 1.2;
  transform: translateY(-0.03em);
}

.comments__list--public-share .comment__content .mention .avatar,
.comment__content .mention .avatar {
  display: inline-block;
  vertical-align: middle;
}

.comment__delete {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.comment__delete-btn {
  padding: 0.5rem;
  min-width: auto;
  width: auto;
  height: auto;
  border-radius: 50%;
  color: var(--color-text);
  opacity: 0.6;
}

.comment__delete-btn svg {
  fill: var(--color-text);
  transition: all 0.2s ease;
}

.comment__delete-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  opacity: 1;
}

.comment__delete-btn:hover svg {
  fill: #ef4444 !important;
}

/* Comment Form Card - BEM */
.card--comment-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.card--comment-form:hover {
}

/* Comment Form - BEM */
.comment-form {
  background: transparent;
  border: none;
  border-radius: 2rem;
  padding: 1.5rem;
}

.comment-form__textarea {
  width: 100%;
  min-height: 4rem;
  padding: 1.5rem;
  border: none;
  outline: none;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.5;
  resize: none;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.2s ease;
}

.comment-form__textarea:focus {
  outline: none;
  /* background: var(--color-selected); */
}

.comment-form__textarea::placeholder {
  color: var(--color-text);
  opacity: 0.5;
}

.comment-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.comment-form__button {
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.comment-form__button--primary {
  background: var(--color-link);
  color: white;
  border: none;
}

.comment-form__button--primary:hover {
  /* transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); */
}

.comment-form__button--secondary {
  /* background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border); */
}

.comment-form__button--secondary:hover {
  /* background: var(--color-selected); */
}

/* Empty State */
.comments__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text);
  opacity: 0.6;
}

.comments__empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.comments__empty-text {
  font-size: 1rem;
  margin: 0;
}
