/* tribu-newsroom/assets/css/newsroom.css */

.tribu-newsroom-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.news-card {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  background: #fff;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.news-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.news-name {
  font-weight: bold;
  font-size: 18px;
  color: #223053;
}

.news-date {
  margin-left: auto;
  font-size: 13px;
  color: #999;
}

.news-title {
  font-weight: bold;
  font-size: 20px;
  color: #223053;
  margin: 10px 0;
}

.news-content {
  font-size: 16px;
  color: #223053;
  white-space: pre-line;
  margin-bottom: 15px;
}

.news-image {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 12px;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.reaction-btns {
  display: flex;
  gap: 10px;
  font-size: 20px;
  cursor: pointer;
}

.reaction-btns span {
  transition: transform 0.2s ease;
}

.reaction-btns span:hover {
  transform: scale(1.2);
}

.toggle-comments-btn {
  font-size: 14px;
  background: none;
  color: #223053;
  cursor: pointer;
  border: none;
}

.comments-section {
  margin-top: 10px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.comments-list {
  margin-bottom: 10px;
}

.comment-item {
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid #223053;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment-form textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}
.add-news-btn {
    display: inline-block;
    padding: 0;
    margin-left: auto;
    border: none;
    background: none;
    cursor: pointer;
}

.add-news-icon {
    width: 38px;
    height: 38px;
}


.comment-form button {
  padding: 6px 12px;
  background: #223053;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-ajouter-news {
  display: inline-block;
  padding: 10px 16px;
  background-color: #223053;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.2s;
}

.btn-ajouter-news:hover {
  background-color: #1a253c;
}

.no-news-message {
  text-align: center;
  font-size: 18px;
  color: #777;
  margin-top: 40px;
}
