/**
 * Site header (hesap tarzı) + Mertpin data-theme uyumu
 * :root[data-theme] frontend.blade ile senkron (gece/gündüz)
 */

/* ----- Genel: gövde + ana içerik metni (gece/gündüz okunabilirlik) ----- */
:root[data-theme="light"] body {
	color: var(--mp-text, #1a1a1f);
	background-color: var(--mp-bg, #f3f4f6);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:root[data-theme="dark"] body,
body.dark {
	color: var(--mp-text, #f3f4f6);
	background-color: var(--background-color, #121212);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:root[data-theme="dark"] .content,
body.dark .content {
	color: var(--mp-text, #f3f4f6);
}
:root[data-theme="light"] .content,
body:not(.dark) .content {
	color: var(--mp-text, #1a1a1f);
}

:root[data-theme="dark"] .content p,
body.dark .content p {
	color: rgba(243, 244, 246, 0.92);
}
:root[data-theme="light"] .content p,
body:not(.dark) .content p {
	color: rgba(26, 26, 31, 0.9);
}

:root[data-theme="dark"] .content .text-muted,
body.dark .content .text-muted {
	color: var(--mp-muted, #b8b8c4) !important;
}
:root[data-theme="light"] .content .text-muted,
body:not(.dark) .content .text-muted {
	color: var(--mp-muted, #5c6370) !important;
}

:root[data-theme="dark"] .content .text-secondary,
body.dark .content .text-secondary {
	color: #a1a1aa !important;
}
:root[data-theme="light"] .content .text-secondary,
body:not(.dark) .content .text-secondary {
	color: #525860 !important;
}

:root[data-theme="dark"] .content .small,
body.dark .content .small {
	color: var(--mp-muted, #b0b0b8);
}
:root[data-theme="light"] .content .small,
body:not(.dark) .content .small {
	color: #5a6169;
}

:root[data-theme="dark"] .content h1,
:root[data-theme="dark"] .content h2,
:root[data-theme="dark"] .content h3,
:root[data-theme="dark"] .content h4,
:root[data-theme="dark"] .content h5,
:root[data-theme="dark"] .content h6,
body.dark .content h1,
body.dark .content h2,
body.dark .content h3,
body.dark .content h4,
body.dark .content h5,
body.dark .content h6 {
	color: #fafafa;
}
:root[data-theme="light"] .content h1,
:root[data-theme="light"] .content h2,
:root[data-theme="light"] .content h3,
:root[data-theme="light"] .content h4,
:root[data-theme="light"] .content h5,
:root[data-theme="light"] .content h6,
body:not(.dark) .content h1,
body:not(.dark) .content h2,
body:not(.dark) .content h3,
body:not(.dark) .content h4,
body:not(.dark) .content h5,
body:not(.dark) .content h6 {
	color: #111827;
}

:root[data-theme="dark"] .site-header .logo img.img-fluid.light,
:root[data-theme="dark"] .site-header .logo img.light {
	display: none !important;
}
:root[data-theme="dark"] .site-header .logo img.img-fluid.dark,
:root[data-theme="dark"] .site-header .logo img.dark {
	display: block !important;
}
:root[data-theme="light"] .site-header .logo img.img-fluid.light,
:root[data-theme="light"] .site-header .logo img.light {
	display: block !important;
}
:root[data-theme="light"] .site-header .logo img.img-fluid.dark,
:root[data-theme="light"] .site-header .logo img.dark {
	display: none !important;
}

/* Canlı arama (serchajax) sonuç kutusu */
#siteHeaderLiveSearch {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 6px;
	z-index: 1080;
	background: var(--mp-card, #1e1e24);
	border: 1px solid var(--mp-border, #2a2a32);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	max-height: 360px;
	overflow: hidden;
}
:root[data-theme="light"] #siteHeaderLiveSearch {
	background: #fff;
	border-color: #e5e7eb;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
#siteHeaderLiveSearch .body {
	max-height: 340px;
	overflow-y: auto;
	padding: 8px 12px;
}
#siteHeaderLiveSearch ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#siteHeaderLiveSearch .search-item {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}
#siteHeaderLiveSearch .search-item:hover {
	background: rgba(74, 222, 128, 0.12);
}
.search-box {
	position: relative;
}

/* ----- Mobil (≤1199px): arama kutusu .show + fixed header altı ----- */
@media (max-width: 1199px) {
	.site-header .search-box-container.show {
		top: 90px !important;
		left: 12px !important;
		right: 12px;
		width: auto !important;
		max-width: none;
		z-index: 2147483000 !important;
	}
	/* ÖNEMLİ: cover, search-box'tan DÜŞÜK z-index — yoksa şeffaf overlay inputun üstünde kalır */
	.site-header .search-box-container .search-cover {
		z-index: 1 !important;
	}
	.site-header .search-box-container.show .search-box {
		position: relative;
		z-index: 20 !important;
		max-width: 100%;
		background-color: #fff !important;
		border: 1px solid #e5e7eb !important;
		box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
		pointer-events: auto;
	}
	body.dark .site-header .search-box-container.show .search-box {
		background-color: #1e1e24 !important;
		border-color: #2a2a32 !important;
	}
	.site-header .search-box-container.show .search-input {
		background-color: #fff !important;
		color: #111 !important;
		opacity: 1 !important;
		-webkit-text-fill-color: #111 !important;
	}
	body.dark .site-header .search-box-container.show .search-input {
		background-color: #1e1e24 !important;
		color: #f3f4f6 !important;
		-webkit-text-fill-color: #f3f4f6 !important;
	}
	.site-header .search-box-container.show .populer-search {
		display: block !important;
		background: inherit;
	}
	#siteHeaderLiveSearch {
		position: relative;
		top: auto;
		margin-top: 8px;
		z-index: 25 !important;
	}
	/* Gündüz modunda sabit üst bar (main2 #fff) — açıkça */
	body:not(.dark) .site-header .header-middle .header-logo {
		background-color: #fff !important;
	}
	body.dark .site-header .header-middle .header-logo {
		background-color: #1e1e1f !important;
	}
	body.dark .site-header .header-nav.show {
		background-color: #1e1e1f !important;
	}
	body.dark .site-header .header-nav ul {
		background-color: #1e1e1f !important;
	}
	/* Menü açıkken görünen alttaki header-top */
	body.dark .site-header .header-top.show {
		background-color: #1e1e1f !important;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
	/* Mega menünün üstünde kalsın (aynı z-index’te altta kalabiliyor) */
	.site-header .header-top.show {
		z-index: 3147483640 !important;
		display: flex !important;
		align-items: center;
	}
}

/* Alt mobil menü ile çakışmayı azalt */
@media (max-width: 1199px) {
	.mobilbottommenu {
		z-index: 99990;
	}
}

/* Ana içerik: sabit üst bar (~90px) — 86px fazla boşluk veriyordu */
@media (max-width: 1199px) {
	main .content,
	.content {
		padding-top: 0 !important;
	}
	.blogarea .bloghead {
		padding-top: 8px;
		padding-bottom: 12px;
	}
	.site-header .mobile-main-menu {
		padding-bottom: 24px !important;
	}
}

/* Alt sepet/sohbet çubuğu (≤768) içeriği kesmesin — header-top menüyle geldiği için sabit 120px padding yok */
@media (max-width: 768px) {
	main .content,
	.content {
		padding-bottom: 72px !important;
	}
}

/* Float tabanlı .blogarea/.bloghead yüksekliğinin çökmesini önle */
.content,
.blogarea,
.blogarea .bloghead {
	display: flow-root;
}

/* Hamburger açıkken X ikonu */
.site-header .mobil-menu-btn .mobil-menu-icon--close {
	display: none;
}
.site-header .mobil-menu-btn.open .mobil-menu-icon--bars {
	display: none !important;
}
.site-header .mobil-menu-btn.open .mobil-menu-icon--close {
	display: inline-block !important;
}

/* Ana sayfa kategori swiper: flex içinde img boyutu çökünce görünmez oluyordu */
.blogcat--modern .swiper-slide a img {
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	display: block;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ----- Site footer (site-header / useractive ile uyumlu) ----- */
footer.site-footer {
	float: none;
	clear: both;
	width: 100%;
	margin-top: 48px;
	position: relative;
	border-top: 1px solid #e4e4e4;
	background: #fff;
}

body.dark footer.site-footer,
:root[data-theme="dark"] footer.site-footer {
	border-top-color: rgba(255, 255, 255, 0.08);
	background: #1e1e1f;
}

.site-footer__accent {
	height: 3px;
	width: 100%;
	background: linear-gradient(90deg, var(--mp-accent, #4ade80), rgba(61, 90, 254, 0.85));
	opacity: 0.9;
}

.site-footer.useractive-footer .site-footer__accent {
	height: 4px;
	opacity: 1;
	box-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.site-footer__top {
	border-bottom: 1px solid #e4e4e4;
	padding: 20px 0;
	background: #fff;
}

body.dark .site-footer__top,
:root[data-theme="dark"] .site-footer__top {
	background: #1e1e1f;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-footer__top-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-footer__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-footer__logo img {
	max-height: 56px;
	width: auto;
	max-width: 220px;
	height: auto;
	object-fit: contain;
}

.site-footer__logo img.logo-dark {
	display: none;
}

:root[data-theme="dark"] .site-footer__logo img.logo-light,
body.dark .site-footer__logo img.logo-light {
	display: none !important;
}

:root[data-theme="dark"] .site-footer__logo img.logo-dark,
body.dark .site-footer__logo img.logo-dark {
	display: block !important;
}

:root[data-theme="light"] .site-footer__logo img.logo-light,
body:not(.dark) .site-footer__logo img.logo-light {
	display: block !important;
}

:root[data-theme="light"] .site-footer__logo img.logo-dark,
body:not(.dark) .site-footer__logo img.logo-dark {
	display: none !important;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.site-footer__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid #d8d8e6;
	background: #fff;
	color: #5b5f73;
	font-size: 20px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(73, 73, 73, 0.06);
	transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.site-footer__social-btn:hover {
	color: var(--mp-accent, #4ade80);
	border-color: rgba(74, 222, 128, 0.45);
	background: rgba(74, 222, 128, 0.08);
	transform: translateY(-1px);
}

body.dark .site-footer__social-btn,
:root[data-theme="dark"] .site-footer__social-btn {
	background: #25252c;
	border-color: rgba(255, 255, 255, 0.1);
	color: #c4c6d4;
	box-shadow: none;
}

body.dark .site-footer__social-btn:hover,
:root[data-theme="dark"] .site-footer__social-btn:hover {
	background: rgba(74, 222, 128, 0.12);
	border-color: rgba(74, 222, 128, 0.35);
	color: var(--mp-accent, #4ade80);
}

.site-footer__quick {
	border-bottom: 1px solid #e4e4e4;
	background: #f9fafb;
	padding: 0;
}

body.dark .site-footer__quick,
:root[data-theme="dark"] .site-footer__quick {
	background: #18181c;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-footer__quick-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 0;
}

.site-footer__quick-list li {
	flex: 1 1 auto;
	min-width: 140px;
	text-align: center;
	border-left: 1px solid #e4e4e4;
}

body.dark .site-footer__quick-list li,
:root[data-theme="dark"] .site-footer__quick-list li {
	border-left-color: rgba(255, 255, 255, 0.08);
}

.site-footer__quick-list li:first-child {
	border-left: 0;
}

.site-footer__quick-list a {
	display: block;
	padding: 16px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
}

.site-footer__quick-list a:hover {
	color: #3d5afe;
	background: rgba(61, 90, 254, 0.06);
}

body.dark .site-footer__quick-list a,
:root[data-theme="dark"] .site-footer__quick-list a {
	color: #e5e7eb;
}

body.dark .site-footer__quick-list a:hover,
:root[data-theme="dark"] .site-footer__quick-list a:hover {
	color: var(--mp-accent, #4ade80);
	background: rgba(74, 222, 128, 0.08);
}

.site-footer__body {
	padding: 36px 0 28px;
	background: #fff;
}

body.dark .site-footer__body,
:root[data-theme="dark"] .site-footer__body {
	background: #1e1e1f;
}

.site-footer__heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8e91a3;
	margin: 0 0 16px;
}

body.dark .site-footer__heading,
:root[data-theme="dark"] .site-footer__heading {
	color: #a8adb8;
}

.site-footer__heading--brand {
	font-size: 15px;
	letter-spacing: 0.14em;
	color: #111827;
}

body.dark .site-footer__heading--brand,
:root[data-theme="dark"] .site-footer__heading--brand {
	color: #f9fafb;
	text-shadow: none;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links li {
	margin-bottom: 12px;
}

.site-footer__links a {
	font-size: 15px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__links a:hover {
	color: var(--mp-accent, #4ade80);
}

body.dark .site-footer__links a,
:root[data-theme="dark"] .site-footer__links a {
	color: #d1d5db;
}

/* Kategori gridi — uzun isimler taşmasın */
.site-footer__body .container-xxl {
	overflow-x: hidden;
	max-width: 100%;
}

.site-footer__categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 18px;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 100%;
}

.site-footer__categories li {
	margin: 0;
	min-width: 0;
}

.site-footer__categories a {
	display: block;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.4;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
	padding: 6px 0;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.site-footer__categories a:hover {
	color: var(--mp-accent, #4ade80);
	background: rgba(74, 222, 128, 0.06);
	padding-left: 6px;
	padding-right: 6px;
	margin-left: -6px;
	margin-right: -6px;
}

body.dark .site-footer__categories a,
:root[data-theme="dark"] .site-footer__categories a {
	color: #b8bcc8;
}

@media (max-width: 991px) {
	.site-footer__categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.site-footer__categories {
		grid-template-columns: 1fr;
	}
}

.site-footer__bottom {
	border-top: 1px solid #e4e4e4;
	background: #f3f4f6;
	padding: 18px 0 22px;
}

body.dark .site-footer__bottom,
:root[data-theme="dark"] .site-footer__bottom {
	background: #121214;
	border-top-color: rgba(255, 255, 255, 0.08);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	overflow-x: hidden;
	max-width: 100%;
}

.site-footer__copy {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	color: #4b5563;
	max-width: 100%;
	overflow-wrap: anywhere;
	flex: 1 1 240px;
}

body.dark .site-footer__copy,
:root[data-theme="dark"] .site-footer__copy {
	color: #d4d4d8;
}

.site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: flex-end;
}

.site-footer__legal a {
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__legal a:hover {
	color: #3d5afe;
}

body.dark .site-footer__legal a,
:root[data-theme="dark"] .site-footer__legal a {
	color: #d1d5db;
}

body.dark .site-footer__legal a:hover,
:root[data-theme="dark"] .site-footer__legal a:hover {
	color: var(--mp-accent, #4ade80);
}

@media (max-width: 767px) {
	.site-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.site-footer__legal {
		justify-content: flex-start;
	}
	.site-footer__quick-list li {
		min-width: 100%;
		border-left: 0;
		border-top: 1px solid #e4e4e4;
	}
	.site-footer__quick-list li:first-child {
		border-top: 0;
	}
	body.dark .site-footer__quick-list li,
	:root[data-theme="dark"] .site-footer__quick-list li {
		border-top-color: rgba(255, 255, 255, 0.08);
	}
}
