/* Ajustes finais da área de comentários. */

/* Usuário deslogado: mantém o botão no lado esquerdo, como antes. */
.comment-login-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 18px 0 30px;
  text-align: left;
}

.comment-login-box p {
  display: none !important;
}

.comment-login-box .btn {
  width: auto !important;
  margin: 0 !important;
  align-self: flex-start;
}

/* Mantém as ações e o contador de curtidas sempre na mesma linha. */
.comment-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px !important;
}

.comment-actions .comment-like-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap;
}

.comment-actions .comment-like-btn span {
  display: inline !important;
  width: auto !important;
  margin: 0 !important;
  line-height: inherit !important;
  color: inherit !important;
}

.comment-actions button span {
  position: static !important;
  float: none !important;
  vertical-align: baseline !important;
}

/* Formulário de resposta com a mesma identidade visual do comentário principal. */
.reply-form {
  width: min(100%, 560px);
  margin: 16px 0 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.reply-form textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  outline: none;
  background: rgba(8, 8, 11, .72);
  color: #fff;
  font: inherit;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reply-form textarea::placeholder {
  color: rgba(255, 255, 255, .42);
}

.reply-form textarea:focus {
  border-color: rgba(255, 45, 141, .82);
  background: rgba(12, 9, 14, .9);
  box-shadow: 0 0 0 3px rgba(255, 45, 141, .12);
}

.reply-form .btn {
  width: auto !important;
  min-height: 42px;
  margin-top: 12px !important;
  padding: 0 18px;
  justify-content: center;
}

@media (max-width: 640px) {
  .comment-login-box {
    margin: 16px 0 24px;
  }

  .reply-form {
    width: 100%;
    padding: 14px;
  }

  .reply-form .btn {
    width: 100% !important;
  }
}
