/* ===== Uni-Forum üst bar (hoş geldin bloğu) ===== */
.uf-topbar {
	--tb-bg: #26384a;
	--tb-bg2: #2e4052;
	--tb-ink: #ffffff;
	--tb-soft: #b9c7d6;
	--tb-hover: rgba(255, 255, 255, .08);
	--tb-line: rgba(255, 255, 255, .10);
	--tb-accent: #2ecc9a;
	--tb-red: #e5484d;
	position: relative;
	z-index: 1000;
	background: linear-gradient(90deg, var(--tb-bg), var(--tb-bg2));
	border-bottom: 1px solid var(--tb-line);
	color: var(--tb-ink);
	font-family: 'Open Sans', Arial, sans-serif;
}
.uf-tb-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 84px;
	padding: 0 28px;
	box-sizing: border-box;
}
.uf-tb-right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

/* Logo */
.uf-tb-logo { flex: none; display: flex; align-items: center; }
.uf-tb-logo img { display: block; height: 58px; width: auto; }

/* Arama */
.uf-tb-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 460px;
	min-width: 0;
	height: 50px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 12px;
	background: rgba(0, 0, 0, .18);
	transition: border-color .15s, background .15s;
}
.uf-tb-search:focus-within { border-color: rgba(46, 204, 154, .7); background: rgba(0, 0, 0, .26); }
.uf-tb-search > i { position: absolute; left: 18px; color: var(--tb-soft); font-size: 17px; pointer-events: none; }
.uf-tb-search input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 8px 0 50px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font: 15px 'Open Sans', Arial, sans-serif;
	outline: none;
}
.uf-tb-search input::placeholder { color: var(--tb-soft); opacity: 1; }
.uf-tb-search button {
	flex: none;
	width: 46px;
	height: 100%;
	border: 0;
	border-radius: 0 12px 12px 0;
	background: transparent;
	color: var(--tb-soft);
	font-size: 15px;
	cursor: pointer;
}
.uf-tb-search button:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ===== Menü bar ===== */
.uf-menubar {
	position: relative;
	z-index: 900;
	background: #33475b;
	border-bottom: 3px solid #2ecc9a;
	font-family: 'Open Sans', Arial, sans-serif;
}
.uf-mb-inner {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 62px;
	padding: 0 22px;
	overflow-x: auto;
	scrollbar-width: none;
}
.uf-mb-inner::-webkit-scrollbar { display: none; }
.uf-mb-inner a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	color: #e8eef4 !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.uf-mb-inner a i { color: #4fb3f0; font-size: 18px; }
.uf-mb-inner a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.uf-mb-inner a.aktif { background: rgba(46, 204, 154, .16); color: #fff !important; }
.uf-mb-inner a.aktif i { color: #2ecc9a; }
/* Doldurulmamış boş butonlar görünmesin */
.uf-mb-inner a.uf-mb-bos { display: none; }
.uf-topbar a { text-decoration: none; }

/* Premium butonu */
.uf-tb-premium {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 2px solid #f5c451;
	border-radius: 10px;
	color: #f5c451 !important;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.uf-tb-premium:hover { background: #f5c451; color: #26384a !important; }
/* Premium grubundakilerde gizle: 8 yerine premium grup ID'sini yaz */
.uf-tb-right[data-g="8"] .uf-tb-premium { display: none; }

/* İkon butonları */
.uf-tb-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
}
.uf-tb-alerts, .uf-tb-alerts li { display: contents; list-style: none; }
.uf-tb-ic {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--tb-soft) !important;
	font-size: 21px !important;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.uf-tb-ic:hover, .uf-tb-ic:focus-visible { background: var(--tb-hover); color: #fff !important; outline: none; }
.uf-tb-mod { color: #5fd3dc !important; }
.uf-tb-admin { color: #8fdc9c !important; }
.uf-tb-badge {
	position: absolute;
	top: 5px;
	right: 4px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	box-sizing: border-box;
	border: 2px solid var(--tb-bg2);
	border-radius: 999px;
	background: var(--tb-red);
	color: #fff;
	font: 700 11px/15px Arial, sans-serif;
	text-align: center;
}
.uf-tb-badge[data-n="0"], .uf-tb-badge[data-n=""] { display: none; }

/* Kullanıcı */
.uf-tb-user {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding-left: 16px;
	border-left: 1px solid var(--tb-line);
}
.uf-tb-me {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 4px 4px;
	border-radius: 14px;
	color: #fff !important;
	transition: background .15s;
}
.uf-tb-me:hover { background: var(--tb-hover); }
.uf-tb-av { position: relative; flex: none; width: 46px; height: 46px; }
.uf-tb-av img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.uf-tb-dot {
	position: absolute;
	left: -1px;
	top: 3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 2px var(--tb-bg);
}
.uf-tb-hi { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.uf-tb-hi small { color: var(--tb-soft); font-size: 13px; }
.uf-tb-hi b { max-width: 180px; overflow: hidden; color: #fff; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Açılır menü */
.uf-tb-drop {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 250px;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(16, 30, 45, .25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s, transform .15s, visibility .15s;
	text-align: left;
}
.uf-tb-user.open .uf-tb-drop { opacity: 1; visibility: visible; transform: none; }
.uf-tb-drop::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 18px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
}
.uf-tb-drop-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.uf-tb-drop-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.uf-tb-drop-head b { display: block; color: #1f2d3a; font-size: 15px; }
.uf-tb-drop-head small { color: #52606d; font-size: 12px; }
.uf-tb-drop a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #1f2d3a !important;
	font-size: 14px;
}
.uf-tb-drop a i { width: 18px; color: #52606d; font-size: 15px; text-align: center; }
.uf-tb-drop a:hover { background: #f1f4f7; }
.uf-tb-drop .uf-tb-out, .uf-tb-drop .uf-tb-out i { color: #d23b5f !important; }
.uf-tb-sep { display: block; height: 1px; margin: 6px 4px; background: #eef1f5; }

/* Ziyaretçi butonları */
.uf-tb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}
.uf-tb-btn-ghost { border: 2px solid rgba(255, 255, 255, .35); color: #fff !important; }
.uf-tb-btn-ghost:hover { border-color: #fff; background: var(--tb-hover); }
.uf-tb-btn-main { border: 2px solid var(--tb-accent); background: var(--tb-accent); color: #10261f !important; }
.uf-tb-btn-main:hover { background: #27b487; border-color: #27b487; }

/* Temanın genel buton/form stillerini sıfırla */
.uf-topbar button { margin: 0; padding: 0 !important; box-shadow: none !important; background-image: none !important; text-shadow: none; line-height: 1; }
.uf-topbar form { margin: 0; padding: 0; }

/* Tablet */
@media (max-width: 1100px) {
	.uf-tb-premium { display: none; }
	.uf-tb-hi { display: none; }
}
@media (max-width: 900px) {
	.uf-tb-inner { flex-wrap: wrap; gap: 0 12px; padding: 10px 16px 12px; }
	.uf-tb-search { order: 3; flex: 1 1 100%; height: 46px; margin-top: 8px; }
	.uf-tb-logo img { height: 46px; }
}
/* Telefon */
@media (max-width: 600px) {
	.uf-tb-inner { padding: 8px 10px 10px; }
	.uf-tb-inner { flex-wrap: wrap; }
	.uf-tb-logo img { height: 36px; }
	.uf-tb-right { gap: 2px; }
	.uf-tb-mod, .uf-tb-admin { display: none !important; } /* telefonda yer açmak için */
	.uf-mb-inner { min-height: 54px; padding: 0 8px; gap: 2px; }
	.uf-mb-inner a { height: 40px; padding: 0 12px; font-size: 14px; }
	.uf-tb-icons { gap: 0; padding: 0; }
	.uf-tb-ic { width: 40px; height: 40px; font-size: 19px !important; }
	.uf-tb-hi { display: none; }
	.uf-tb-user { padding-left: 6px; gap: 2px; }
	.uf-tb-me { padding: 2px; }
	.uf-tb-av, .uf-tb-av img { width: 38px; height: 38px; }
	.uf-tb-drop { position: fixed; top: 62px; right: 8px; left: 8px; width: auto; }
	.uf-tb-drop::before { display: none; }
	.uf-tb-btn { height: 40px; padding: 0 14px; font-size: 14px; }
}
