/* =============================================================
   AethCore — news.css
   News article styles, thread/news list styles (home page),
   pagination, and shared article layout.
   ============================================================= */

/* --- News list (home page) --- */

.news-list {
    list-style: none;
}

.news-list-item {
    padding: 5px 0;
    border-bottom: 1px solid #e4e4e4;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-title {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #222;
}

.news-list-title:hover {
    color: #c85000;
    text-decoration: none;
}

.news-list-meta {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* --- Thread list (home page) --- */

.thread-list {
    list-style: none;
}

.thread-list-item {
    padding: 5px 0;
    border-bottom: 1px solid #e4e4e4;
}

.thread-list-item:last-child {
    border-bottom: none;
}

.thread-list-title {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #222;
}

.thread-list-title:hover {
    color: #c85000;
    text-decoration: none;
}

.thread-list-meta {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.thread-list-meta a {
    color: #777;
}

.thread-list-meta a:hover {
    color: #c85000;
}

/* --- News author avatar (news list and detail) --- */

.news-author-avatar,
.news-author-no-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border: 1px solid #ccc;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.news-author-no-avatar {
    background: #ddd;
    display: inline-block;
}

.news-avatar-cell {
    width: 36px;
    padding: 6px 4px 6px 0;
    vertical-align: middle;
}

/* --- News article detail --- */

.news-article {
    display: flex;
    flex-direction: row;
}

.news-article-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 130px;
    flex-shrink: 0;
    padding: 14px 10px;
    background: #f2f2f2;
    border-right: 1px solid #d0d0d0;
    text-align: center;
}

.news-article-category {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.news-article-body {
    flex: 1;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    min-width: 0;
}

/* --- Pagination (shared) --- */

.pagination {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-top: 1px solid #d0d0d0;
    background: #f9f9f9;
    font-size: 13px;
}

.pagination a {
    color: #c85000;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    color: #555;
}
