/* ============================================================
   Aethermoor - Forum Styles
   ============================================================ */

.forum-stats { display: flex; gap: 2rem; justify-content: center; margin-bottom: 2rem; color: var(--text-dim); font-size: 0.85rem; }
.forum-stats strong { color: var(--gold); }

.forum-categories { display: flex; flex-direction: column; gap: 1rem; }

.forum-category { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--primary); }
.category-header h2 { color: var(--text); font-size: 1.1rem; }
.thread-count { color: var(--text-dim); font-size: 0.8rem; }
.recent-thread { display: flex; justify-content: space-between; align-items: center; }
.recent-thread a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.recent-thread a:hover { color: var(--gold); }
.thread-meta { color: var(--text-dim); font-size: 0.75rem; }

/* Category View */
.forum-breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-dim); }
.forum-breadcrumb a { color: var(--gold); text-decoration: none; }
.forum-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.forum-header h1 { color: var(--gold); font-family: Georgia, serif; }

.forum-threads { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.thread-item { display: flex; align-items: center; gap: 0.75rem; background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 8px; padding: 0.75rem 1rem; transition: all 0.2s; }
.thread-item:hover { border-color: var(--gold); }
.thread-item.sticky { border-color: var(--gold); background: rgba(255, 215, 0, 0.05); }
.thread-badge { padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; font-weight: 600; }
.thread-badge.sticky { background: var(--gold); color: var(--dark); }
.thread-title { color: var(--text); text-decoration: none; flex: 1; }
.thread-title:hover { color: var(--gold); }
.thread-meta { color: var(--text-dim); font-size: 0.75rem; white-space: nowrap; }

.pagination { display: flex; gap: 0.35rem; justify-content: center; }
.page-num { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--dark-lighter); border: 1px solid var(--primary); color: var(--text); cursor: pointer; font-size: 0.85rem; }
.page-num.active { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Thread View */
.thread-title-page { color: var(--gold); font-family: Georgia, serif; font-size: 1.5rem; margin-bottom: 1.5rem; }

.thread-posts { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.post { display: flex; gap: 1rem; background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; overflow: hidden; }
.post-author { width: 150px; background: rgba(74, 14, 78, 0.2); padding: 1rem; text-align: center; flex-shrink: 0; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--dark-lightest); margin: 0 auto 0.5rem; border: 2px solid var(--primary); }
.post-rank { color: var(--gold); font-size: 0.75rem; margin-top: 0.25rem; }
.post-rep { color: var(--text-dim); font-size: 0.75rem; }
.post-content { flex: 1; padding: 1rem; }
.post-content p { margin-bottom: 0.75rem; line-height: 1.6; }
.post-footer { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; border-top: 1px solid var(--primary); }
.post-date { color: var(--text-dim); font-size: 0.75rem; }
.post-actions { display: flex; gap: 0.35rem; }

.spoiler { margin-top: 0.5rem; }

/* Post Editor */
.post-editor { background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.post-editor h3 { color: var(--gold); margin-bottom: 1rem; }
.editor-toolbar { display: flex; gap: 0.25rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.editor-toolbar .btn { min-width: 30px; }
.editor-actions { margin-top: 0.75rem; }

/* Profile */
.forum-profile { max-width: 800px; margin: 0 auto; }
.profile-header { display: flex; gap: 1.5rem; align-items: center; background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--dark-lightest); border: 2px solid var(--gold); flex-shrink: 0; }
.profile-info h1 { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.5rem; }
.profile-badges { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.profile-stats { display: flex; gap: 1rem; color: var(--text-dim); font-size: 0.85rem; }
.profile-tabs { display: flex; gap: 2px; margin-bottom: 1rem; border-bottom: 2px solid var(--primary); }
.profile-content { display: flex; flex-direction: column; gap: 0.5rem; }
.post-item { display: flex; justify-content: space-between; align-items: center; background: var(--dark-lighter); border: 1px solid var(--primary); border-radius: 8px; padding: 0.75rem 1rem; }
.post-item a { color: var(--text); text-decoration: none; }
.post-item a:hover { color: var(--gold); }
.post-date { color: var(--text-dim); font-size: 0.75rem; }

/* Thread Form */
.thread-form { max-width: 800px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
    .post { flex-direction: column; }
    .post-author { width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; }
    .avatar { width: 40px; height: 40px; margin: 0; }
    .profile-header { flex-direction: column; text-align: center; }
}
