:root {
	--bg: #1a1a1a;
	--surface: #2a2a2a;
	--surface-light: #333;
	--muted: #999;
	--fg: #e0e0e0;
	--fg-light: #fff;
	--primary: #4a9eff;
	--primary-hover: #5aaaff;
	--danger: #f87171;
	--border: #3a3a3a;
	--border-light: #444;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg);
	color: var(--fg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container { 
	flex: 1; 
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	width: 100%;
}

/* Header */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid var(--border);
}

.header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.moderator-dropdown {
	color: var(--fg);
	cursor: pointer;
	font-size: 14px;
}

.dropdown-arrow {
	font-size: 10px;
	margin-left: 4px;
}

.main-nav {
	display: flex;
	gap: 0;
	align-items: center;
}

.nav-dropdown {
	position: relative;
}

.nav-item {
	color: var(--fg);
	text-decoration: none;
	padding: 8px 16px;
	font-size: 14px;
	border-radius: 4px;
	transition: background 0.2s;
	display: flex;
	align-items: center;
}

.nav-item:hover {
	background: var(--surface-light);
}

.nav-item.active {
	background: var(--surface-light);
	color: var(--fg-light);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	min-width: 180px;
	padding: 8px 0;
	margin-top: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-menu a {
	display: block;
	padding: 8px 16px;
	color: var(--fg);
	text-decoration: none;
	font-size: 13px;
	transition: background 0.2s;
}

.dropdown-menu a:hover {
	background: var(--surface-light);
	color: var(--fg-light);
}

.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-link {
	color: var(--fg);
	text-decoration: none;
	padding: 8px 16px;
	font-size: 14px;
	border-radius: 6px;
	transition: all 0.2s;
	display: inline-block;
	font-weight: 500;
}

.nav-link:hover {
	background: var(--surface-light);
	color: var(--fg-light);
	transform: translateY(-1px);
}

.nav-link:first-child {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--fg);
}

.nav-link:first-child:hover {
	background: var(--surface-light);
	border-color: var(--border-light);
}

.nav-link:last-child {
	background: var(--primary);
	color: white;
	border: 1px solid var(--primary);
}

.nav-link:last-child:hover {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
	box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--fg);
	font-size: 14px;
}

.user-info.clickable {
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 4px;
	transition: background 0.2s;
}

.user-info.clickable:hover {
	background: var(--surface-light);
}

.user-profile-dropdown {
	position: relative;
	z-index: 10001;
}

.user-profile-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	min-width: 600px;
	max-width: 700px;
	display: none;
	z-index: 10000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-profile-menu.show {
	display: block;
}

.profile-menu-header {
	border-bottom: 1px solid var(--border);
	padding: 12px 16px;
}

.profile-menu-tabs {
	display: flex;
	gap: 0;
}

.profile-tab {
	padding: 8px 16px;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover {
	color: var(--fg-light);
}

.profile-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.profile-menu-content {
	padding: 16px;
}

.profile-menu-user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.profile-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.profile-info {
	flex: 1;
}

.profile-username {
	color: var(--primary);
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 4px;
}

.profile-badge {
	color: var(--muted);
	font-size: 13px;
}

.profile-stats {
	display: flex;
	gap: 24px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.profile-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stat-label {
	color: var(--muted);
	font-size: 12px;
}

.stat-value {
	color: var(--fg);
	font-size: 14px;
	font-weight: 500;
}

.profile-menu-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.profile-links-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.profile-links-column a {
	color: var(--fg);
	text-decoration: none;
	font-size: 13px;
	padding: 6px 0;
	transition: color 0.2s;
}

.profile-links-column a:hover {
	color: var(--primary);
}

.profile-link-button {
	background: none;
	border: none;
	color: var(--fg);
	text-decoration: none;
	font-size: 13px;
	padding: 6px 0;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s;
}

.profile-link-button:hover {
	color: var(--primary);
}

.profile-status {
	margin-top: 8px;
}

.status-input {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 8px 12px;
	color: var(--fg);
	font-size: 13px;
}

.status-input::placeholder {
	color: var(--muted);
}

.online-user a {
	color: var(--fg);
	text-decoration: none;
	transition: color 0.2s;
}

.online-user a:hover {
	color: var(--primary);
}

/* Account pages */
.account-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 24px;
}

.account-tab {
	padding: 12px 20px;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.account-tab:hover {
	color: var(--fg-light);
}

.account-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.account-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.account-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.account-info {
	flex: 1;
}

.account-username {
	color: var(--primary);
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 4px;
}

.account-badge {
	color: var(--muted);
	font-size: 14px;
}

.account-stats {
	display: flex;
	gap: 32px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.account-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.account-links-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.account-links-column a {
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	padding: 8px 0;
	transition: color 0.2s;
}

.account-links-column a:hover {
	color: var(--primary);
}

.account-link-button {
	background: none;
	border: none;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	padding: 8px 0;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s;
}

.account-link-button:hover {
	color: var(--primary);
}

.account-status {
	margin-top: 16px;
}

/* Profile Page Styles */
.profile-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.profile-top-nav {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 16px;
}

.profile-top-nav a {
	color: var(--fg);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}

.profile-top-nav a:hover {
	color: var(--primary);
}

.breadcrumbs {
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 16px;
}

.breadcrumbs a {
	color: var(--primary);
	text-decoration: none;
}

.profile-header-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 16px;
}

.profile-header-content {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.profile-avatar-large {
	position: relative;
	flex-shrink: 0;
}

.avatar-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60px;
	border: 3px solid var(--border);
}

.avatar-badge {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	border: 2px solid var(--surface);
}

.profile-header-info {
	flex: 1;
}

.profile-name-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.profile-username {
	font-size: 24px;
	font-weight: 600;
	color: var(--primary);
	margin: 0;
}

.profile-icon {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--fg);
}

.profile-badges {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.badge {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.badge-blue {
	background: #3b82f6;
	color: white;
}

.badge-green {
	background: #10b981;
	color: white;
}

.badge-yellow {
	background: #f59e0b;
	color: white;
}

.badge-red {
	background: #ef4444;
	color: white;
}

.profile-meta {
	display: flex;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 16px;
}

.profile-stats-row {
	display: flex;
	gap: 24px;
	align-items: center;
}

.profile-stat-item {
	display: flex;
	gap: 4px;
	font-size: 14px;
}

.stat-label {
	color: var(--muted);
}

.stat-value {
	color: var(--fg);
	font-weight: 500;
}

.profile-find-dropdown {
	color: var(--fg);
	font-size: 14px;
	cursor: pointer;
}

.profile-actions {
	display: flex;
	gap: 8px;
	flex-direction: column;
	align-items: flex-end;
}

.profile-action-btn {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 6px 12px;
	color: var(--fg);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.profile-action-btn:hover {
	background: var(--surface);
}

.profile-action-dropdown {
	position: relative;
}

.moderator-dropdown-menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 1000;
}

.moderator-menu-item {
	display: block;
	width: 100%;
	padding: 10px 16px;
	background: none;
	border: none;
	color: var(--fg);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}

.moderator-menu-item:hover {
	background: var(--surface-light);
	color: var(--fg-light);
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	color: var(--fg-light);
}

.modal-close {
	background: none;
	border: none;
	color: var(--muted);
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
	background: var(--surface-light);
	color: var(--fg);
}

.modal-body {
	padding: 20px;
}

.modal-body p {
	margin: 0 0 16px 0;
	color: var(--fg);
	font-size: 14px;
}

.role-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.role-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.role-option:hover {
	background: var(--surface-light);
	border-color: var(--primary);
}

.role-option input[type="radio"] {
	margin: 0;
	cursor: pointer;
}

.role-option span {
	color: var(--fg);
	font-size: 14px;
	cursor: pointer;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid var(--border);
}

.btn-secondary {
	background: var(--surface-light);
	border: 1px solid var(--border);
	color: var(--fg);
}

.btn-secondary:hover {
	background: var(--surface);
}

.profile-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--border);
	margin-bottom: 24px;
}

.profile-tab {
	padding: 12px 20px;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover {
	color: var(--fg-light);
}

.profile-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.profile-content {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px;
}

.status-update-box,
.comment-box {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 16px;
}

.avatar-circle-small {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.status-input-wrapper {
	position: relative;
	flex: 1;
}

.status-input-large {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 40px 10px 12px;
	color: var(--fg);
	font-size: 14px;
}

.status-input-large::placeholder {
	color: var(--muted);
}

.status-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	pointer-events: none;
}

.profile-posts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.profile-post {
	display: flex;
	gap: 12px;
	padding: 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.avatar-circle-post {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
	flex-shrink: 0;
}

.post-content-wrapper {
	flex: 1;
}

.post-header {
	margin-bottom: 8px;
}

.post-author-name {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}

.post-author-name:hover {
	text-decoration: underline;
}

.post-date {
	color: var(--muted);
	font-size: 13px;
}

.post-text {
	color: var(--fg);
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
	white-space: pre-wrap;
}

.post-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

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

.post-action-link {
	color: var(--muted);
	text-decoration: none;
	font-size: 12px;
	transition: color 0.2s;
}

.post-action-link:hover {
	color: var(--fg);
}

.post-reactions {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--fg);
	font-size: 13px;
}

.reaction-icon {
	font-size: 16px;
}

.post-buttons {
	display: flex;
	gap: 8px;
}

.post-btn {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 6px 12px;
	color: var(--fg);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.2s;
}

.post-btn:hover {
	background: var(--surface);
}

.post-btn.liked {
	background: var(--primary);
	color: white;
}

.post-btn.liked:hover {
	background: var(--primary-hover);
}

.post-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.activity-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.activity-item {
	padding: 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 12px;
}

.activity-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.activity-thread {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
}

.activity-thread:hover {
	text-decoration: underline;
}

.activity-text {
	color: var(--fg);
	font-size: 14px;
	line-height: 1.5;
}

.activity-date {
	color: var(--muted);
	font-size: 12px;
}

.about-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.info-row {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}

.info-label {
	color: var(--muted);
	font-size: 14px;
	min-width: 150px;
}

.info-value {
	color: var(--fg);
	font-size: 14px;
	font-weight: 500;
}

/* Comments */
.post-comments {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.comment-item {
	margin-bottom: 12px;
}

.comment-header {
	margin-bottom: 6px;
}

.comment-author {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
}

.comment-author:hover {
	text-decoration: underline;
}

.comment-date {
	color: var(--muted);
	font-size: 12px;
}

.comment-content {
	color: var(--fg);
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 8px;
	white-space: pre-wrap;
}

.comment-actions {
	display: flex;
	gap: 12px;
}

.comment-reply-btn,
.comment-delete-btn,
.comment-ip-btn {
	background: none;
	border: none;
	color: var(--muted);
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.comment-reply-btn:hover,
.comment-delete-btn:hover,
.comment-ip-btn:hover {
	color: var(--fg);
}

.post-comment-box {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.comment-reply-form {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.comment-reply-form .status-input-wrapper {
	flex: 1;
	display: flex;
	gap: 8px;
}

.comment-submit-btn {
	background: var(--primary);
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	color: white;
	font-size: 12px;
	cursor: pointer;
}

.user-icon {
	font-size: 18px;
}

.icon-link {
	color: var(--fg);
	text-decoration: none;
	font-size: 18px;
	padding: 4px;
}

.search-box {
	display: flex;
}

.search-box input {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 6px 12px;
	color: var(--fg);
	font-size: 13px;
	width: 200px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
}

.search-box button {
	background: var(--primary);
	border: 1px solid var(--border);
	border-left: none;
	border-radius: 4px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding: 6px 12px;
	color: white;
	font-size: 13px;
	cursor: pointer;
}

.search-box input::placeholder {
	color: var(--muted);
}


.nav-bottom-item {
	color: var(--fg);
	text-decoration: none;
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 4px;
	transition: background 0.2s;
}

.nav-bottom-item:hover {
	background: var(--surface-light);
}


/* Forum Layout - 3 columns */
.forum-layout {
	display: grid;
	grid-template-columns: 250px 1fr 300px;
	gap: 20px;
	margin-top: 20px;
}

/* Left Sidebar - Categories */
.categories-sidebar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 16px;
}

.categories-sidebar h2 {
	margin: 0 0 16px 0;
	font-size: 18px;
	color: var(--fg-light);
	font-weight: 600;
}

.category-group {
	margin-bottom: 20px;
}

.category-group-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

.category-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.category-item:hover {
	color: var(--primary);
}

.category-icon {
	font-size: 16px;
}

.category-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.category-name {
	font-weight: 500;
}

.category-stats {
	font-size: 12px;
	color: var(--muted);
}

/* Main Content */
.forum-main {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 20px;
}

.forum-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.forum-header h2 {
	margin: 0;
	font-size: 20px;
	color: var(--fg-light);
}

.thread-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.thread-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 6px;
	transition: background 0.2s;
}

.thread-item:hover {
	background: var(--bg);
}

.thread-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 16px;
	flex-shrink: 0;
}

.thread-content {
	flex: 1;
}

.thread-title {
	color: var(--fg-light);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	display: block;
	margin-bottom: 6px;
}

.thread-title:hover {
	color: var(--primary);
}

.thread-meta {
	font-size: 12px;
	color: var(--muted);
	display: flex;
	gap: 8px;
	align-items: center;
}

.thread-meta a {
	color: var(--muted);
	text-decoration: none;
}

.thread-meta a:hover {
	color: var(--primary);
}

/* Right Sidebar */
.right-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sidebar-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 16px;
}

.sidebar-block h3 {
	margin: 0 0 12px 0;
	font-size: 15px;
	color: var(--fg-light);
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.sidebar-btn {
	display: block;
	width: 100%;
	padding: 10px;
	background: var(--primary);
	color: white;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 10px;
	transition: background 0.2s;
}

.sidebar-btn:hover {
	background: var(--primary-hover);
}

.sidebar-btn.secondary {
	background: var(--surface-light);
	color: var(--fg);
	border: 1px solid var(--border);
}

.sidebar-btn.secondary:hover {
	background: var(--bg);
}

.staff-online, .members-online {
	margin-bottom: 12px;
}

.online-user {
	font-size: 13px;
	color: var(--fg);
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.status-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--danger);
}

.online-stats {
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

.latest-posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.latest-post-item {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.latest-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.latest-post-title {
	color: var(--fg-light);
	text-decoration: none;
	font-size: 13px;
	display: block;
	margin-bottom: 4px;
}

.latest-post-title:hover {
	color: var(--primary);
}

.latest-post-meta {
	font-size: 11px;
	color: var(--muted);
}

/* Content blocks */
.content-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 32px;
	margin: 20px auto;
}

/* Forms */
.form {
	display: grid;
	gap: 16px;
	max-width: 600px;
}

label {
	display: grid;
	gap: 8px;
	font-size: 14px;
	color: var(--fg);
}

input, textarea, select {
	font: inherit;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--fg);
}

textarea {
	resize: vertical;
	min-height: 120px;
}

.btn {
	display: inline-block;
	background: var(--primary);
	color: white;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.btn:hover {
	background: var(--primary-hover);
}

button {
	background: var(--primary);
	color: white;
	padding: 12px 24px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 300px;
	margin-top: 8px;
}

button:hover {
	background: var(--primary-hover);
	box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
	transform: translateY(-1px);
}

button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
	background: var(--primary);
	color: white;
	padding: 12px 32px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 300px;
	margin-top: 8px;
}

.btn-primary:hover {
	background: var(--primary-hover);
	box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.alert {
	padding: 12px 16px;
	background: #3b0e0e;
	border: 1px solid #7f1d1d;
	color: #fecaca;
	border-radius: 6px;
	margin-bottom: 16px;
}

/* Footer */
.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	margin-top: auto;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.footer-nav-wrapper {
	padding: 12px 20px;
	background: var(--surface-light);
	border-bottom: 1px solid var(--border);
}

.footer-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.footer-secondary {
	display: flex;
	justify-content: center;
	gap: 0;
	padding: 8px 20px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.footer-copyright {
	padding: 12px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	background: var(--surface);
}

/* Add padding to body to account for fixed footer */
body {
	padding-bottom: 180px;
}

.home-icon {
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 8px;
	width: 60px;
	height: 60px;
}

.home-icon svg {
	width: 48px;
	height: 48px;
	color: var(--fg);
	transition: color 0.2s;
}

.home-icon:hover svg {
	color: var(--fg-light);
}

.home-icon.active svg {
	color: var(--primary);
}


.dropdown-menu-up {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: 4px;
}

/* User profile styles */
.profile-header {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 20px;
}

.profile-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.stat-item {
	text-align: center;
}

.stat-value {
	font-size: 24px;
	font-weight: bold;
	color: var(--primary);
}

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

.wall-posts {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
}

.wall-post {
	padding: 16px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 12px;
}

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

.post-author {
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 8px;
}

.post-content {
	color: var(--fg);
	line-height: 1.6;
	margin-bottom: 8px;
}

.post-date {
	font-size: 12px;
	color: var(--muted);
}

.posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 16px;
}

.post {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 16px;
}

.post-meta {
	color: var(--muted);
	font-size: 12px;
	margin-bottom: 10px;
}

.post-meta a {
	color: var(--primary);
	text-decoration: none;
}

.post-meta a:hover {
	text-decoration: underline;
}

.post-content {
	color: var(--fg);
	line-height: 1.6;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.reply {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
	.forum-layout {
		grid-template-columns: 200px 1fr 250px;
	}
}

@media (max-width: 968px) {
	.forum-layout {
		grid-template-columns: 1fr;
	}
	
	.categories-sidebar,
	.right-sidebar {
		order: -1;
	}
	
	.header-top {
		flex-wrap: wrap;
	}
	
	.main-nav {
		order: 3;
		width: 100%;
		margin-top: 8px;
	}
}
