/* =============================================================================
   Forum Module Stylesheet
   Thunder-WoW Theme - matches vote/armory style
   ============================================================================= */

/* =============================================================================
   Layout
   ============================================================================= */

.forum-layout {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.forum-layout__main {
	flex: 1;
	min-width: 0;
}

.forum-layout__sidebar {
	width: 150px;
	flex-shrink: 0;
}

@media (max-width: 760px) {
	.forum-layout {
		flex-direction: column;
	}
	.forum-layout__sidebar {
		width: 100%;
	}
}

/* =============================================================================
   Section card
   ============================================================================= */

.forum-section {
	background: linear-gradient(to bottom, #1e0e04 0%, #130a01 100%);
	border: 1px solid #40220a;
	border-radius: 3px;
	margin-bottom: 14px;
	overflow: hidden;
}

.forum-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 16px;
	background: rgba(0, 0, 0, 0.3);
	border-bottom: 1px solid #40220a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d79602;
	font-family: 'Cinzel', 'Calibri', serif;
}

.forum-section__body {
	padding: 14px 16px;
}

/* =============================================================================
   Table
   ============================================================================= */

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

.forum-table td {
	padding: 9px 12px;
	border-bottom: 1px solid rgba(64, 34, 10, 0.4);
	font-size: 12px;
	color: #c1b575;
	vertical-align: middle;
}

.forum-table tr:last-child td {
	border-bottom: none;
}

.forum-table tr:hover td {
	background: rgba(215, 150, 2, 0.04);
}

.forum-table a {
	color: #c1b575;
	text-decoration: none;
}

.forum-table a:hover {
	color: #d79602;
}

.forum-table__icon {
	width: 40px;
	text-align: center;
}

.forum-table__count {
	width: 80px;
	text-align: center;
}

.forum-table__count strong {
	display: block;
	font-size: 14px;
	color: #d79602;
}

.forum-table__date {
	width: 100px;
	text-align: right;
	color: #8a7a4a;
	font-size: 11px;
	white-space: nowrap;
}

.forum-table__last {
	width: 120px;
}

.forum-table__empty td {
	text-align: center;
	color: #8a7a4a;
	font-style: italic;
	padding: 18px;
}

/* =============================================================================
   Forum section icon
   ============================================================================= */

.forum-icon {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 3px;
	background-size: cover;
	background-position: center;
	background-color: #1a0a00;
	border: 1px solid #40220a;
	vertical-align: middle;
}

/* =============================================================================
   Topic title / meta
   ============================================================================= */

.forum-topic-title {
	font-size: 13px;
	color: #c1b575;
}

.forum-topic-title a {
	color: #c1b575;
	text-decoration: none;
}

.forum-topic-title a:hover {
	color: #d79602;
}

.forum-topic-meta {
	font-size: 11px;
	color: #8a7a4a;
	margin-top: 2px;
}

/* Description text below section name on the forum index */
.forum-section-desc {
	font-size: 11px;
	color: #6e6040;
	margin-top: 3px;
}

/* News article content (preserves HTML from TinyMCE) */
.forum-news-content img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
	margin: 6px 0;
}

/* News image gallery */
.forum-news-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.forum-news-gallery a {
	display: block;
	flex: 0 0 auto;
}

.forum-news-gallery img {
	width: 120px;
	height: 80px;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid #40220a;
	transition: border-color 0.2s;
}

.forum-news-gallery img:hover {
	border-color: #8a5a10;
}

/* Embedded video */
.forum-news-video {
	margin-top: 12px;
}

.forum-news-video iframe {
	width: 100%;
	max-width: 640px;
	height: 360px;
	border: 1px solid #40220a;
	border-radius: 3px;
}

/* =============================================================================
   Author labels
   ============================================================================= */

.forum-staff {
	color: #d79602;
	font-weight: bold;
}

.forum-member {
	color: #c1b575;
}

.forum-pin {
	color: #d79602;
	font-size: 10px;
}

/* =============================================================================
   Sidebar: stats
   ============================================================================= */

.forum-stats {
	display: flex;
	gap: 20px;
	justify-content: center;
	padding: 4px 0;
}

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

.forum-stats__number {
	display: block;
	font-size: 20px;
	font-weight: bold;
	color: #d79602;
	text-shadow: 0 0 8px rgba(215, 150, 2, 0.3);
}

.forum-stats__label {
	font-size: 10px;
	color: #8a7a4a;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* =============================================================================
   Sidebar: last activity list
   ============================================================================= */

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

.forum-activity-list li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(64, 34, 10, 0.4);
}

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

.forum-activity-list a {
	display: block;
	color: #c1b575;
	text-decoration: none;
	font-size: 12px;
	margin-bottom: 3px;
}

.forum-activity-list a:hover {
	color: #d79602;
}

.forum-activity__by {
	font-size: 11px;
	color: #8a7a4a;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.forum-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 14px;
	border-radius: 3px;
	border: 1px solid #40220a;
	background: linear-gradient(to bottom, #241309 0%, #1b110b 100%);
	color: #d79602;
	font-family: 'Cinzel', 'Calibri', serif;
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: url(/application/themes/thunder-wow/images/cursor-link-new.gif), pointer;
	transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
	white-space: nowrap;
}

.forum-btn:hover {
	border-color: #8a5a10;
	color: #ffbd26;
	box-shadow: 0 0 10px rgba(215, 150, 2, 0.3);
	text-decoration: none;
}

.forum-btn--danger {
	color: #c04040;
	border-color: #5a1a1a;
}

.forum-btn--danger:hover {
	border-color: #8a2020;
	color: #e05050;
	box-shadow: 0 0 10px rgba(192, 64, 64, 0.3);
}

.forum-btn--wide {
	width: 100%;
	justify-content: center;
	padding: 7px 14px;
	box-sizing: border-box;
}

/* =============================================================================
   Post card (topic + replies)
   ============================================================================= */

.forum-post {
	display: flex;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(64, 34, 10, 0.4);
}

.forum-post:last-child {
	border-bottom: none;
}

.forum-post__sidebar {
	width: 100px;
	flex-shrink: 0;
	text-align: center;
}

.forum-post__avatar {
	width: 60px;
	height: 60px;
	border-radius: 3px;
	border: 1px solid #40220a;
	margin: 0 auto 6px;
	overflow: hidden;
}

.forum-post__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.forum-post__author-name {
	display: block;
	font-size: 12px;
	font-weight: bold;
	color: #c1b575;
	margin-bottom: 3px;
	word-break: break-all;
}

.forum-post__author-name--staff {
	color: #d79602;
}

.forum-post__author-meta {
	display: block;
	font-size: 10px;
	color: #8a7a4a;
}

.forum-post__author-badge {
	display: inline-block;
	margin-top: 5px;
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d79602;
	font-family: 'Cinzel', serif;
}

.forum-post__body {
	flex: 1;
	min-width: 0;
}

.forum-post__date {
	display: block;
	font-size: 10px;
	color: #8a7a4a;
	margin-bottom: 8px;
}

.forum-post__content {
	font-size: 13px;
	color: #c1b575;
	line-height: 1.6;
	word-break: break-word;
}

.forum-post__actions {
	margin-top: 10px;
	text-align: right;
}

.forum-post__edited {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #2a1506;
	font-size: 11px;
	color: #8a7a4a;
	font-style: italic;
}

/* =============================================================================
   Reply form
   ============================================================================= */

.forum-reply-form {
	padding: 14px 16px;
}

.forum-reply-form textarea {
	width: 100%;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid #40220a;
	border-radius: 3px;
	color: #c1b575;
	padding: 8px;
	resize: vertical;
	font-size: 12px;
	box-sizing: border-box;
	margin-bottom: 10px;
}

/* =============================================================================
   Form inputs
   ============================================================================= */

.forum-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a7a4a;
	margin-bottom: 5px;
}

.forum-input {
	width: 100%;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid #40220a;
	border-radius: 3px;
	color: #c1b575;
	padding: 7px 10px;
	font-size: 12px;
	box-sizing: border-box;
	outline: none;
}

.forum-input:focus {
	border-color: #6e4010;
}

.forum-checkboxes {
	display: flex;
	gap: 20px;
	margin-top: 8px;
}

.forum-checkboxes label {
	font-size: 12px;
	color: #c1b575;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: url(/application/themes/thunder-wow/images/cursor-link-new.gif), pointer;
}

/* =============================================================================
   Custom modal overlay
   ============================================================================= */

.forum-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.82);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.forum-modal-overlay--open {
	display: flex;
}

.forum-modal {
	background: linear-gradient(to bottom, #1e0e04 0%, #130a01 100%);
	border: 1px solid #40220a;
	border-radius: 3px;
	width: 560px;
	max-width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
}

.forum-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: rgba(0, 0, 0, 0.3);
	border-bottom: 1px solid #40220a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d79602;
	font-family: 'Cinzel', serif;
}

.forum-modal__close {
	background: none;
	border: none;
	color: #8a7a4a;
	cursor: url(/application/themes/thunder-wow/images/cursor-link-new.gif), pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
}

.forum-modal__close:hover {
	color: #d79602;
}

.forum-modal__body {
	padding: 16px;
}

.forum-modal__body .forum-input {
	margin-bottom: 0;
}

.forum-modal__footer {
	padding: 10px 16px;
	border-top: 1px solid #40220a;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

/* =============================================================================
   Locked / notice box
   ============================================================================= */

.forum-notice {
	text-align: center;
	padding: 22px 16px;
	color: #8a7a4a;
}

.forum-notice h3 {
	color: #d79602;
	font-size: 13px;
	font-family: 'Cinzel', serif;
	margin: 0 0 8px;
	letter-spacing: 0.05em;
}

.forum-notice p {
	font-size: 12px;
	margin: 0 0 14px;
}

/* Pagination */
.forum-pagination {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 16px;
	justify-content: center;
}
.forum-pagination__btn {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}
.forum-pagination__btn--active {
	background: #8a5a10;
	color: #f5e6c8;
	border-radius: 4px;
	pointer-events: none;
}
.forum-pagination__ellipsis {
	color: #8a7a4a;
	padding: 0 4px;
	font-size: 12px;
}
