/*-------------------------------------------------------------------------*/
/* Forum
/*-------------------------------------------------------------------------*/
.forum-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 18px;
}

.forum-main,
.forum-sidebar {
	min-width: 0;
}

.forum-category,
.forum-panel,
.forum-section-intro,
.forum-form-panel,
.forum-reply-box,
.forum-post {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(18, 15, 12, 0.52);
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.32), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.forum-category + .forum-category,
.forum-post + .forum-post,
.forum-reply-box {
	margin-top: 14px;
}

.forum-category-head,
.forum-panel > header,
.forum-post-body > header {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 9px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(72, 52, 38, 0.5);
	color: #eadfd4;
}

.forum-category-head h3,
.forum-panel > header,
.forum-post-body h3,
.forum-section-intro h3,
.forum-reply-box h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
}

.forum-table {
	display: grid;
}

.forum-row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 90px minmax(180px, 0.55fr);
	gap: 12px;
	align-items: center;
	min-height: 74px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: #d6cbc0;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.forum-topic-row {
	grid-template-columns: 48px minmax(0, 1fr) 90px;
}

.forum-row:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.forum-row:last-child {
	border-bottom: 0;
}

.forum-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: #bca58d;
	font-size: 1.35rem;
}

.forum-icon span {
	display: block;
	width: 38px;
	height: 38px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.forum-icon.is-topic {
	color: #c4aa88;
}

.forum-row-main,
.forum-count,
.forum-last,
.forum-activity li {
	min-width: 0;
}

.forum-row-main strong,
.forum-last strong,
.forum-activity a {
	display: block;
	overflow: hidden;
	color: #f0e4d6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.forum-row-main small,
.forum-count small,
.forum-last small,
.forum-activity span,
.forum-activity small {
	display: block;
	overflow: hidden;
	color: #9f9184;
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.forum-count {
	text-align: center;
}

.forum-count strong,
.forum-stats strong {
	display: block;
	color: #00aeff;
	font-size: 1.1rem;
}

.forum-panel {
	padding-bottom: 10px;
}

.forum-panel p,
.forum-empty {
	margin: 0;
	padding: 14px;
	color: #b9aa9b;
}

.forum-activity {
	margin: 0;
	padding: 4px 12px 0;
	list-style: none;
}

.forum-activity li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-activity li:last-child {
	border-bottom: 0;
}

.forum-stats div {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 12px;
	text-align: center;
}

.forum-stats span {
	color: #a99786;
	font-size: 0.8125rem;
}

.forum-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.forum-identity-modal form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin: 12px 0 0;
}

.forum-identity-modal .form-control {
	min-width: 220px;
	margin: 0;
	background-color: rgba(0, 0, 0, 0.24);
	color: #eee;
}

.forum-identity-modal p {
	margin: 0;
	color: #ad9e91;
	font-size: 0.925rem;
	line-height: 1.5;
}

.forum-identity-swal {
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(18, 15, 12, 0.96) !important;
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.32), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
	color: #d8cec4 !important;
}

.forum-identity-swal .swal2-title {
	color: #f0e4d6;
	font-size: 1.2rem;
	text-transform: uppercase;
}

.forum-identity-swal .swal2-html-container {
	color: #d8cec4;
}

.forum-staff-identity {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.forum-staff-identity label,
.forum-identity-empty {
	color: #cdbca9;
	font-size: 0.8125rem;
}

.forum-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 34px;
	padding: 7px 12px;
	border: 1px solid rgba(0, 174, 255, 0.3);
	background: rgba(0, 94, 148, 0.18);
	color: #d8ecff;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.forum-button:hover {
	background: rgba(0, 174, 255, 0.25);
	color: #fff;
}

.forum-button.is-muted {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: #c7b8aa;
}

.forum-button.is-danger {
	border-color: rgba(255, 75, 68, 0.36);
	background: rgba(255, 75, 68, 0.12);
	color: #ffd3d1;
}

.forum-section-intro {
	margin-bottom: 12px;
	padding: 14px;
}

.forum-section-intro h3 {
	color: #f0e4d6;
}

.forum-section-intro p {
	margin: 5px 0 0;
	color: #ad9e91;
}

.forum-post {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
}

.forum-author {
	padding: 16px 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
	text-align: center;
}

.forum-author img {
	width: 74px;
	height: 74px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	object-fit: cover;
}

.forum-author strong,
.forum-author span,
.forum-author small {
	display: block;
	margin-top: 6px;
}

.forum-author strong {
	color: #f0e4d6;
}

.forum-author strong a {
	color: inherit;
	text-decoration: none;
}

.forum-author span {
	color: #a89582;
	font-size: 0.8125rem;
}

.forum-author.is-staff span {
	color: #ffb65d;
}

.forum-author.is-deleted img {
	filter: grayscale(1) saturate(0.2);
	opacity: 0.62;
}

.forum-author.is-deleted strong,
.forum-author.is-deleted span {
	color: #8d8580;
}

.forum-author small {
	color: #8d8075;
	font-size: 0.75rem;
}

.forum-author em {
	display: block;
	margin-top: 8px;
	color: #7fb9df;
	font-size: 0.6875rem;
	font-style: normal;
}

.forum-post-body {
	min-width: 0;
}

.forum-post-body > header {
	justify-content: space-between;
}

.forum-post-body > header span {
	flex: 0 0 auto;
	color: #9f9184;
	font-size: 0.8125rem;
}

.forum-post-content {
	padding: 16px;
	color: #d8cec4;
	line-height: 1.65;
}

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

.forum-inline-action {
	display: inline-flex;
	gap: 6px;
	margin: 0 16px 16px;
	color: #ffb6b2;
	font-size: 0.8125rem;
}

.forum-form-panel,
.forum-reply-box {
	padding: 16px;
}

.forum-form-panel label,
.forum-reply-box label {
	display: block;
	margin: 0 0 6px;
	color: #cdbca9;
	font-weight: 700;
}

.forum-form-panel .form-control,
.forum-reply-box .form-control {
	margin-bottom: 12px;
	background-color: rgba(0, 0, 0, 0.24);
	color: #eee;
}

.forum-textarea {
	min-height: 160px;
	resize: vertical;
}

.forum-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 4px 0 14px;
}

.forum-admin-nav {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.forum-admin-nav a {
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	text-decoration: none;
}

.forum-admin-nav a.is-active {
	border-color: rgba(0, 174, 255, 0.3);
	background: rgba(0, 174, 255, 0.14);
	color: #fff;
}

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

	.forum-row,
	.forum-topic-row {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.forum-count,
	.forum-last {
		grid-column: 2;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.forum-post {
		grid-template-columns: 1fr;
	}

	.forum-author {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

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