/* =========================
INDUSTRIAL CLEAN THEME 🔧
========================= */

:root {
	--bg-main: #121212;
	--bg-secondary: #1f1f1f;
	--bg-card: #2a2a2a;

	--accent-main: #ffcc00;
	--accent-hover: #ffd633;

	--text-main: #f5f5f5;
	--text-secondary: #cfcfcf;

	--border: #3a3a3a;
}

/* =========================
GLOBAL
========================= */

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	background: var(--bg-main);
	color: var(--text-main);
}

/* subtle texture */
body::before {
	content: '';
	position: fixed;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.01),
		rgba(255, 255, 255, 0.01) 2px,
		transparent 2px,
		transparent 6px
	);
	pointer-events: none;
}

/* =========================
CONTAINER
/* =========================
CONTAINER
========================= */

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 15px;
}

/* =========================
HEADER 🔧 FIXED WIDTH
========================= */

.header {
	position: relative;
	min-height: 260px;

	display: flex;
	align-items: center;

	background: url('/images/header.png') center/cover no-repeat;
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

/* overlay */

.header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.6),
		rgba(0, 0, 0, 0.3) 40%,
		rgba(0, 0, 0, 0.7)
	);
	z-index: 1;
}

.header::after {
	content: '';
	position: absolute;
	inset: 0;
	backdrop-filter: blur(3px);
	z-index: 1;
}

/* 🔥 KLUCZ – kontener w headerze */

.header-inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
	position: relative;
	z-index: 2;
}

/* layout */

.header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

/* left */

.header-left {
	display: flex;
	flex-direction: column;
}

/* logo */

.logo {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 42px;
	letter-spacing: 2px;
	text-decoration: none;
}

.logo-main {
	color: white;
}

.logo-accent {
	color: var(--accent-main);
}

/* tagline */

.tagline {
	color: var(--text-secondary);
	font-size: 14px;
	margin-top: -5px;
}

/* right */

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* user bar */

.user-bar {
	font-size: 13px;
	color: var(--text-secondary);
}

/* =========================
SEARCH
========================= */

.search-box form {
	display: flex;
	gap: 6px;
}

.search-box input {
	padding: 9px;
	background: #111;
	border: 1px solid var(--border);
	color: white;
	border-radius: 4px;
	width: 180px;
}

.search-box button {
	padding: 9px 14px;
	background: var(--accent-main);
	border: none;
	color: black;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	transition: 0.2s;
}

.search-box button:hover {
	background: var(--accent-hover);
	box-shadow: 0 0 8px var(--accent-main);
}

/* =========================
CATEGORY
========================= */

.category {
	margin: 40px 15px 10px 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border);
}
.category h2 {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 32px;
	letter-spacing: 2px;
	color: var(--accent-main);
	margin: 0;
}

.category p {
	margin: 5px 0 0 0;
	color: var(--text-secondary);
	font-size: 14px;
}

/* =========================
SUBCATEGORY
========================= */

.subcategory-list {
	margin-top: 15px;
}

.subcategory-card {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
	margin: 0;
	transition: 0.2s;
}

.subcategory-card:hover {
	background: rgba(255, 255, 255, 0.03);
}

.subcategory-link {
	display: block;
	padding: 14px;
	font-weight: 600;
	color: var(--text-main);
	text-decoration: none;
}
.subcategory-card {
	position: relative;
}

.subcategory-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 3px;
	background: transparent;
	transition: 0.2s;
}

.subcategory-card:hover::before {
	background: var(--accent-main);
}
.sub-title {
	letter-spacing: 1px;
}

/* =========================
POST
========================= */

.post {
	display: flex;
	gap: 15px;
	margin: 20px;
	background: var(--bg-card);
	padding: 15px;
	border-radius: 6px;
	border: 1px solid var(--border);
}

.post-avatar img {
	width: 60px;
	border-radius: 6px;
	border: 2px solid var(--accent-main);
}

.post-user {
	font-weight: bold;
	color: var(--accent-main);
}

.post-date {
	font-size: 12px;
	color: var(--text-secondary);
}

.post-text {
	margin-top: 10px;
	line-height: 1.5;
}

/* =========================
QUOTE
========================= */

.quote {
	background: #111;
	border-left: 4px solid var(--accent-main);
	padding: 10px;
	margin: 10px 0;
	font-size: 14px;
}

/* =========================
BUTTONS
========================= */

button,
.btn {
	background: var(--accent-main);
	color: black;
	padding: 10px 16px;
	border: none;
	cursor: pointer;
	font-weight: bold;
	border-radius: 4px;
	transition: 0.2s;
}

button:hover,
.btn:hover {
	background: var(--accent-hover);
	box-shadow: 0 0 10px var(--accent-main);
}

/* =========================
FOOTER
========================= */

.footer {
	margin-top: 40px;
	padding: 10px 20px;
	color: var(--text-secondary);
	font-size: 14px;
}

.online-minimal {
	border-top: 1px solid var(--border);
	padding-top: 10px;
	margin-bottom: 8px;
}

.online-users {
	font-size: 13px;
	color: var(--text-main);
}

/* =========================
HR
========================= */

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 20px 0;
}
/* =========================
HEADER FLEX LAYOUT
========================= */

.header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

/* lewa */

.header-left {
	display: flex;
	flex-direction: column;
}

/* prawa */

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* user bar */

.header-right .user-bar {
	font-size: 13px;
	color: var(--text-secondary);
}

/* search alignment */

.header-right .search-box {
	display: flex;
}

.header-right input {
	width: 200px;
}

/* RESPONSIVE (ważne!) */

@media (max-width: 700px) {
	.header-flex {
		flex-direction: column;
		align-items: flex-start;
	}

	.header-right {
		align-items: flex-start;
	}
}
.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 15px;
}
.category {
	margin: 40px 0 10px 0;
}
/* =========================
MOBILE
========================= */

@media (max-width: 768px) {
	/* header */
	.header {
		padding: 25px 15px;
	}

	/* header layout */
	.header-flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	/* prawa strona */
	.header-right {
		align-items: flex-start;
		width: 100%;
	}

	/* search */
	.header-right input {
		width: 100%;
	}

	.search-box form {
		display: flex;
		width: 100%;
		gap: 5px;
	}

	.search-box button {
		width: 100px;
	}

	/* category */
	.category h2 {
		font-size: 26px;
	}

	/* subcategory */
	.subcategory-link {
		padding: 12px 5px;
		font-size: 14px;
	}

	/* post */
	.post {
		flex-direction: column;
	}

	.post-avatar img {
		width: 50px;
	}
}
.header .container {
	max-width: 1000px;
	margin: auto;
}
/* =========================
MOBILE FINAL 🔧
========================= */

@media (max-width: 768px) {
	/* ===== HEADER ===== */

	.header {
		text-align: center;
		padding: 25px 15px;
	}

	.header-flex {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	/* kolejność */
	/* =========================
MOBILE HEADER FIX 🔧
========================= */

	@media (max-width: 768px) {
		/* header */
		.header {
			text-align: center;
			padding: 25px 15px;
		}

		/* layout */
		.header-flex {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 10px;
		}

		/* 🔥 KOLEJNOŚĆ */

		/* 1. login */
		.header-right {
			order: 1;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 10px;
			width: 100%;
		}

		/* 2. logo */
		.header-left {
			order: 2;
			display: flex;
			flex-direction: column;
			align-items: center;
		}

		/* 3. search */
		.search-box {
			order: 3;
			width: 100%;
			margin-top: 10px;
		}

		/* user */
		.user-bar {
			font-size: 12px;
			opacity: 0.85;
			text-align: center;
		}

		/* logo */
		.logo {
			font-size: 34px;
		}

		/* tagline */
		.tagline {
			text-align: center;
			font-size: 13px;
		}

		/* search layout */
		.search-box form {
			display: flex;
			justify-content: center;
			gap: 8px;
			width: 100%;
		}

		.search-box input {
			flex: 1;
			max-width: 220px;
		}

		.search-box button {
			white-space: nowrap;
		}
	}

	.header-left {
		order: 2;
		align-items: center;
	}

	/* user */
	.user-bar {
		font-size: 12px;
		opacity: 0.85;
		text-align: center;
	}

	/* logo */
	.logo {
		font-size: 34px;
	}

	/* tagline */
	.tagline {
		text-align: center;
		font-size: 13px;
	}

	/* search */
	.search-box {
		width: 100%;
		margin-top: 10px;
	}

	.search-box form {
		display: flex;
		justify-content: center;
		gap: 8px;
		width: 100%;
	}

	.search-box input {
		flex: 1;
		max-width: 220px;
	}

	.search-box button {
		white-space: nowrap;
	}

	/* ===== CATEGORY ===== */

	.category {
		margin: 30px 0;
		padding-bottom: 15px;
		border-bottom: 1px solid var(--border);
		text-align: center;
	}

	.category h2 {
		font-size: 24px;
		letter-spacing: 2px;
	}

	.category p {
		font-size: 13px;
		margin-bottom: 15px;
	}

	/* subcategories */
	.subcategory-list {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}

	.subcategory-card {
		border-bottom: 1px solid var(--border);
	}

	.subcategory-link {
		padding: 12px 0;
		font-size: 14px;
	}

	/* ===== POSTS ===== */

	.post {
		flex-direction: column;
		margin: 15px 0;
	}

	.post-avatar img {
		width: 50px;
	}

	/* ===== FOOTER ===== */

	.footer {
		text-align: center;
	}
}
/* =========================
THREAD LIST 🔧
========================= */

.thread-list {
	margin-top: 20px;
}

.thread-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid var(--border);
	transition: 0.2s;
}

.thread-card:hover {
	background: rgba(255, 255, 255, 0.03);
}

/* lewa strona */

.thread-main {
	display: flex;
	flex-direction: column;
}

.thread-title {
	font-weight: 600;
	color: var(--text-main);
	text-decoration: none;
}

.thread-title:hover {
	color: var(--accent-main);
}

.thread-meta {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 5px;
}

/* prawa strona */

.thread-info {
	text-align: right;
	font-size: 13px;
	color: var(--text-secondary);
}

.thread-last {
	font-size: 12px;
	color: var(--text-main);
	margin-top: 3px;
}
/* ===== THREAD LIST MOBILE ===== */

.thread-card {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.thread-info {
	text-align: left;
}
.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 30px 0 20px 0;
	gap: 15px;
}

.category-header h2 {
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 2px;
	color: var(--accent-main);
}

.category-header p {
	margin: 5px 0 0 0;
	color: var(--text-secondary);
	font-size: 14px;
}
.thread-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	margin-bottom: 10px;

	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;

	transition: 0.2s;
}

.thread-card:hover {
	border-color: var(--accent-main);
	box-shadow: 0 0 8px rgba(255, 204, 0, 0.15);
}
.thread-main {
	display: flex;
	flex-direction: column;
}

.thread-title {
	font-weight: 600;
	color: var(--text-main);
	text-decoration: none;
}

.thread-title:hover {
	color: var(--accent-main);
}

.thread-meta {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 5px;
}
.thread-info {
	text-align: right;
	font-size: 13px;
	color: var(--text-secondary);
}

.thread-last {
	font-size: 12px;
	color: var(--text-main);
	margin-top: 3px;
}
/* ===== CATEGORY HEADER MOBILE ===== */

.category-header {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.category-header .btn {
	width: 100%;
	text-align: center;
}

/* ===== THREAD MOBILE ===== */

.thread-card {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.thread-info {
	text-align: left;
}
.category-header .btn {
	padding: 8px 16px;
	font-size: 14px;
	white-space: nowrap;
	width: auto; /* 🔥 usuwa rozciąganie */
}
.category-header .btn {
	width: auto;
}
.category-header .btn {
	margin-left: auto;
}
/* =========================
FORM 🔧
========================= */

.form-box {
	width: 100%;
	margin: 40px 0;
	padding: 25px;

	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.form-box h2 {
	margin: 0 0 20px 0;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 2px;
	color: var(--accent-main);
}

/* form layout */

.thread-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* labels */

.thread-form label {
	font-size: 13px;
	color: var(--text-secondary);
}

/* input */

.thread-form input,
.thread-form textarea {
	padding: 12px;
	background: #111;
	border: 1px solid var(--border);
	color: var(--text-main);
	border-radius: 4px;
	font-size: 14px;
}

/* focus */

.thread-form input:focus,
.thread-form textarea:focus {
	outline: none;
	border-color: var(--accent-main);
	box-shadow: 0 0 5px rgba(255, 204, 0, 0.2);
}

/* textarea */

.thread-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* button */

.thread-form .btn {
	margin-top: 10px;
	align-self: flex-start;
}
/* ===== FORM MOBILE ===== */

.form-box {
	margin: 20px 10px;
	padding: 20px;
}

.thread-form .btn {
	width: 100%;
	text-align: center;
}
/* =========================
THREAD UI 🔧
========================= */

.thread-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 30px 0 20px;
}

.thread-header h2 {
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	color: var(--accent-main);
}

.thread-stats {
	font-size: 13px;
	color: var(--text-secondary);
}

/* post */

.post-card {
	display: flex;
	gap: 15px;
	padding: 15px;
	margin-bottom: 12px;

	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.post-left img {
	width: 50px;
	border-radius: 6px;
}

.avatar-placeholder {
	width: 50px;
	height: 50px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

/* content */

.post-top {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 5px;
}

.post-user {
	color: var(--accent-main);
	font-weight: bold;
}

.post-date {
	color: var(--text-secondary);
}

.post-text {
	margin-top: 10px;
	line-height: 1.5;
}

/* actions */

.post-actions {
	margin-top: 10px;
	display: flex;
	gap: 10px;
	font-size: 13px;
}

.post-actions a {
	color: var(--text-secondary);
}

.post-actions a:hover {
	color: var(--accent-main);
}

.danger {
	color: #ff3b3b;
}

/* reply */

.reply-box {
	margin-top: 30px;
	padding: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
}
.post-card {
	flex-direction: column;
}

.post-top {
	flex-direction: column;
	gap: 3px;
}
/* ===== POST HEADER ===== */

.post-header {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.post-user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.post-avatar {
	width: 40px;
	height: 40px;
	border-radius: 6px;
}

.avatar-placeholder {
	width: 40px;
	height: 40px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

/* meta */

.post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.post-user {
	color: var(--accent-main);
	font-weight: bold;
}

.post-date {
	color: var(--text-secondary);
	font-size: 12px;
}

/* badge autora */

.op-badge {
	background: var(--accent-main);
	color: black;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: bold;
}

.reply-box {
	margin-top: 40px;
	padding: 25px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	text-align: center;
}

.reply-box h3 {
	margin-bottom: 15px;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 2px;
	color: var(--accent-main);
}

.reply-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.reply-form textarea {
	width: 100%;
	max-width: 700px;
	padding: 12px;
	background: #111;
	border: 1px solid var(--border);
	color: white;
	border-radius: 4px;
}

.reply-form .btn {
	width: 200px;
}
@media (max-width: 768px) {
	.post-meta {
		flex-wrap: wrap;
	}

	.reply-form textarea {
		max-width: 100%;
	}

	.reply-form .btn {
		width: 100%;
	}
}
.first-post {
	border: 2px solid var(--accent-main);
	background: linear-gradient(145deg, #2a2a2a, #242424);
	box-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
}

/* opcjonalny label */

.first-post::before {
	content: 'POST GŁÓWNY';
	position: absolute;
	top: -10px;
	left: 15px;
	background: var(--accent-main);
	color: black;
	font-size: 10px;
	padding: 3px 6px;
	border-radius: 3px;
	font-weight: bold;
}

/* żeby działało */
.post-card {
	position: relative;
}
.thread-stats {
	font-size: 13px;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 5px;
}
.info-box {
	margin: 20px 0;
	padding: 10px;
	background: #1f1f1f;
	border: 1px solid var(--border);
	color: var(--text-secondary);
	border-left: 3px solid var(--accent-main);
}
/* =========================
LOGOUT BUTTON 🔧
========================= */

.logout-btn {
	margin-left: 8px;
	padding: 4px 10px;

	background: transparent;
	border: 1px solid var(--accent-main);
	color: var(--accent-main);

	font-size: 12px;
	border-radius: 4px;

	text-decoration: none;
	transition: 0.2s;
}

/* hover */

.logout-btn:hover {
	background: var(--accent-main);
	color: black;
	box-shadow: 0 0 6px var(--accent-main);
}
.logout-btn {
	opacity: 0.8;
}

.logout-btn:hover {
	opacity: 1;
}
/* =========================
AUTH BUTTONS 🔧
========================= */

.auth-buttons {
	display: flex;
	gap: 8px;
}

/* =========================
LOGIN BUTTON 🔧 (IMPROVED)
========================= */

.btn-login {
	padding: 5px 12px;
	font-size: 12px;

	color: var(--accent-main);
	border: 1px solid var(--accent-main);
	border-radius: 4px;

	text-decoration: none;
	transition: 0.2s;

	background: transparent;
}

/* NOWY HOVER 🔥 */

.btn-login:hover {
	background: rgba(255, 204, 0, 0.1);
	box-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}
/* register (primary 🔥) */

.btn-register {
	padding: 5px 12px;
	font-size: 12px;

	background: var(--accent-main);
	color: black;
	border-radius: 4px;

	text-decoration: none;
	font-weight: bold;

	transition: 0.2s;
}

.btn-register:hover {
	background: var(--accent-hover);
	box-shadow: 0 0 6px var(--accent-main);
}
.auth-buttons {
	justify-content: center;
	flex-wrap: wrap;
}
/* =========================
ERROR 🔴
========================= */

.error-box {
	margin-bottom: 15px;
	padding: 10px;

	background: rgba(255, 59, 59, 0.1);
	border: 1px solid #ff3b3b;

	color: #ff6b6b;
	font-size: 13px;

	border-radius: 4px;
}
/* =========================
LOGIN BUTTON CENTER 🔧
========================= */

.thread-form .btn {
	width: auto; /* 🔥 usuwa full width */
	min-width: 180px; /* ładna szerokość */
	text-align: center;

	align-self: center; /* 🔥 wyśrodkowanie */
}
@media (max-width: 768px) {
	.thread-form .btn {
		width: 100%; /* na mobile pełna szerokość */
		min-width: unset;
	}
}
.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 15px; /* 🔥 TO JEST KLUCZ */
}
.form-box {
	box-sizing: border-box; /* 🔥 ważne */
}
@media (max-width: 768px) {
	.form-box {
		margin: 20px 0;
		padding: 20px 15px; /* 🔥 zamiast 25px */
	}

	/* inputy */
	.thread-form input,
	.thread-form textarea {
		width: 100%;
		box-sizing: border-box;
	}
}
.header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.header-left {
	display: flex;
	flex-direction: column;
}

.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
/* =========================
MOBILE HEADER 🔧 FINAL
========================= */

@media (max-width: 768px) {
	/* cały header */
	.header {
		text-align: center;
		padding: 25px 15px;
	}

	/* układ */
	.header-flex {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
}
/* =========================
MOBILE HEADER FORCE 🔧
========================= */

@media (max-width: 768px) {
	/* layout */
	.header-flex {
		flex-direction: column !important;
		align-items: center !important;
		gap: 12px !important;
	}

	/* 🔥 KOLEJNOŚĆ */

	/* 1. USER */
	.header-right {
		order: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: 100% !important;
	}

	/* 2. LOGO */
	.header-left {
		order: 2 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
	}

	/* 3. SEARCH */
	.search-box {
		order: 3 !important;
		width: 100% !important;
		margin-top: 10px !important;
	}

	/* user */
	.user-bar {
		text-align: center !important;
	}

	/* logo */
	.logo {
		font-size: 34px !important;
	}

	/* tagline */
	.tagline {
		text-align: center !important;
		font-size: 13px !important;
	}

	/* search */
	.search-box form {
		display: flex !important;
		justify-content: center !important;
		gap: 8px !important;
		width: 100% !important;
	}

	.search-box input {
		flex: 1 !important;
		max-width: 220px !important;
	}

	.search-box button {
		white-space: nowrap !important;
	}
}
/* =========================
SEARCH 🔧
========================= */

.search-header {
	margin: 30px 0 20px;
}

.search-header h2 {
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 2px;
	color: var(--accent-main);
}

.search-header p {
	margin-top: 5px;
	color: var(--text-secondary);
	font-size: 14px;
}

/* card */

.search-card {
	padding: 15px;
	margin-bottom: 10px;

	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;

	transition: 0.2s;
}

.search-card:hover {
	border-color: var(--accent-main);
	box-shadow: 0 0 8px rgba(255, 204, 0, 0.15);
}

/* title */

.search-title {
	font-weight: 600;
	color: var(--text-main);
	text-decoration: none;
}

.search-title:hover {
	color: var(--accent-main);
}

/* meta */

.search-meta {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 5px;
}

/* snippet */

.search-snippet {
	margin-top: 8px;
	font-size: 13px;
	color: var(--text-main);
	line-height: 1.4;
}
@media (max-width: 768px) {
	.search-card {
		padding: 12px;
	}
}
/* =========================
DANGER BUTTON 🔴
========================= */

.btn-danger {
	background: rgba(255, 59, 59, 0.1);
	color: #ff4d4d;

	border: 1px solid #ff3b3b;
	border-radius: 4px;

	padding: 8px 14px;
	font-size: 13px;
	font-weight: bold;

	text-decoration: none;
	transition: 0.2s;
}

.btn-danger:hover {
	background: #ff3b3b;
	color: white;
	box-shadow: 0 0 8px rgba(255, 59, 59, 0.4);
}
.like-btn {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 13px;
}

.like-btn:hover {
	color: var(--accent-main);
}
.post-user {
	color: var(--accent-main);
	font-weight: bold;
	text-decoration: none;
}

.post-user:hover {
	text-decoration: underline;
	color: var(--accent-hover);
}
/* =========================
PROFILE 🔧
========================= */

.profile-box {
	margin: 40px 0;
	padding: 25px;

	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
}

/* header */

.profile-header {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 20px;
}

/* avatar */

.profile-avatar img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	border: 2px solid var(--accent-main);
}

.avatar-placeholder.big {
	width: 80px;
	height: 80px;
	font-size: 30px;
}

/* info */

.profile-info h2 {
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 2px;
	color: var(--accent-main);
}

.profile-meta {
	font-size: 13px;
	color: var(--text-secondary);
	margin-top: 5px;
}

/* upload */

.profile-upload {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid var(--border);
}

.profile-upload h3 {
	margin-bottom: 10px;
	font-family: 'Bebas Neue', sans-serif;
	color: var(--accent-main);
}

/* mobile */

@media (max-width: 768px) {
	.profile-header {
		flex-direction: column;
		text-align: center;
	}
}
/* =========================
USER LINK 🔧
========================= */

.user-link {
	color: var(--text-main);
	text-decoration: none;
	font-weight: 500;
}

.user-link:hover {
	color: var(--accent-main);
	text-decoration: underline;
}
/* =========================
LOGO 🔧
========================= */

.logo {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 42px;
	letter-spacing: 2px;
	text-decoration: none;
}

/* Mens */
.logo-main {
	color: white;
}

/* Forum */
.logo-accent {
	color: var(--accent-main);
}

/* hover */
.logo:hover .logo-accent {
	color: var(--accent-hover);
}

/* tagline */

.tagline {
	color: var(--text-secondary);
	font-size: 14px;
	margin-top: -5px;
	letter-spacing: 0.5px;
}
/* =========================
CATEGORY INDUSTRIAL 🔧
========================= */

.category-block {
	margin: 40px 0;
}

/* lista */

.subcategory-industrial {
	margin-top: 15px;
	border-top: 1px solid var(--border);
}



/* left */

.sub-left {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sub-name {
	font-weight: 600;
	letter-spacing: 0.5px;
}

.sub-desc {
	font-size: 12px;
	color: var(--text-secondary);
}

/* right */

.sub-right {
	display: flex;
	gap: 15px;
	font-size: 12px;
	color: var(--text-secondary);
}

/* stat boxes */

.sub-right span {
	background: #111;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid var(--border);
}

/* hover glow */
.sub-row:hover {
	background: linear-gradient(90deg, rgba(255, 204, 0, 0.12), rgba(255, 204, 0, 0.03));

	box-shadow: 0 0 12px rgba(255, 204, 0, 0.08);
	transform: translateX(3px);
}
.sub-row {
	display: flex;
	justify-content: space-between;
	align-items: center;

	padding: 14px 10px;

	text-decoration: none;
	color: var(--text-main);

	border-bottom: 1px solid var(--border);

	/* 🔥 NOWE */
	background: linear-gradient(90deg, rgba(255, 204, 0, 0.03), rgba(255, 204, 0, 0.01));

	transition: 0.25s;
	position: relative;
    
}

/* =========================
THREAD LIST INDUSTRIAL 🔧
========================= */

.thread-row {
display: flex;
justify-content: space-between;
align-items: center;

padding: 15px;

margin-bottom: 10px;

background: linear-gradient(
    90deg,
    rgba(255,204,0,0.03),
    rgba(255,204,0,0.01)
);

border: 1px solid var(--border);
border-radius: 6px;

transition: 0.25s;
position: relative;
}

/* lewy pasek */

.thread-row::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3px;
background: transparent;
transition: 0.2s;
}

/* hover */

.thread-row:hover {
background: linear-gradient(
    90deg,
    rgba(255,204,0,0.12),
    rgba(255,204,0,0.03)
);

transform: translateX(3px);
box-shadow: 0 0 12px rgba(255,204,0,0.08);
}

.thread-row:hover::before {
background: var(--accent-main);
box-shadow: 0 0 8px var(--accent-main);
}

/* left */

.thread-left {
display: flex;
flex-direction: column;
}

.thread-title {
color: var(--text-main);
font-weight: 600;
text-decoration: none;
}

.thread-title:hover {
color: var(--accent-main);
text-shadow: 0 0 5px rgba(255,204,0,0.4);
}

.thread-meta {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
}

/* right */

.thread-right {
display: flex;
gap: 10px;
}

.thread-stat {

padding: 5px 10px;

font-size: 12px;
color: var(--text-secondary);
}

/* =========================
SUB ROW (INDEX) 🔧
========================= */

.sub-row {
display: flex;
justify-content: space-between;
align-items: center;

padding: 15px;

margin-bottom: 10px;

background: linear-gradient(
    90deg,
    rgba(255,204,0,0.03),
    rgba(255,204,0,0.01)
);

border: 1px solid var(--border);
border-radius: 6px;

transition: 0.25s;
position: relative;

text-decoration: none;
color: var(--text-main);
}

/* lewy pasek */

.sub-row::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3px;
background: transparent;
transition: 0.2s;
}

/* hover */

.sub-row:hover {
background: linear-gradient(
    90deg,
    rgba(255,204,0,0.12),
    rgba(255,204,0,0.03)
);

transform: translateX(3px);
box-shadow: 0 0 12px rgba(255,204,0,0.08);
}

.sub-row:hover::before {
background: var(--accent-main);
box-shadow: 0 0 8px var(--accent-main);
}

/* left */

.sub-left {
display: flex;
flex-direction: column;
}

.sub-name {
color: var(--text-main);
font-weight: 600;
text-decoration: none;
}

.sub-row:hover .sub-name {
color: var(--accent-main);
text-shadow: 0 0 5px rgba(255,204,0,0.4);
}

.sub-desc {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
}

/* right */

.sub-right {
display: flex;
gap: 10px;
}

.sub-stat {
padding: 5px 10px;
font-size: 12px;
color: var(--text-secondary);
}
.thread-row {
cursor: pointer;
}
.thread-row:active {
transform: scale(0.99);
}
.thread-row:visited {
color: var(--text-main);
}
.thread-row,
.thread-row:visited,
.thread-row:hover,
.thread-row:active {
color: var(--text-main);
text-decoration: none;
}
.thread-title,
.thread-title:visited {
color: var(--text-main);
text-decoration: none;
}
/* =========================
MOBILE HEADER 🔥 FINAL
========================= */

@media (max-width: 768px) {

/* header ogólnie */
.header {
text-align: center;
padding: 25px 15px;
}

/* układ */
.header-flex {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}

/* 🔥 KOLEJNOŚĆ */

/* 1. USER (góra) */
.header-right {
order: 1;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 10px;
}

/* 2. LOGO */
.header-left {
order: 2;
display: flex;
flex-direction: column;
align-items: center;
}

/* 3. SEARCH (dół) */
.search-box {
order: 3;
width: 100%;
margin-top: 10px;
}

/* user bar */
.user-bar {
text-align: center;
font-size: 12px;
opacity: 0.9;
}

/* logo */
.logo {
font-size: 34px;
}

/* tagline */
.tagline {
text-align: center;
font-size: 13px;
}

/* search layout */
.search-box form {
display: flex;
justify-content: center;
gap: 8px;
width: 100%;
}

/* input */
.search-box input {
flex: 1;
max-width: 220px;
}

/* button */
.search-box button {
white-space: nowrap;
}

}