/* ==========================================================
   Uni-Forum — Kategori ve forum listesi
   ACP'de yeni stil dosyası: uf-forums.css
   Özel dosyalar: index.php ve forumdisplay.php
   ========================================================== */

.uf-cat {
	--uf-accent: #2ecc9a;
	--uf-navy: #2c3e50;
	--uf-ink: #1f2d3a;
	--uf-muted: #52606d;
	--uf-line: #eef1f5;

	margin: 0 0 20px;
	border: 1px solid #e4e9ef;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}
.uf-cat table.uf-forums {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: auto;
	background: #fff;
}

/* Kategori başlığı */
.uf-cat .uf-forums .thead {
	padding: 14px 22px;
	background: var(--uf-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
	border-radius: 0;
}
.uf-cat .uf-forums .thead a,
.uf-cat .uf-forums .thead a:visited { color: #fff; }
.uf-cat .uf-forums .thead a:hover { color: var(--uf-accent); }
.uf-cat .expcolimage { margin-top: 0; }
.uf-cat .expcolimage img { cursor: pointer; opacity: .85; }

/* Sütun başlıkları */
.uf-cat .uf-colhead td {
	padding: 8px 20px;
	background: #f1f4f7;
	border: 0;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--uf-muted);
	text-align: left;
	white-space: nowrap;
}
.uf-cat .uf-colhead td:first-child { width: 48px; padding-right: 0; }
.uf-cat .uf-colhead td:last-child { text-align: right; padding-right: 20px; }

/* Satır hücreleri */
.uf-cat .uf-frow > td {
	padding: 18px 20px;
	background: #fff;
	opacity: 1;
	border: 0;
	border-top: 1px solid var(--uf-line);
	vertical-align: middle;
	text-align: left;
	font-size: 14px;
	color: var(--uf-ink);
}
/* Sırayla renkli / renksiz satırlar */
.uf-cat .uf-forums tbody > tr.uf-frow:nth-child(even) > td { background: #f5f7fa; }
.uf-cat .uf-forums tbody > tr.uf-frow:hover > td { background: #edf1f6; }

/* Durum ikonu */
.uf-cat td.uf-fstatus { width: 48px; padding-right: 0; }
.uf-cat .uf-fstatus .forum_status {
	float: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
}
.uf-cat .uf-fstatus .forum_status i { line-height: 1; opacity: 1; }
.uf-cat .forum_on { background: var(--uf-navy); color: #fff; }
.uf-cat .forum_off,
.uf-cat .forum_offlock,
.uf-cat .forum_offlink { background: #eef1f5; color: var(--uf-muted); }

/* Forum adı, açıklama */
.uf-cat .uf-finfo { min-width: 0; }
.uf-cat a.uf-fname,
.uf-cat a.uf-fname:visited {
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	color: var(--uf-ink);
	text-decoration: none;
	word-wrap: break-word;
}
.uf-cat a.uf-fname:hover { color: var(--uf-navy); text-decoration: underline; }
.uf-cat .uf-fdesc {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--uf-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.uf-cat .uf-fdesc:empty { display: none; }

/* Alt forumlar */
.uf-cat .uf-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uf-cat a.uf-sub,
.uf-cat a.uf-sub:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 99px;
	background: #eef1f5;
	color: var(--uf-navy);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.uf-cat a.uf-sub:hover { background: #e1e7ee; text-decoration: none; }
.uf-cat .uf-sub .subforumicon { width: auto; height: auto; margin: 0; font-size: 11px; opacity: .55; }
.uf-cat .uf-sub .subforum_on { color: var(--uf-navy); opacity: 1; }
.uf-cat .uf-sub-more {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--uf-muted);
}

/* Son mesaj */
.uf-cat td.uf-flast { width: 24%; max-width: 0; }
.uf-cat .uf-lp { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.uf-cat a.uf-lp-title,
.uf-cat a.uf-lp-title:visited {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--uf-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}
.uf-cat a.uf-lp-title:hover { text-decoration: underline; }
.uf-cat .uf-lp-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--uf-muted); min-width: 0; }
.uf-cat .uf-lp-user { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uf-cat .uf-lp-user a { font-family: inherit; font-size: 12px; font-weight: 700; }
.uf-cat a.uf-lp-date,
.uf-cat a.uf-lp-date:visited { flex: none; font-family: inherit; font-size: 12px; color: var(--uf-muted); text-decoration: none; white-space: nowrap; }
.uf-cat a.uf-lp-date:hover { color: var(--uf-navy); text-decoration: underline; }
.uf-cat .uf-lp-never { font-size: 13px; color: var(--uf-muted); }

/* Konu / mesaj sayıları (en sağda) */
.uf-cat .uf-frow > td.uf-fstats { width: 1%; white-space: nowrap; text-align: right; }
.uf-cat .uf-fstats .uf-fcount { font-size: 13px; font-weight: 700; color: var(--uf-ink); }
.uf-cat .uf-fstats .uf-fcount a { font-size: 12px; font-weight: 700; }
.uf-cat .uf-fstats .uf-fsep {
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 9px 2px;
	border-radius: 50%;
	background: var(--uf-accent);
	vertical-align: middle;
}

/* ===== Ana sayfa yerleşimi (kenar çubuğu yok, tam genişlik) ===== */
.uf-index { width: 100%; clear: both; font-family: 'Nunito', system-ui, -apple-system, sans-serif; }
.uf-index .uf-ad { margin: 0 auto 20px; }

.uf-help-strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
	margin: 0 0 20px;
	padding: 12px 18px;
	border: 1px solid #e4e9ef;
	border-radius: 14px;
	background: #fff;
	font-size: 14px;
}
.uf-help-strip-title { font-weight: 800; color: #1f2d3a; }
.uf-help-strip a,
.uf-help-strip a:visited { font-weight: 700; color: #2c3e50; text-decoration: none; }
.uf-help-strip a:hover { text-decoration: underline; }

/* ===== Tablet ===== */
@media (max-width: 1000px) {
	.uf-cat td.uf-flast { width: 26%; }
}

/* ===== Telefon ===== */
@media (max-width: 768px) {
	.uf-cat { border-radius: 16px; }
	.uf-help-strip { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 10px 12px; font-size: 13px; }
	.uf-help-strip > * { flex: none; }
	.uf-cat table.uf-forums,
	.uf-cat .uf-forums thead,
	.uf-cat .uf-forums tbody { display: block; width: 100%; }
	.uf-cat .uf-forums thead tr,
	.uf-cat .uf-forums thead td { display: block; width: 100% !important; box-sizing: border-box; }
	.uf-cat .uf-forums .thead { padding: 12px 16px; font-size: 14px; }
	.uf-cat .uf-colhead { display: none !important; }
	.uf-cat .uf-forums tbody > tr.uf-frow:nth-child(even) { background: #f5f7fa; }
	.uf-cat .uf-forums tbody > tr.uf-frow:nth-child(even) > td { background: transparent; }

	.uf-cat tr.uf-frow {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		column-gap: 12px;
		padding: 14px 16px;
		border-top: 1px solid var(--uf-line);
	}
	.uf-cat .uf-frow > td { display: block; padding: 0; border: 0; width: auto !important; max-width: none !important; background: transparent; }
	.uf-cat .uf-frow:hover > td { background: transparent; }
	.uf-cat .uf-fstatus .forum_status { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
	/* Telefonda son konu ve sayılar gösterilmez */
	.uf-cat .uf-frow > td.uf-flast,
	.uf-cat .uf-frow > td.uf-fstats { display: none; }
	.uf-cat a.uf-fname { font-size: 16px; }
	.uf-cat .uf-fdesc { -webkit-line-clamp: 2; font-size: 13px; }
	.uf-cat a.uf-sub { min-height: 28px; padding: 0 10px; font-size: 12px; }
	.uf-cat .uf-sub-more { min-height: 28px; font-size: 12px; }
}

/* ==========================================================
   Konu listesi (forumdisplay.php)
   ========================================================== */
.uf-tl-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 14px;
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}
.uf-tl-bar .pagination { padding: 0; margin: 0; }
.uf-tl-bar .pagination a,
.uf-tl-bar .pagination .pagination_current { border-radius: 8px; padding: 6px 10px; }
.uf-tl-bar .pagination .pagination_current { background: #2c3e50; color: #fff; }
.uf-tl-new a.button,
.uf-tl-new a.button:visited {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: #2ecc9a;
	color: #1f2d3a;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: none;
	text-shadow: none;
}
.uf-tl-new a.button:hover { background: #27b588; color: #1f2d3a; }
.uf-tl-new a.button span { color: inherit; }

/* Başlık: forum adı + okundu / takip et */
.uf-cat .uf-tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.uf-cat .uf-tl-head > strong { font-weight: 800; }
.uf-cat .uf-tl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uf-cat .uf-tl-actions a,
.uf-cat .uf-tl-actions a:visited {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}
.uf-cat .uf-tl-actions a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.uf-cat .uf-colhead a,
.uf-cat .uf-colhead a:visited { color: var(--uf-muted); text-decoration: none; }
.uf-cat .uf-colhead a:hover { color: var(--uf-ink); text-decoration: underline; }

/* Konu satırları */
.uf-cat .uf-trow > td {
	padding: 14px 20px;
	background: #fff;
	opacity: 1;
	border: 0;
	border-top: 1px solid var(--uf-line);
	vertical-align: middle;
	text-align: left;
	font-size: 14px;
	color: var(--uf-ink);
}
.uf-cat .uf-trow > td.trow2 { background: #f5f7fa; }
.uf-cat .uf-trow:hover > td { background: #edf1f6; }
.uf-cat .uf-trow > td.forumdisplay_sticky { background: #fdf8ea; }
.uf-cat .uf-trow > td.forumdisplay_announcement { background: #f1f6fb; }

.uf-cat td.uf-tstatus { width: 28px; padding-right: 0; text-align: center; }
.uf-cat .uf-tinfo { min-width: 0; }
.uf-cat .uf-tsubject { font-size: 15px; line-height: 1.45; }
.uf-cat .uf-tsubject a,
.uf-cat .uf-tsubject a:visited { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--uf-ink); text-decoration: none; text-transform: none; }
.uf-cat .uf-tsubject a:hover { color: var(--uf-navy); text-decoration: underline; }
.uf-cat .uf-tsubject .subject_new a { font-weight: 800; }
.uf-cat .uf-tsubject .smalltext { font-size: 12px; color: var(--uf-muted); }
.uf-cat .uf-tauthor { margin-top: 3px; font-size: 13px; color: var(--uf-muted); }
.uf-cat .uf-tauthor a { font-family: inherit; font-size: 13px; font-weight: 700; }
.uf-cat .uf-tinfo > .float_right { margin-left: 10px; opacity: .6; }
.uf-cat .uf-badge {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 99px;
	background: var(--uf-navy);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	vertical-align: 2px;
}

.uf-cat .uf-trow > td.uf-tlast { width: 24%; max-width: 0; }
.uf-cat .uf-trow > td.uf-tstats { width: 1%; white-space: nowrap; text-align: right; }
.uf-cat .uf-tstats .uf-fcount,
.uf-cat .uf-tstats a.uf-fcount:visited { font-size: 13px; font-weight: 700; color: var(--uf-ink); text-decoration: none; }
.uf-cat .uf-tstats a.uf-fcount:hover { text-decoration: underline; }
.uf-cat .uf-tstats .uf-fsep {
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 9px 2px;
	border-radius: 50%;
	background: var(--uf-accent);
	vertical-align: middle;
}

/* "Forum Duyuruları" / "Normal Konular" ayraçları */
.uf-cat .uf-tsep td.trow_sep {
	padding: 8px 20px;
	background: #f1f4f7;
	border-top: 1px solid var(--uf-line);
	color: var(--uf-muted);
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-align: left;
}

/* Alttaki sıralama formu */
.uf-cat td.uf-tl-sort {
	padding: 12px 20px;
	background: #f6f8fa;
	border-top: 1px solid var(--uf-line);
	text-align: right;
}
.uf-cat .uf-tl-sort form { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 0; }
.uf-cat .uf-tl-sort-label { font-size: 13px; font-weight: 700; color: var(--uf-muted); }
.uf-cat .uf-tl-sort select { height: 36px; border: 1px solid #d5dde6; border-radius: 10px; padding: 0 8px; background: #fff; font-size: 13px; }
.uf-cat .uf-tl-sort input.button { height: 36px; border-radius: 10px; padding: 0 14px; }

/* Lejant ve araçlar */
.uf-tl-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
	gap: 16px;
	margin: 6px 0 20px;
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}
.uf-tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.uf-tl-legend dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; color: #52606d; }
.uf-tl-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; text-align: right; }

@media (max-width: 768px) {
	.uf-cat .uf-tl-actions a span { display: none; }
	.uf-cat .uf-tl-actions a { min-height: 40px; padding: 0 12px; }
	.uf-cat tr.uf-trow {
		display: grid;
		grid-template-columns: 24px minmax(0, 1fr);
		column-gap: 10px;
		padding: 12px 14px;
		border-top: 1px solid var(--uf-line);
	}
	.uf-cat .uf-trow > td { display: block; padding: 0; border: 0; width: auto !important; max-width: none !important; background: transparent !important; }
	.uf-cat tr.uf-trow:nth-of-type(even) { background: #f5f7fa; }
	.uf-cat .uf-trow > td.uf-tlast,
	.uf-cat .uf-trow > td.uf-tstats { display: none; }
	.uf-cat .uf-tsep, .uf-cat .uf-tsep td { display: block; width: 100%; box-sizing: border-box; }
	.uf-cat .uf-tsubject, .uf-cat .uf-tsubject a { font-size: 14px; }
	.uf-cat .uf-tl-sort, .uf-tl-legend { display: none; }
	.uf-tl-tools { justify-content: flex-start; }
}
.uf-cat .uf-threads .uf-colhead td:first-child { width: 28px; }
