/* Forum theme - matches SavageFam.Club colors */
:root {
	--primary-color: #E3FC02;
    /* primary color alpha steps for borders/overlays */
    --primary-color-100: rgba(227, 252, 2, 1);
    --primary-color-75: rgba(227, 252, 2, 0.75);
    --primary-color-50: rgba(227, 252, 2, 0.5);
    --primary-color-25: rgba(227, 252, 2, 0.25);
    --primary-color-10: rgba(227, 252, 2, 0.10);
    --secondary-color: #B8D002;

	--forum-bg: var(--bg-primary, #181818);
	--forum-card: var(--card-bg, #222);
	--forum-border: var(--border-color, #444);
	--forum-accent: var(--primary-color, #e91e63);
	--forum-text: var(--text-primary, #fff);
	--forum-muted: #bcbcbc;
	--font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--right-rail-width: 340px;
	--card-radius: 12px;
	--card-padding: 1rem;
	--btn-padding-vertical: 0.55rem;
	--btn-padding-horizontal: 1rem;
	--btn-font-size: 1rem;
	--grid-gap: 1.5rem;
	--max-content-width: 1400px;
	--container-padding: 1rem;

	--form-spacing: 20px;
	--form-input-padding: 10px;
	--form-input-border: 1px solid #555;
	--form-input-border-focus: 1px solid var(--primary-color);
	--form-input-radius: 12px;
	--form-input-font-size: 14px;
	--form-label-font-size: 14px;
	--form-label-font-weight: 600;
	--form-label-margin-bottom: 8px;
	--form-helper-color: #666;
	--form-helper-margin-top: 5px;
	--button-padding-vertical: 12px;
	--button-padding-horizontal: 30px;
	--button-font-size: 16px;
	--button-margin-left: 10px;
	--error-bg: #ffebee;
	--error-border: #f44336;
	--error-color: #c62828;
	--link-color: #1976d2;
	--link-hover-color: #1565c0;
	--post-card-margin: 12px;
	--sidebar-list-padding: 20px;
	--sidebar-list-line-height: 1.6;
	--author-text-color: #999;
	--author-text-size: 12px;
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
}

.error-box {
	margin-bottom: var(--form-spacing);
	padding: 15px;
	background-color: var(--error-bg);
	border-left: 4px solid var(--error-border);
	border-radius: 4px;
	color: var(--error-color);
}

/**.forum-main form {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	padding: 1rem;
	border-radius: 10px;
	margin-bottom: var(--spacing-md);
}**/

.add-post-card {
	width: 100%;
	max-width: 1400px;
	margin: 1.25rem auto;
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	padding: 1rem;
	border-radius: 10px;
}

.add-post-card h2 {
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: var(--forum-accent);
}

.forum-main .form-group {
	margin-bottom: var(--spacing-md);
}

.forum-main label {
	display: block;
	color: var(--forum-text);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* Form Styling */
.form-group {
	margin-bottom: var(--form-spacing);
}

.form-group label {
	display: block;
	margin-bottom: var(--form-label-margin-bottom);
	font-weight: var(--form-label-font-weight);
	font-size: var(--form-label-font-size);
}

.forum-main textarea {
	min-height: 160px;
	outline: none;
	resize: none;
}

.forum-main input:focus,
.forum-main textarea:focus,
.forum-main select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border: var(--form-input-border-focus);
	box-shadow: 0 0 0 2px rgba(227, 252, 2, 0.1);
}


.forum-main input[type="text"],
.forum-main input[type="email"],
.forum-main input[type="password"],
.forum-main input[type="number"],
.forum-main input[type="file"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.forum-main textarea {
	width: 100%;
	background: var(--bg-tertiary);
	color: var(--forum-text);
	padding: var(--form-input-padding);
	border: 1px solid var(--form-input-border);
	border-radius: var(--form-input-radius);
	font-size: var(--form-input-font-size);
	font-family: inherit;
	box-sizing: border-box;
}

.form-group textarea {
	resize: none;
}

.form-group small {
	display: block;
	margin-top: var(--form-helper-margin-top);
	color: var(--form-helper-color);
}

.form-group .btn {
	padding: var(--button-padding-vertical) var(--button-padding-horizontal);
	font-size: var(--button-font-size);
	width: 100%;
}

.form-group .btn + .btn {
	margin-left: var(--button-margin-left);
}

.btn-cancel {
	text-decoration: none;
	display: inline-block;
}

.heading-section {
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--forum-card);
	border-radius: var(--card-radius);
	border: 1px solid var(--forum-border);
}

.heading-section h2 {
	margin-top: 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--forum-border);
}

/* Sidebar Styling */
.sidebar-tips-list {
	padding: 1rem;
	color: var(--form-helper-color);
	font-size: var(--form-label-font-size);
	line-height: var(--sidebar-list-line-height);
}

.post-card {
	margin-bottom: var(--post-card-margin);
}

.post-card .thread-title {
	text-decoration: none;
	color: var(--link-color);
	font-weight: 500;
	display: block;
}

.post-card .thread-title:hover {
	color: var(--link-hover-color);
	text-decoration: underline;
}

#recent-posts-list .post-card .thread-title {
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.main-post-card {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	border-radius: var(--card-radius);
	padding: var(--spacing-md);
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: all 0.2s ease;
}

.main-post-card:hover {
	border-color: var(--link-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--forum-border);
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
}

.post-meta .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.post-author-block {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.post-author {
	font-weight: 600;
	color: var(--text-color);
	font-size: 0.95rem;
}

.post-date {
	font-size: 0.8rem;
	color: var(--form-helper-color);
}

.post-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.post-thread-title {
	font-size: 0.9rem;
	color: var(--form-helper-color);
}

.thread-link {
	color: var(--link-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.thread-link:hover {
	color: var(--link-hover-color);
	text-decoration: underline;
}

.post-text {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-color);
	word-wrap: break-word;
	white-space: pre-wrap;
}

.post-footer {
	display: flex;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--forum-border);
}






/* #!SECTION: LAYOUT FOUNDATION */
/* Base layout container with max-width and responsive padding */
.forum-container {
	max-width: var(--max-content-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	width: 100%;
}

/* Robust grid system */
.forum-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--grid-gap);
	width: 100%;
}

/* Two-column layout for main content and sidebar */
.forum-layout-two-col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--grid-gap);
	width: 100%;
}

/* Responsive sidebar that becomes full-width on mobile */
.forum-sidebar {
	width: 100%;
	box-sizing: border-box;
}

/* Sidebar sections */
.sidebar-search {
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--forum-card);
	border-radius: var(--card-radius);
	border: 1px solid var(--forum-border);
}

.sidebar-section {
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--forum-card);
	border-radius: var(--card-radius);
	border: 1px solid var(--forum-border);
}

.sidebar-section h2 {
	margin-top: 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--forum-border);
}

/* No content message styling */
.no-content-message {
	text-align: center;
	padding: 1.5rem;
	color: var(--forum-muted);
	background: rgba(255, 255, 255, 0.02);
	border-radius: 8px;
	margin: 1rem 0;
}

/* Forum grid items */
.forum-grid-item {
	margin-bottom: 2rem;
}

.forum-grid-item:last-child {
	margin-bottom: 0;
}

/* Main column styling */
.forum-main-column {
	width: 100%;
}

@media (max-width: 1100px) {
	.forum-layout-two-col {
		grid-template-columns: 1fr;
	}

	.forum-sidebar {
		position: static;
		max-height: none;
		margin-top: 0;
	}

	.sidebar-search,
	.sidebar-section {
		margin-bottom: 1.5rem;
		padding: 0.75rem;
	}
}

.nav-links a>i {
	margin-right: 5px;
}

/* #!SECTION: HEADER */
.main-header {
	background-color: var(--bg-secondary);
	padding: 1rem 2rem;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	z-index: 50;
	top: 0px;
}

.main-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 60;
	text-align: center;
}

.nav-logo a {
	background: none;
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--secondary-color);
	text-decoration: none;
	text-transform: uppercase;
	transition: var(--transition);
	font-family: 'Commissioner', sans-serif;
}

.nav-logo a:hover {
	color: var(--primary-color);
	transform: translateY(-2px);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1rem;
	position: relative;
	z-index: 70;
	text-align: center;
}

.nav-links a {
	background: none;
	color: var(--text-primary);
	text-decoration: none;
	margin-left: 1.5rem;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: var(--transition);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
	touch-action: manipulation;
	text-align: center;
	font-size: 0.85rem;
}

.nav-links a:hover {
	color: var(--secondary-color);
	background: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--border-color);
	color: var(--text-primary);
	font-size: 1.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition);
	line-height: 1;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}

.mobile-menu-toggle:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background: var(--bg-tertiary);
}

.mobile-menu-toggle:active {
	transform: scale(0.95);
}

/* #!SECTION: FOOTER */
.main-footer {
	background-color: var(--bg-secondary);
	padding: 3rem 2rem 0;
	/* Add padding top, remove bottom for the sub-footer */
	border-top: 1px solid var(--border-color);
	margin-top: 4rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	padding-bottom: 2rem;
}

.footer-column h3 {
	font-size: 1.2rem;
	color: var(--primary-color);
	margin-bottom: var(--spacing-md);
}

.footer-column p {
	color: var(--text-secondary);
	line-height: 1.7;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li a {
	color: var(--text-secondary);
	text-decoration: none;
	padding: 0.4rem 0;
	display: block;
	transition: var(--transition);
}

.footer-links li a:hover {
	background: none;
	border-left: 5px solid var(--primary-color);
	padding-left: 0.5rem;
	color: var(--primary-color);
	transform: translateX(5px);
}

.footer-bottom {
	text-align: center;
	padding: 1.5rem 0;
	margin-top: 2rem;
	border-top: 1px solid var(--border-color);
	color: var(--text-muted);
	font-size: 0.9rem;
}

.forum-main {
	background: var(--forum-bg);
	color: var(--forum-text);
	min-height: 100%;
	font-family: var(--font-family);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 1.5rem 1rem;
}

.forum-main section {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.forum-main .footer-content {
	margin-top: 2rem;
}

.forum-main section h1 {
	text-align: center;
	margin-bottom: 2rem;
}

/* Thread header uses its own left alignment for title */
.forum-main .thread-header h1 {
	text-align: left;
}

.forum-main section h2 {
	font-size: 1.5em;
	color: var(--forum-accent);
	background: var(--forum-accent);
	color: var(--forum-bg);
	padding: 0.5em 1em;
	border-radius: 6px;
	margin-bottom: 1em;
}

.btn.delete {
	background: rgba(239, 83, 80, 0.2);
	color: #ef5350;
	border: 1px solid #ef5350;
}

.btn.delete:hover {
	background: #ef5350;
	color: #fff;
	transform: translateY(-1px);
}

.btn.report {
	background: transparent;
	border: 1px solid var(--forum-border);
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.btn.report:hover {
	color: var(--forum-accent);
}

.thread-list, .post-list {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.thread-meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

.thread-meta form.inline-form {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.post-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 60px;
	flex-shrink: 0;
}

.thread-content, .post-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.thread-title {
	color: var(--forum-accent);
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1em;
	line-height: 1.3;
}

.thread-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: calc(100% - 40px);
}

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

.thread-image {
	max-width: 120px;
	border-radius: 6px;
	margin-top: 0.5em;
	align-self: flex-start;
}

/* Thread header layout (title + avatar + actions) */
.thread-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: var(--spacing-md);
}

.thread-header {
	padding: 1rem;
	border: 1px solid var(--forum-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
}

.thread-left {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.thread-submeta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.thread-avatar {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
}

.thread-author {
	font-size: var(--author-text-size);
	color: var(--author-text-color);
	margin-top: 4px;
}

.thread-author-block {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.thread-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--forum-border);
}

.thread-stats {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--forum-muted);
	font-size: 0.875rem;
}

.stat-item i {
	color: var(--primary-color);
}

.thread-date {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.thread-controls {
	display: flex;
	gap: 0.6rem;
	align-items: center;
}

.thread-header-section {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto 1.5rem;
	padding: 0 var(--container-padding);
}

.thread-breadcrumb {
	margin-bottom: var(--spacing-md);
}

.thread-breadcrumb ol {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.thread-breadcrumb li {
	display: flex;
	align-items: center;
}

.thread-breadcrumb li:not(:last-child)::after {
	content: '/';
	margin-left: 0.5rem;
	color: var(--forum-muted);
}

.thread-breadcrumb a {
	color: var(--forum-accent);
	text-decoration: none;
	transition: opacity 0.2s;
}

.thread-breadcrumb a:hover {
	opacity: 0.8;
}

.thread-breadcrumb li[aria-current="page"] {
	color: var(--forum-muted);
}

.thread-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

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

.thread-header-actions {
	display: flex;
	gap: 0.6rem;
	align-items: center;
}

.subscribe-btn {
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.thread-main-title h1 {
	margin: 0;
	font-size: 1.6rem;
}

.thread-left h1 {
	margin: 0;
}

/* Recent Posts Sidebar Styling */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 14px;
}

#recent-posts-list .post-card {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	border-radius: 8px;
	padding: 0.75rem;
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	transition: all 0.2s ease;
	cursor: pointer;
}

#recent-posts-list .post-card:hover {
	border-color: var(--primary-color);
	background: rgba(227, 252, 2, 0.05);
	transform: translateX(2px);
}

#recent-posts-list .post-meta {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	flex-shrink: 0;
}

#recent-posts-list .post-meta img {
	display: flex;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--forum-border);
}

#recent-posts-list .thread-content {
	flex: 1;
	min-width: 0;
}

#recent-posts-list .post-card .thread-title {
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
	color: var(--primary-color);
	font-weight: 600;
}

#recent-posts-list .post-card .thread-title:hover {
	text-decoration: underline;
}

#recent-posts-list .thread-author {
	font-size: 0.75rem;
	color: var(--forum-muted);
}

/* Markdown rendered content */
.forum-post-content ul,
.forum-post-content ol,
.forum-post-content blockquote,
.forum-post-content pre {
	margin-left: 0;
	padding-left: 1rem;
}

.forum-post-content ul li,
.forum-post-content ol li {
	margin: 0.25rem 0;
}

.forum-post-content blockquote {
	border-left: 4px solid var(--primary-color);
	padding: 0.5rem 1rem;
	background: rgba(227, 252, 2, 0.05);
	margin: 0.75rem 0;
	font-style: italic;
	color: var(--forum-muted);
}

.forum-code {
	background: #0a0a0a;
	border: 1px solid var(--forum-border);
	border-radius: 6px;
	padding: 1rem;
	overflow-x: auto;
	margin: 0.75rem 0;
	color: #e0e0e0;
	font-family: 'Courier New', monospace;
	font-size: 0.875rem;
}

.forum-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.forum-table th,
.forum-table td {
	border: 1px solid var(--forum-border);
	padding: 0.75rem;
	text-align: left;
}

.forum-table th {
	background: rgba(227, 252, 2, 0.1);
	font-weight: 600;
}

.thread-links {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	margin: 0.8rem 0;
}

.thread-links a.btn {
	display: inline-block;
	width: auto;
}

.pinned-label {
	color: #e91e63;
	font-weight: bold;
	margin-left: 0.5em;
	font-size: 0.9em;
}

.comment-card.pinned {
	border-left: 4px solid var(--forum-accent);
	background: rgba(233, 30, 99, 0.03);
}

.comment-header .pinned-label {
	font-weight: 700;
	color: var(--forum-accent);
	margin-left: 0.5rem;
}

.create-thread {
	text-align: center;
	margin: 2em 0;
}

.live-search-box {
	width: 100%;
	padding: 0.75em;
	border-radius: 6px;
	border: 1px solid var(--forum-border);
	margin-bottom: 1em;
	background: var(--forum-card);
	color: var(--forum-text);
	font-size: 1em;
}

.live-search-box:focus {
	outline: none;
	border-color: var(--forum-accent);
	box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

/* #!SECTION: RESPONSIVE DESIGN ENHANCEMENTS */
/* Mobile-first approach with progressive enhancement */

/* Base mobile styles */
.forum-main {
	padding: 1rem 0.5rem;
}

.forum-grid {
	grid-template-columns: 1fr;
}

/* Tablet - 768px and up */
@media (min-width: 768px) {
	.forum-main {
		padding: 1.5rem 1rem;
	}

	.forum-grid {
		grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	}

	.forum-layout-two-col {
		grid-template-columns: 1fr;
	}
}

/* Desktop - 1100px and up */
@media (min-width: 1100px) {
	.forum-main {
		padding: 2rem 1.5rem;
	}

	.forum-grid {
		grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
		gap: 2rem;
	}

	.forum-layout-two-col {
		grid-template-columns: 2fr 1fr;
	}

	.forum-sidebar {
		position: sticky;
		top: calc(var(--navbar-height, 64px) + 1rem);
		max-height: calc(100vh - calc(var(--navbar-height, 64px) + 2rem));
		overflow-y: auto;
	}
}

/* Large desktop - 1400px and up */
@media (min-width: 1400px) {
	.forum-grid {
		grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
		gap: 2.5rem;
	}

	.forum-layout-two-col {
		gap: 2.5rem;
	}
}

/* Extra large desktop - 1600px and up */
@media (min-width: 1600px) {
	.forum-container {
		max-width: 1600px;
	}

	.forum-grid {
		grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	}
}

/* Thread header responsive adjustments */
@media (max-width: 768px) {
	.thread-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.thread-meta {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
	}

	.thread-controls {
		flex-wrap: wrap;
		gap: 0.5rem;
	}
}

/* --- Forum form styles --- */


/**.forum-main input[type="text"],
.forum-main input[type="file"],
.forum-main textarea,
.forum-main select {
	width: 100%;
	padding: var(--form-input-padding);
	border: 1px solid var(--form-input-border);
	border-radius: var(--form-input-radius);
	font-size: var(--form-input-font-size);
	font-family: inherit;
	box-sizing: border-box;
	background: var(--bg-tertiary);
	color: var(--forum-text);
	resize: none;
}

.forum-main textarea {
	min-height: 160px;
} **/

.forum-post-form,
.comment-form,
.forum-form {
	display: block;
}

.forum-post-form.form-container {
	max-width: 840px;
	margin: 0.5rem auto;
}

.comment-form.form-container {
	max-width: 100%;
	margin: 0.25rem auto;
}

.forum-post-list {
	margin-bottom: 1.5rem;
}

.forum-post-card, .forum-comment-card {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	border-radius: 10px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
}

.moderation-tools {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

/* Post header layout: left meta (avatar + meta), right actions */
.post-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0;
	width: 100%;
	flex-wrap: wrap;
}

.post-meta-container {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	flex: 1;
	min-width: 0;
}

.post-number-badge {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.post-number {
	background: var(--primary-color);
	color: #000;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.9rem;
}

.post-author-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.post-author {
	font-weight: 600;
	color: var(--forum-text);
	display: block;
}

.post-date {
	font-size: 0.85rem;
	color: var(--forum-muted);
}

.forum-post-card.own-post {
	border-left: 4px solid var(--forum-accent);
}

.forum-post-list .forum-post-card {
	margin-bottom: 0;
}

.forum-post-list .forum-post-card > .post-header {
	order: 1;
}

.forum-post-list .forum-post-card > .post-content {
	order: 2;
}

.forum-post-list .forum-post-card > .post-comments {
	order: 3;
}

.comment-card {
	background: rgba(255, 255, 255, 0.02);
	margin-top: 1rem;
	padding-left: 2rem;
	border-left: 2px solid var(--forum-border);
}

.comment-header {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.9rem;
	width: 100%;
	flex-wrap: wrap;
}

.comment-meta-container {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	flex: 1;
	min-width: 0;
}

.comment-header .comment-actions {
	margin-left: auto;
}

.comment-meta {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	flex-wrap: wrap;
}

.comment-author-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.comment-author {
	font-weight: 600;
	color: var(--forum-text);
}

.comment-date {
	font-size: 0.8rem;
	color: var(--forum-muted);
}

.post-header .post-meta {
	align-items: center;
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.post-header .post-meta .avatar {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.post-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.post-header .post-actions {
	margin-left: auto;
}

.post-content {
	word-break: break-word;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

.comment-content {
	word-break: break-word;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

.post-content pre, .comment-content pre {
	overflow: auto;
	max-width: 100%;
}

/* Limit large images to keep layout stable */
.post-content img, .comment-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0.5rem 0;
	border-radius: 6px;
}

@media (max-width: 768px) {
	.thread-card, .post-card {
		grid-template-columns: 40px 1fr;
		gap: 0.6rem;
	}

	.forum-post-card, .forum-comment-card {
		grid-template-columns: 40px 1fr;
		gap: 0.6rem;
	}

	.post-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}

	.post-actions {
		align-self: flex-start;
	}

	.comment-card {
		grid-template-columns: 36px 1fr;
	}
}

/* Polished sections inside the combined right-rail card */
.right-rail-card h3, .right-rail-card h4 {
	margin: auto;
	color: var(--forum-accent);
	line-height: 1.2;
	font-size: 20px;
}

.right-rail-card hr {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	margin: 0.75rem 0;
	opacity: 0.8;
}

.right-rail-card .section {
	padding: 0.5rem 0;
}

.right-rail-card .thread-controls {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

p.muted {
	margin-bottom: 5px;
}

/* Make the left thread card visually consistent and give breathing room */
.forum-left-column .right-rail-card {
	margin-bottom: var(--spacing-md);
	padding-bottom: 0.5rem;
}

/* Accent and divider polish for right-rail card actions */

.right-rail-card .btn {
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	width: 100%;
}

.right-rail-card .btn:not(.delete):not(.primary-action):hover {
	background: var(--forum-accent);
	color: var(--forum-bg);
	border-color: var(--forum-accent);
}

.right-rail-card .btn.delete {
	background: rgba(239, 83, 80, 0.2);
	color: #ef5350;
	border-color: #ef5350;
}

.right-rail-card .btn.delete:hover {
	background: #ef5350;
	color: #fff;
	border-color: #ef5350;
	transform: translateY(-1px);
}

.right-rail-card .btn.primary-action {
	background: var(--forum-accent);
	color: var(--forum-bg);
	border-color: var(--forum-accent);
	font-weight: 600;
}

.right-rail-card .btn.primary-action:hover {
	filter: brightness(0.9);
	transform: translateY(-1px);
}

.right-rail-card .related-threads-list,
.right-rail-card .recent-posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.right-rail-card .related-threads-list li,
.right-rail-card .recent-posts-list li {
	margin: 0 0 0.65rem 0;
	padding: 0.75rem 0.9rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
	overflow: hidden;
}

.right-rail-card .related-threads-list li:hover,
.right-rail-card .recent-posts-list li:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.right-rail-card .related-threads-list li a,
.right-rail-card .recent-posts-list li a {
	color: var(--forum-accent);
	text-decoration: none;
	display: block;
	font-size: 0.95rem;
	line-height: 1.5;
	transition: color 0.2s ease;
	word-break: break-word;
	overflow-wrap: break-word;
}

.right-rail-card .related-threads-list li:hover a,
.right-rail-card .recent-posts-list li:hover a {
	filter: brightness(1.15);
}

/*hr {
	border-top: 1px solid rgba(255, 255, 255, 0.025);
	width: 100%;
}*/

/* Subtle separators between conceptual sections when hr not present */
.right-rail-card>h4+.section, .right-rail-card>.section+.section {
	border-top: 1px solid rgba(255, 255, 255, 0.025);
	padding-top: 0.65rem;
	margin-top: 0.6rem;
}

@media (max-width: 700px) {
	.right-rail-card {
		padding: 0.65rem;
	}

	.right-rail-card .thread-controls {
		gap: 0.4rem;
	}

	.right-rail-card .btn {
		font-size: 0.95rem;
		padding: 0.45rem 0.9rem;
	}

	/* report modal */
	.report-modal {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.6);
		align-items: center;
		justify-content: center;
		z-index: 99999;
	}

	.report-modal.open {
		display: flex;
	}

	.report-modal-content {
		background: var(--forum-card);
		padding: var(--spacing-md);
		width: 100%;
		max-width: 640px;
		border-radius: 10px;
		border: 1px solid var(--forum-border);
	}

	.report-modal .report-close {
		float: right;
		background: none;
		border: none;
		color: var(--text-secondary);
		font-size: 1.25rem;
		cursor: pointer;
	}

	.report-modal .report-submit {
		margin-left: 0.5rem;
	}

	/* toast style, lightweight */
	#toast-container {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 99999;
	}

	.toast {
		padding: 0.6rem 0.9rem;
		color: #fff;
		border-radius: 6px;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	}

	.toast.info {
		background: rgba(0, 0, 0, 0.75);
	}

	.toast.success {
		background: linear-gradient(90deg, #4caf50, #66ff99);
	}

	.toast.error {
		background: linear-gradient(90deg, #ef5350, #ff8a65);
	}
}

.thread-meta .avatar,
.post-meta .avatar {
	border-radius: 50%;
}

.forum-table {
	width: 100%;
	border-collapse: collapse;
}

.forum-table th,
.forum-table td {
	border: 1px solid var(--forum-border);
	padding: 0.5rem;
	text-align: left;
}

.mod-log-table th, .mod-log-table td {
	padding: .45rem .75rem;
}

.mod-log-table tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.forum-pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin: 1rem 0;
}

.forum-pagination .btn {
	background: transparent;
	border: 1px solid var(--forum-border);
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
}

.forum-pagination .btn.active {
	background: var(--forum-accent);
	color: var(--forum-bg);
	border-color: var(--forum-accent);
}

.forum-code {
	background: rgba(0, 0, 0, 0.6);
	padding: 0.75rem;
	border-radius: 6px;
	color: var(--text-primary);
	overflow-x: auto;
}

.mention {
	color: var(--forum-accent);
	font-weight: 700;
}

.forum-main .error-box {
	margin-bottom: var(--spacing-md);
}

.forum-post-image img,
.thread-image img,
.post-image img,
.comment-image img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.post-signature {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--forum-border);
	color: var(--forum-text);
	font-size: 0.9rem;
}

.post-author, .comment-author {
	font-weight: 700;
	color: var(--forum-accent);
}

.post-date, .comment-date {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.post-header .post-actions .btn {
	padding: 10px;
	font-size: 0.9rem;
}

.post-actions .btn {
	white-space: nowrap;
}

.comment-card .comment-header .comment-author {
	font-weight: 700;
}

.comment-content, .post-content {
	line-height: 1.6;
	color: var(--forum-text);
	font-size: 1rem;
}

/* Inline form for moderation buttons */
.inline-form {
	display: inline;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

.thread-controls > form.inline-form {
	display: inline;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	width: 100%;
}

/* File input replacement styles (re-using style.css basics) */
.custom-file-upload {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--forum-border);
	border-radius: 8px;
	color: var(--forum-text);
}

.char-counter {
	color: var(--text-secondary);
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

.char-counter.small {
	font-size: 0.8rem;
}

.char-counter.muted {
	color: var(--text-muted);
}

/* Smaller heading accents */
.forum-main h1 {
	font-size: 1.8rem;
	margin-bottom: 0.75rem;
}

.forum-main h2 {
	font-size: 1.25rem;
	/*margin-top: 1.25rem;*/
}

.no-posts {
	color: var(--text-secondary);
	margin: 1rem 0;
}

@media (max-width: 769px) {
	body {
		overflow-x: hidden;
	}

	/* Navigation */
	.main-header {
		padding: 1rem;
		position: sticky;
		top: 0;
		z-index: 100;
		background-color: var(--bg-secondary);
	}

	.main-nav {
		width: 100%;
		max-width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		padding: 0;
		position: relative;
	}

	.nav-logo {
		flex: 1;
	}

	.nav-logo a {
		font-size: 1.25rem;
	}

	.nav-links {
		position: relative;
		z-index: 102;
	}

	/* Show hamburger menu on mobile */
	.mobile-menu-toggle {
		display: flex;
		order: 2;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		gap: 0.5rem;
		width: calc(100vw - 2rem);
		max-width: 100%;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		background: var(--bg-secondary);
		padding: 1rem;
		border-top: 1px solid var(--border-color);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
		z-index: 99;
		margin-top: 1rem;
		box-sizing: border-box;
	}

	/* Show nav when active */
	.nav-links.active {
		display: flex;
	}

	.nav-links a {
		margin: 0;
		padding: 0.875rem 1rem;
		text-align: center;
		background: var(--bg-tertiary);
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--text-primary);
		text-decoration: none;
		font-weight: 500;
		transition: var(--transition);
		cursor: pointer;
		user-select: none;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
		touch-action: manipulation;
		min-height: 48px;
		line-height: 1.4;
		font-size: 15px;
		border: 1px solid var(--border-color);
		width: 100%;
	}

	.nav-links a:hover,
	.nav-links a:focus,
	.nav-links a:active {
		background: var(--bg-primary);
		color: var(--primary-color);
		transform: translateY(-2px);
		box-shadow: 0 2px 8px rgba(227, 252, 2, 0.3);
		border-color: var(--primary-color);
	}
}

/* Button modern styles (override) */
.btn,
button {
	background: var(--forum-card);
	color: var(--forum-text);
	border: 1px solid var(--forum-border);
	border-radius: 10px;
	padding: var(--btn-padding-vertical) var(--btn-padding-horizontal);
	font-size: var(--btn-font-size);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 40px;
	text-decoration: none;
	text-align: center;
	font-family: inherit;
	line-height: 1.4;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.03);
	transform: translateY(-1px);
}

/* Icon sizing and label alignment inside buttons */
.btn .icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
	fill: currentColor;
}

.btn .btn-label {
	vertical-align: middle;
}

/* Primary action (strong visual) */
.btn.primary-action {
	background: var(--forum-accent);
	color: var(--forum-bg);
	border-color: var(--forum-accent);
	box-shadow: 0 10px 24px rgba(233, 30, 99, 0.12);
}

.btn.primary-action:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

/* Card base for consistent panels */
.card, .right-rail-card, .thread-card, .post-card, .forum-post-card, .forum-comment-card, .add-post-card {
	border-radius: var(--card-radius) !important;
	padding: var(--card-padding) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
	border: 1px solid var(--forum-border) !important;
}

/* Thread main title at top */
.thread-main-title {
	font-size: 2rem;
	margin: 0 0 2rem 0;
	color: var(--forum-accent);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 1400px;
}

/* Pin label */
.pinned-label {
	color: var(--forum-accent);
	font-weight: 700;
	font-size: 0.95rem;
}

/* Two-column grid adjustments */
.forum-thread-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	width: 100%;
	max-width: 1400px;
	gap: 2rem;
	align-items: start;
}

.forum-left-column {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.forum-left-column .left-column-card {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	padding: var(--card-padding);
	border-radius: var(--card-radius);
	margin-bottom: var(--spacing-md);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.forum-left-column .left-column-card h2 {
	margin-top: 0;
	margin-bottom: var(--spacing-md);
	color: var(--forum-accent);
	font-size: 1.25rem;
}

.forum-right-rail {
	width: 100%;
	box-sizing: border-box;
	position: sticky;
	top: calc(var(--navbar-height, 64px) + 1rem);
	overflow-y: auto;
}

/* Headings and typography */
.forum-main h1 {
	font-size: 1.9rem;
	margin-bottom: 1.5rem;
}

.forum-main h2 {
	font-size: 1.25rem;
	color: var(--forum-accent);
}

.forum-post-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.right-rail-card h3, .right-rail-card h4 {
	font-weight: 700;
}

/* Constrain media inside cards */
.thread-image img, .post-image img, .comment-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Right rail card styling for thread page */
.right-rail-card {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	padding: 1rem;
	border-radius: var(--card-radius);
	margin-bottom: 1.5rem;
}

.right-rail-card h3 {
	margin-top: 0;
	margin-bottom: var(--spacing-md);
	color: var(--forum-accent);
	font-size: 1.1rem;
}

.right-rail-card h4 {
	margin: 1rem 0 0.5rem 0;
	color: var(--forum-accent);
	font-size: 0.95rem;
}

/* Comment form styling */
.comment-form {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--forum-border);
	padding: 1rem;
	border-radius: var(--card-radius);
	margin-top: 1rem;
}

.post-comments {
	margin-top: 1.5rem;
	border-top: 1px solid var(--forum-border);
	padding-top: 1.5rem;
}

/* Responsive behavior: collapse right rail below 1100px */
@media (max-width: 1100px) {
	.forum-thread-layout {
		grid-template-columns: 1fr;
	}

	.forum-right-rail {
		position: static;
		width: 100%;
		max-height: none;
	}
}

@media (max-width: 700px) {
	.btn {
		min-height: 36px;
		font-size: 0.95rem;
	}

	.post-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.post-meta-container {
		flex-direction: column;
		gap: 0.5rem;
	}

	.post-header .post-actions {
		margin-left: 0;
		align-self: flex-start;
		width: 100%;
	}

	.thread-header-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.thread-header-actions {
		width: 100%;
	}

	.thread-breadcrumb ol {
		font-size: 0.8rem;
	}

	.forum-thread-layout {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.forum-right-rail {
		position: static;
		width: 100%;
		max-height: none;
	}

	.comment-card {
		padding-left: 1rem;
		margin-top: 0.75rem;
	}

	.comment-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.comment-header .comment-actions {
		margin-left: 0;
		margin-top: 0.5rem;
		width: 100%;
	}
}

/* Utility: full-width primary action if desired */
.btn.full-width {
	width: 100%;
	justify-content: center;
}

/* Small helpers for consistent spacing in right rail */
.right-rail-card .section {
	margin-bottom: 0.6rem;
}

/* #!SECTION: LOADING STATES */
/* Loading skeleton states */
.loading-skeleton {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
	background-size: 200% 100%;
	animation: loading 1.5s ease-in-out infinite;
	border-radius: 8px;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

.skeleton-card {
	height: 80px;
	margin-bottom: var(--spacing-md);
}

.skeleton-text {
	height: 16px;
	margin-bottom: 0.5rem;
	border-radius: 4px;
}

.skeleton-title {
	height: 24px;
	width: 60%;
	margin-bottom: 0.75rem;
	border-radius: 6px;
}

/* Error states */
.error-state {
	text-align: center;
	padding: 2rem;
	color: var(--error-color);
	background: rgba(239, 83, 80, 0.05);
	border: 1px dashed rgba(239, 83, 80, 0.2);
	border-radius: 12px;
}

.error-state i {
	font-size: 3rem;
	margin-bottom: var(--spacing-md);
	opacity: 0.7;
}

.retry-button {
	margin-top: 1.5rem;
	background: var(--error-color);
	color: white;
}

.retry-button:hover {
	background: #d32f2f;
	transform: translateY(-2px);
}

/* #!SECTION: ACCESSIBILITY ENHANCEMENTS */
/* Focus states for keyboard navigation */
.btn:focus,
.thread-card:focus,
.post-card:focus,
.live-search-box:focus {
	outline: 2px solid var(--forum-accent);
	outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--forum-accent);
	color: var(--forum-bg);
	padding: 0.75rem 1.5rem;
	z-index: 100;
	border-radius: 0 0 8px 8px;
}

.skip-to-content:focus {
	left: 0;
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}

	.live-search-box:focus {
		box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
	}
}

/* High contrast mode */
@media (forced-colors: active) {
	.forum-main {
		forced-color-adjust: none;
		background: Canvas !important;
		color: CanvasText !important;
	}

	.thread-card,
	.post-card {
		border: 2px solid ButtonBorder !important;
	}

	.thread-title,
	.post-title {
		color: LinkText !important;
	}
}

/* #!SECTION: PERFORMANCE OPTIMIZATIONS */
/* Will-change for elements that will be animated */
.thread-card,
.post-card,
.btn {
	will-change: transform, opacity;
}

/* Contain layout for better performance */
.thread-list,
.post-list {
	contain: layout;
}

/* Optimize images with modern formats */
.thread-image,
.post-image {
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* Preload critical resources */
@font-face {
	font-family: 'Segoe UI';
	src: local('Segoe UI'), local('SegoeUI'), local('Segoe UI Regular');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ============================================================================
   REPORT MODAL STYLES
   ============================================================================ */

.report-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.report-modal[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.report-modal[aria-hidden="true"] {
	pointer-events: none;
}

.report-modal-content {
	background: var(--forum-card);
	border: 1px solid var(--forum-border);
	border-radius: 12px;
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	position: relative;
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.report-modal-content h3 {
	color: var(--forum-accent);
	margin-top: 0;
	margin-bottom: var(--spacing-md);
	font-size: 1.5rem;
}

.report-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--forum-text);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.report-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--forum-accent);
}

.report-modal-content .form-group {
	margin-bottom: 1.5rem;
}

.report-modal-content label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--forum-text);
	font-weight: 600;
}

.report-modal-content textarea {
	width: 100%;
	background: var(--bg-tertiary);
	color: var(--forum-text);
	border: 1px solid var(--forum-border);
	border-radius: 8px;
	padding: 0.75rem;
	font-family: inherit;
	font-size: 1rem;
	resize: vertical;
	min-height: 120px;
}

.report-modal-content textarea:focus {
	outline: none;
	border-color: var(--forum-accent);
	box-shadow: 0 0 0 2px rgba(227, 252, 2, 0.1);
}

.report-modal-content .form-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}

.report-modal-content .btn {
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	border: 1px solid var(--forum-border);
	background: transparent;
	color: var(--forum-text);
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 1rem;
}

.report-modal-content .btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--forum-accent);
	color: var(--forum-accent);
}

.report-modal-content .report-submit {
	background: var(--forum-accent);
	color: #000;
	border-color: var(--forum-accent);
	font-weight: 600;
}

.report-modal-content .report-submit:hover {
	background: rgba(227, 252, 2, 0.9);
	filter: brightness(1.1);
}

@media (max-width: 600px) {
	.report-modal-content {
		padding: 1.5rem;
		margin: 1rem;
	}

	.report-modal-content h3 {
		font-size: 1.25rem;
	}

	.report-modal-content .form-actions {
		flex-direction: column;
	}

	.report-modal-content .btn {
		width: 100%;
	}
}

/* Forum Header Styles */
.forum-header-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.forum-filter-banner {
	background: rgba(227, 252, 2, 0.1);
	border: 1px solid rgba(227, 252, 2, 0.3);
	padding: 0.75rem 1.5rem;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.forum-filter-banner .filter-text {
	color: #fff;
}

.forum-filter-banner .filter-text strong {
	color: #E3FC02;
	font-weight: 600;
}

.forum-filter-banner .filter-clear-link {
	color: #E3FC02;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.forum-filter-banner .filter-clear-link:hover {
	color: #B8D002;
	text-decoration: none;
}

@media (max-width: 600px) {
  .forum-main { padding: 0.5rem; }
  .post-header { flex-direction: column; gap: 0.5rem; }
  .post-actions { width: 100%; }
}