/* ============================================================
   Varyasyon B Header — vb-header.css
   techreview.com.tr
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&family=Syne:wght@600;700;800&display=swap');

/* ── Tabler Icons CDN (fallback inline) ── */
/* Aşağıdaki satırı kaldırıp functions.php'de wp_enqueue_style ile yükleyebilirsiniz */

/* ── Reset & Kapsayıcı ── */
.vb-header {
	background: #fff;
	border-bottom: 1px solid #e8e6e2;
	position: relative;
}

/* ── Üst Kategori Bar ── */
.vb-cats-bar {
	border-bottom: 1px solid #f0eeeb;
}

.vb-cats {
	display: flex;
	align-items: center;
	padding: 0 0;
	height: 44px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.vb-cats::-webkit-scrollbar { display: none; }

/* Walker çıktısı: doğrudan <a> etiketleri */
.vb-cats > a.vb-cat,
.vb-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	font-family: 'DM Sans', -apple-system, sans-serif;
	font-size: 10.5px;
	color: #777;
	padding: 0 14px;
	height: 100%;
	cursor: pointer;
	border-right: 1px solid #f0eeeb;
	transition: color .15s, background .15s;
	white-space: nowrap;
	text-decoration: none !important;
	justify-content: center;
}
.vb-cat:first-child { padding-left: 0; }
.vb-cat:last-child  { border-right: none; }
.vb-cat:hover       { color: #111; background: #fafaf8; }
.vb-cat i           { font-size: 16px; color: #444; transition: color .15s; }
.vb-cat:hover i     { color: #111; }
.vb-cat.act         { color: #dc1e28; font-weight: 600; }
.vb-cat.act i       { color: #dc1e28; }

/* current-menu-item class'ı WP'den gelir */
.vb-cat.current-menu-item,
.vb-cat.current-menu-ancestor {
	color: #dc1e28;
	font-weight: 600;
}
.vb-cat.current-menu-item i,
.vb-cat.current-menu-ancestor i {
	color: #dc1e28;
}

/* ── Ana Header Satırı ── */
.vb-main-bar {
	height: 68px;
	display: flex;
	align-items: center;
}

.vb-main {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

/* Logo */
.vb-logo-link {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	text-decoration: none !important;
}
.vb-logo-img {
	height: 36px;
	width: auto;
	display: block;
}
.vb-logo-mark {
	width: 36px;
	height: 36px;
	background: #111;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.vb-logo-mark span {
	font-family: 'Syne', sans-serif;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.5px;
}
.vb-logo-name {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.vb-logo-name-t {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 800;
	color: #111;
	letter-spacing: -.5px;
}
.vb-logo-name-s {
	font-family: 'DM Sans', sans-serif;
	font-size: 9.5px;
	color: #bbb;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

/* Dikey ayraç */
.vb-divider {
	width: 1px;
	height: 28px;
	background: #ece9e3;
	margin: 0 4px;
	flex-shrink: 0;
}

/* Primary Nav */
.vb-nav {
	display: flex;
	flex: 1;
}

/* wp_nav_menu ul.vb-nav-list */
.vb-nav .vb-nav-list {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.vb-nav .vb-nav-list li {
	margin: 0;
}
.vb-nav .vb-nav-list > li > a {
	font-family: 'DM Sans', -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	padding: 7px 11px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: background .15s, color .15s;
	white-space: nowrap;
	display: block;
}
.vb-nav .vb-nav-list > li > a:hover {
	background: #f5f3ef;
	color: #111;
}
.vb-nav .vb-nav-list > li.current-menu-item > a,
.vb-nav .vb-nav-list > li.current-menu-ancestor > a {
	background: #111;
	color: #fff;
}

/* Sağ grup */
.vb-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}

/* İkon buton */
.vb-icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #f5f3ef;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s;
	border: 1px solid transparent;
	position: relative;
	padding: 0;
}
.vb-icon:hover { background: #ece9e3; }
.vb-icon i     { font-size: 17px; color: #555; }

/* Arama butonu (button reset) */
.vb-search-btn {
	appearance: none;
	-webkit-appearance: none;
}

/* Store butonu */
.vb-store-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #0038ff;
	color: #fff !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Satoshi', sans-serif;
	font-size: 12px;
	font-weight: 500;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none !important;
	letter-spacing: .1px;
	transition: background .15s;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}
.vb-store-btn:hover { background: #d51212; }
.vb-store-arrow {
	display: inline-block;
	transition: transform .15s;
}
.vb-store-btn:hover .vb-store-arrow { transform: translateX(3px); }

/* ── Koyu Tema Uyumu ── */
.cs-scheme-dark .vb-header,
[data-scheme="dark"] .vb-header {
	background: #1a1a1a;
	border-color: #2a2a2a;
}
.cs-scheme-dark .vb-cats-bar,
[data-scheme="dark"] .vb-cats-bar {
	border-color: #2a2a2a;
}
.cs-scheme-dark .vb-cat,
[data-scheme="dark"] .vb-cat {
	color: #aaa;
	border-right-color: #2a2a2a;
}
.cs-scheme-dark .vb-cat:hover,
[data-scheme="dark"] .vb-cat:hover {
	color: #fff;
	background: #242424;
}
.cs-scheme-dark .vb-cat i,
[data-scheme="dark"] .vb-cat i { color: #999; }
.cs-scheme-dark .vb-logo-mark span,
[data-scheme="dark"] .vb-logo-mark span { color: #fff; }
.cs-scheme-dark .vb-logo-name-t,
[data-scheme="dark"] .vb-logo-name-t { color: #fff; }
.cs-scheme-dark .vb-divider,
[data-scheme="dark"] .vb-divider { background: #333; }
.cs-scheme-dark .vb-nav .vb-nav-list > li > a,
[data-scheme="dark"] .vb-nav .vb-nav-list > li > a { color: #ccc; }
.cs-scheme-dark .vb-nav .vb-nav-list > li > a:hover,
[data-scheme="dark"] .vb-nav .vb-nav-list > li > a:hover { background: #2a2a2a; color: #fff; }
.cs-scheme-dark .vb-nav .vb-nav-list > li.current-menu-item > a,
[data-scheme="dark"] .vb-nav .vb-nav-list > li.current-menu-item > a { background: #fff; color: #111; }
.cs-scheme-dark .vb-icon,
[data-scheme="dark"] .vb-icon { background: #2a2a2a; }
.cs-scheme-dark .vb-icon:hover,
[data-scheme="dark"] .vb-icon:hover { background: #333; }
.cs-scheme-dark .vb-icon i,
[data-scheme="dark"] .vb-icon i { color: #ccc; }

/* ── Mobil — 768px altı header gizle, tema mobil menüsü devrede ── */
@media (max-width: 991px) {
	.vb-cats-bar { display: none; }
	.vb-main-bar .vb-store-btn { display: none; }
	.vb-nav { display: none; }
	.vb-divider { display: none; }
	.vb-main {
		gap: 10px;
		height: 60px;
	}
	.vb-main-bar { height: auto; }
}
