/* Forum Stats Bar */
.forum-stats {
    display: flex;
    gap: 24px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.forum-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.forum-stats strong {
    color: var(--text);
}

/* Category */
.category {
    margin-bottom: 16px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--nav-bg);
    color: var(--nav-text);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0;
}

.category-header a {
    color: var(--nav-active);
}

/* Board Row */
.board-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
}

.board-row:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.board-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    border-radius: var(--radius);
    margin-right: 12px;
    flex-shrink: 0;
}

.board-icon.read-only {
    background: var(--text-muted);
}

.board-info {
    flex: 1;
    min-width: 0;
}

.board-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.board-name a {
    color: var(--text);
}

.board-name a:hover {
    color: var(--link);
    text-decoration: none;
}

.board-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.board-stats {
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.board-stats div {
    min-width: 60px;
}

.board-stats strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.board-last-post {
    width: 200px;
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.board-last-post a {
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-last-post .time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Thread List */
.thread-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--post-header-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
}

.thread-row:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.thread-row.unread {
    background: var(--surface-alt);
}

.thread-row.unread .thread-title {
    font-weight: 600;
}

.thread-row.pinned {
    background: var(--surface-alt);
}

.thread-icon {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.thread-icon.pinned {
    color: var(--warning);
}

.thread-icon.locked {
    color: var(--text-muted);
}

.thread-icon.hot {
    color: var(--danger);
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 13px;
    margin-bottom: 2px;
}

.thread-title a {
    color: var(--text);
}

.thread-title a:hover {
    color: var(--link);
    text-decoration: none;
}

.thread-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.thread-tag {
    font-size: 10px;
    padding: 1px 5px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: var(--radius);
}

.thread-tag.pinned {
    background: #fef3c7;
    color: #92400e;
}

.thread-tag.locked {
    background: #e5e7eb;
    color: #374151;
}

[data-theme="dark"] .thread-tag.pinned {
    background: #451a03;
    color: #fcd34d;
}

.thread-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.thread-meta a {
    color: var(--text-secondary);
}

.thread-replies,
.thread-views {
    text-align: center;
    min-width: 60px;
    margin: 0 12px;
    flex-shrink: 0;
}

.thread-replies strong,
.thread-views strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.thread-replies span,
.thread-views span {
    font-size: 11px;
    color: var(--text-muted);
}

.thread-last-post {
    width: 180px;
    text-align: right;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.thread-last-post a {
    color: var(--text-secondary);
}

/* Post */
.post {
    display: flex;
    border: 1px solid var(--post-border);
    margin-bottom: -1px;
    background: var(--post-bg);
}

.post-author {
    width: var(--post-author-width);
    padding: 12px;
    background: var(--post-author-bg);
    border-right: 1px solid var(--border-light);
    text-align: center;
    flex-shrink: 0;
}

.post-author .avatar {
    margin: 0 auto 8px;
}

.post-author .username {
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.post-author .user-title {
    display: block;
    margin-bottom: 8px;
}

.post-author .user-posts {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.post-author .user-join {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.post-main {
    flex: 1;
    min-width: 0;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--post-header-bg);
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
}

.post-header strong {
    color: var(--text);
}

.post-content {
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.post-content p {
    margin-bottom: 10px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-secondary);
    font-size: 13px;
}

.post-content ul,
.post-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 4px;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 8px 0;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
}

.post-actions {
    display: flex;
    gap: 4px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
}

.post-action:hover {
    background: var(--surface-alt);
    color: var(--text-secondary);
}

.post-action.liked {
    color: var(--primary);
}

.post-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

/* Poll */
.poll {
    margin: 12px 0;
    padding: 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.poll-question {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 13px;
}

.poll-option {
    margin-bottom: 8px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.poll-option-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.poll-option-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.poll-votes {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* User Profile */
.profile-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-stats strong {
    color: var(--text);
}

.profile-bio {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Search Results */
.search-result {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-title a {
    color: var(--link);
}

.search-result-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Online Users */
.online-users {
    font-size: 12px;
    color: var(--text-secondary);
}

.online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--online);
    border-radius: 50%;
    margin-right: 4px;
}

/* Messages */
.message-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.message-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.message-row:hover {
    background: var(--surface-alt);
}

.message-row.unread {
    background: var(--surface-alt);
}

.message-row.unread .message-subject {
    font-weight: 600;
}

.message-info {
    flex: 1;
    min-width: 0;
}

.message-from {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.message-subject {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

/* Notification List */
.notification-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.notification-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row.unread {
    background: var(--surface-alt);
}

.notification-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    font-size: 13px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Settings */
.settings-layout {
    display: flex;
    gap: 16px;
}

.settings-nav {
    width: 180px;
    flex-shrink: 0;
}

.settings-nav-item {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.settings-nav-item:hover {
    background: var(--surface-alt);
    color: var(--text);
    text-decoration: none;
}

.settings-nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.settings-content {
    flex: 1;
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.admin-stat {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.admin-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
