/* --- Стили для статьи --- */
.discussion-post-article h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}
.discussion-post-article ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 1.2em;
}
.discussion-post-article li {
    margin-bottom: 0.5em;
}
.discussion-post-article p {
    line-height: 1.7;
    margin-bottom: 1.2em;
}

/* --- Стили для блока комментариев --- */
.discussion-comments-container {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9fa;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.discussion-comments-container .comments-title {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
    font-size: 1.6em;
    color: #2c3e50;
}

/* --- Стили для одного комментария (Flexbox верстка) --- */
.discussion-comment {
    display: flex;
    gap: 15px;
}

/* Разделитель между комментариями */
.discussion-comment + .discussion-comment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e9;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    border-radius: 50%;
    display: block;
}

.comment-content {
    flex-grow: 1;
}

.discussion-comment-main .comment-avatar img {
    width: 45px;
    height: 45px;
}

/* Комментарий-ответ (вложенный) */
.discussion-comment-reply {
    margin-left: 60px;
}

.discussion-comment + .discussion-comment-reply {
    border-top: none;
    margin-top: 15px;
    padding-top: 0;
}

.discussion-comment-reply .comment-avatar img {
    width: 35px;
    height: 35px;
}

/* --- Мета-данные комментария (имя, дата) --- */
/* [ИСПРАВЛЕНО] Используем Flexbox, чтобы поставить имя и дату в одну строку */
.comment-meta {
    display: flex;
    align-items: baseline; /* Выравнивание по базовой линии текста */
    flex-wrap: wrap; /* Разрешаем перенос на маленьких экранах */
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9em;
}
/* [ИСПРАВЛЕНО] Убрано display: block */
.comment-author {
    font-weight: bold;
    color: #34495e;
    margin-right: 10px; /* Отступ между именем и датой */
}
.comment-date {
    font-size: 0.9em;
}

/* --- Текст комментария --- */
.comment-body {
    margin-top: 8px;
}
.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: #444;
    word-wrap: break-word;
}
.comment-body strong {
    color: #3498db;
    font-weight: 500;
}