:root {
	--color-bg-page: #f0f2f5;
	--color-bg-card: #ffffff;
	--color-primary: #0f172a;
	--color-secondary: #475569;
	--color-text-dark: #1c1e21;
	--color-text-body: #65676b;
	--color-text-muted: #8a8d91;
	--color-indigo: #4f46e5;
	--color-blue: #1877f2;
	--color-green: #00a884;
	--color-orange: #f59e0b;
	--color-red: #ef4444;
	--color-border: #e4e6eb;
	--color-hover: #f2f2f2;
	--font-main: 'Geist', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--transition-smooth: all 0.2s ease-in-out;
	--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.1);
	--shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.forum-page-wrapper {
	background-color: var(--color-bg-page);
	min-height: 100vh;
	font-family: var(--font-main);
	color: var(--color-text-body);
	padding-left: 77px;
	padding-right: 77px;
	padding-top: 100px;
	padding-bottom: 80px;
}

.forum-header-section {
	background-color: transparent;
	padding: 0 0 24px 0;
	text-align: left;
}

.page-main-subtitle {
	font-size: 14.5px;
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.6;
	max-width: 750px;
}

.forum-list-body {
	position: relative;
	padding: 0;
}

.relative-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 !important;
}

.search-container-floating {
	width: 100%;
	margin-top: 10px;
	margin-bottom: 24px;
	max-width: 600px;
}

.search-and-controls-container {
	display: flex;
	align-items: center;
	gap: 15px;
	background: var(--color-bg-card);
	padding: 6px 16px;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-card);
	width: 100%;
	transition: var(--transition-smooth);
}

.search-and-controls-container:focus-within {
	border-color: #90949c;
	box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

.search-wrapper-relative {
	position: relative;
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.search-wrapper-relative .search-icon {
	position: absolute;
	left: 4px;
	color: var(--color-text-muted);
	font-size: 14px;
	pointer-events: none;
}

.search-input {
	width: 100%;
	height: 38px;
	padding: 5px 15px 5px 28px;
	border: none;
	background: transparent;
	color: var(--color-text-dark);
	font-size: 14px;
	outline: none;
}

.forum-feed {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.feed-card {
	background: var(--color-bg-card);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	border: 1px solid rgba(46, 56, 81, 0.05);
}

.feed-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 20px -3px rgba(46, 56, 81, 0.08), 0 4px 6px -2px rgba(46, 56, 81, 0.04);
	border-color: rgba(46, 56, 81, 0.12);
}

.feed-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 0 16px;
}

.feed-user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.feed-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.feed-avatar-initials {
	background: var(--color-blue);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
}

.feed-user-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.feed-user-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-dark);
}

.feed-timestamp {
	font-size: 12px;
	color: var(--color-text-muted);
}

.forum-status-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	text-transform: none;
	letter-spacing: 0;
}

.forum-status-badge.open {
	background-color: #e7f3ff;
	color: var(--color-blue);
}

.forum-status-badge.closed {
	background-color: #e7f9f1;
	color: var(--color-green);
}

.forum-status-badge.other {
	background-color: #fef3f2;
	color: var(--color-red);
}

.feed-card-body {
	padding: 10px 16px;
}

.feed-post-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
}

.feed-post-title a {
	color: var(--color-text-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

.feed-post-title a:hover {
	color: var(--color-blue);
	text-decoration: none;
}

.feed-post-image {
	margin-top: 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	background-color: #f8fafc;
	max-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feed-post-image img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.feed-post-image img:hover {
	transform: scale(1.02);
	opacity: 0.95;
}

.feed-card-tags {
	padding: 0 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.feed-tag {
	font-size: 12px;
	font-weight: 500;
	background-color: #f0f2f5;
	color: var(--color-text-body);
	padding: 4px 10px;
	border-radius: 6px;
}

.feed-card-footer {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	margin-top: 8px;
	border-top: 1px solid var(--color-border);
}

.feed-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
	padding: 8px 0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text-muted);
	text-decoration: none;
	transition: var(--transition-smooth);
	cursor: pointer;
	border: none;
	background: transparent;
}

.feed-action-btn:hover {
	background-color: var(--color-hover);
	color: var(--color-text-dark);
	text-decoration: none;
}

.feed-action-btn.primary {
	color: var(--color-blue);
}

.feed-action-btn.primary:hover {
	background-color: #e7f3ff;
}

.feed-action-btn i {
	font-size: 14px;
}

.empty-forum-state {
	padding: 60px 20px;
	background-color: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	max-width: 480px;
	margin: 40px auto;
}

.empty-icon-wrapper {
	font-size: 32px;
	color: var(--color-text-muted);
	margin-bottom: 12px;
}

.empty-forum-state h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text-dark);
	margin: 0 0 8px 0;
}

.empty-forum-state p {
	font-size: 13px;
	color: var(--color-text-muted);
	margin: 0;
	line-height: 1.5;
}

.forum-pagination-wrapper {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}

.forum-pagination-wrapper ul.pagination {
	margin: 0;
	display: inline-flex;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.forum-pagination-wrapper ul.pagination li a,
.forum-pagination-wrapper ul.pagination li span {
	background: var(--color-bg-card);
	color: var(--color-text-body);
	border: none;
	padding: 8px 14px;
	font-weight: 500;
	font-size: 13px;
	transition: var(--transition-smooth);
}

.forum-pagination-wrapper ul.pagination li.active a,
.forum-pagination-wrapper ul.pagination li.active span {
	background: var(--color-blue) !important;
	color: #ffffff !important;
}

.forum-pagination-wrapper ul.pagination li a:hover {
	background: var(--color-hover);
	color: var(--color-text-dark);
}

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

.animate-fade-in-up {
	animation: fadeSlideUp 0.4s ease-out both;
}

.animate-fade-in-up-delay-1 {
	animation: fadeSlideUp 0.4s ease-out 0.1s both;
}

@media (max-width: 1200px) {
	.forum-page-wrapper {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 768px) {
	.forum-page-wrapper {
		padding-left: 15px;
		padding-right: 15px;
		padding-top: 100px;
	}

	.forum-header-section {
		padding: 20px 0 15px 0;
	}

	.page-main-subtitle {
		font-size: 13.5px;
	}

	.search-container-floating {
		max-width: 100%;
	}

	.forum-feed {
		max-width: 100%;
	}

	.feed-user-avatar {
		width: 36px;
		height: 36px;
	}

	.feed-user-name {
		font-size: 13px;
	}

	.feed-post-title {
		font-size: 15px;
	}

	.forum-status-badge {
		font-size: 10px;
		padding: 3px 8px;
	}

	.forum-pagination-wrapper {
	}
}
