/* Forum styles - Discourse-inspired layout */

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.forum-header h2 {
    margin: 0;
}

.forum-breadcrumbs {
    margin-bottom: 18px;
    color: #6c757d;
    font-size: 14px;
}

.forum-breadcrumbs a {
    color: #00b09c;
    text-decoration: none;
}

.forum-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Category list */
.forum-category-list {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.forum-category-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
    border-left: 4px solid transparent;
    transition: background-color 0.15s ease-in-out;
}

.forum-category-row:last-child {
    border-bottom: none;
}

.forum-category-row:hover {
    background-color: #fafafa;
}

.forum-category-main {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-category-main a.forum-category-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.forum-category-main a.forum-category-name:hover {
    color: #00b09c;
}

.forum-category-description {
    color: #6c757d;
    font-size: 14px;
    margin-top: 2px;
}

.forum-category-stats {
    flex: 0 0 90px;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
}

.forum-category-stats strong {
    display: block;
    font-size: 18px;
    color: #333;
}

.forum-category-latest {
    flex: 0 0 220px;
    text-align: right;
    font-size: 13px;
    color: #6c757d;
}

.forum-category-latest a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.forum-category-latest a:hover {
    color: #00b09c;
}

@media (max-width: 768px) {
    .forum-category-stats, .forum-category-latest {
        display: none;
    }
}

/* Topic list */
.forum-topic-list {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.forum-topic-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #ececec;
}

.forum-topic-row:last-child {
    border-bottom: none;
}

.forum-topic-row:hover {
    background-color: #fafafa;
}

.forum-topic-main {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-topic-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.forum-topic-title:hover {
    color: #00b09c;
}

.forum-pin-badge {
    display: inline-block;
    background: #ffc107;
    color: #212529;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

.forum-topic-meta {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
}

.forum-topic-stats {
    flex: 0 0 140px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.forum-stat {
    color: #6c757d;
    font-size: 13px;
}

.forum-stat strong {
    display: block;
    font-size: 15px;
    color: #333;
}

.forum-topic-activity {
    flex: 0 0 130px;
    text-align: right;
    color: #6c757d;
    font-size: 13px;
}

/* Avatar */
.forum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 14px;
}

.forum-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 13px;
    margin-right: 10px;
}

/* Category chip */
.forum-category-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Post / reply cards (topic detail page) */
.forum-post {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
}

.forum-post.op {
    border-top: 3px solid #00b09c;
}

.forum-post-body {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.forum-post-author {
    font-weight: 700;
    color: #222;
}

.forum-op-badge {
    background: #00b09c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.forum-post-timestamp {
    color: #999;
    font-size: 13px;
}

.forum-post-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    color: #333;
}

.forum-reply-count-header {
    display: flex;
    align-items: center;
    margin: 24px 0 12px;
    color: #6c757d;
    font-size: 14px;
}

.forum-reply-count-header hr {
    flex: 1;
    margin: 0 12px;
}

.forum-reply-form {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 10px;
}

.forum-empty-state {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.forum-new-topic-btn {
    background: #00b09c;
    border-color: #00b09c;
    color: #fff;
    font-weight: 600;
}

.forum-new-topic-btn:hover {
    background: #00a491;
    color: #fff;
}
