/* ==========================================================================
   hostingler.com - Ust baslik (tum sayfalar)
   - Gece/gunduz ikili secici (.hl-mode)
   - Bildirimler / hesap / sepet: yandan kayan panel yerine ikon altinda menu
   Gece modu: Shufy body.body__dark (gecis butonu) ve html[data-theme] (yukleme)
   ========================================================================== */

body.hl-shell {
	--hl-accent: color-mix(in srgb, var(--btn-primary-bg, #0cbed5) 72%, #0e1a2b);
	--hl-ink: #0e1a2b;
	--hl-text: #2b3a4d;
	--hl-slate: #64748b;
	--hl-faint: #94a3b8;
	--hl-line: #e5e9f0;
	--hl-soft: #f5f7fa;
	--hl-paper: #ffffff;
	--hl-pop-shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 16px 40px -12px rgba(14, 26, 43, .22);
}
[data-theme="dark"] body.hl-shell,
body.hl-shell.body__dark {
	--hl-accent: #14a5b9;
	--hl-ink: #f2f3f5;
	--hl-text: #c9ccd1;
	--hl-slate: #9a9fa8;
	--hl-faint: #6b7079;
	--hl-line: #303236;
	--hl-soft: #2a2b2e;
	--hl-paper: #222326;
	--hl-pop-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
}

/* ---------- Gece / gunduz secici ---------- */
.hl-mode {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-right: 14px;
	padding: 3px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	background: var(--hl-soft);
}
.hl-mode__btn {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hl-faint);
	font-size: 13px;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.hl-mode__btn:hover { color: var(--hl-ink); }
.hl-mode__btn:focus-visible { outline: 2px solid var(--hl-accent); outline-offset: 1px; }
/* aktif mod: beyaz/koyu yuzey + hafif golge */
body.hl-shell:not(.body__dark) .hl-mode__btn--light,
body.hl-shell.body__dark .hl-mode__btn--dark {
	background: var(--hl-paper);
	color: var(--hl-ink);
	box-shadow: 0 1px 2px rgba(14, 26, 43, .12), 0 0 0 1px var(--hl-line);
}
body.hl-shell:not(.body__dark) .hl-mode__btn--light { color: #d97706; }
body.hl-shell.body__dark .hl-mode__btn--dark { color: #7dd3fc; }

/* ---------- Acilir menuler (bildirim, hesap, sepet) ---------- */
body.hl-shell .header__control .header__item .header__body {
	top: calc(100% + 12px);
	right: 0;
	left: auto;
	width: 360px;
	max-width: calc(100vw - 24px);
	padding: 0;
	border: 1px solid var(--hl-line);
	border-radius: 14px;
	background: var(--hl-paper);
	box-shadow: var(--hl-pop-shadow);
	overflow: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
body.hl-shell .header__control .header__item.active .header__body { transform: translateY(0); }
body.hl-shell .header__control .header__item .header__body::before { display: none; }

/* Baslik satiri */
body.hl-shell .header__body .header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: auto;
	margin: 0;
	padding: 16px 18px;
	border-bottom: 1px solid var(--hl-line);
}
body.hl-shell .header__body .header__top .header__title {
	color: var(--hl-ink);
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
}
body.hl-shell .header__body .header__top .header__title a {
	display: inline-block;
	margin-top: 2px;
	color: var(--hl-accent);
	font-size: 12.5px;
	font-weight: 600;
}
body.hl-shell .header__body .actions__button {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: transparent;
	color: var(--hl-slate);
}
body.hl-shell .header__body .actions__button:hover { background: var(--hl-soft); color: var(--hl-ink); }
body.hl-shell .header__body .actions__body {
	border: 1px solid var(--hl-line);
	border-radius: 10px;
	background: var(--hl-paper);
	box-shadow: var(--hl-pop-shadow);
}
body.hl-shell .header__body .actions__option { color: var(--hl-text); font-size: 13.5px; }
body.hl-shell .header__body .actions__option:hover { background: var(--hl-soft); color: var(--hl-ink); }

/* Bildirim listesi */
body.hl-shell .header__notifications .header__list {
	height: auto;
	max-height: 420px;
	padding: 0;
	overflow-y: auto;
}
body.hl-shell .header__notifications .header__message {
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--hl-line);
	border-radius: 0;
	background: transparent;
}
body.hl-shell .header__notifications .header__message:last-child { border-bottom: 0; }
body.hl-shell .header__notifications .header__message:hover { background: var(--hl-soft); }
body.hl-shell .header__notifications .header__line { display: block; margin-bottom: 4px; }
body.hl-shell .header__notifications .header__subtitle {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--hl-ink);
	font-size: 14px;
	font-weight: 600;
}
body.hl-shell .header__notifications .header__subtitle .icon { font-size: 12px; }
body.hl-shell .header__notifications .header__time { margin-top: 2px; color: var(--hl-slate); font-size: 12.5px; }
body.hl-shell .header__notifications .header__time b { color: var(--hl-text); font-weight: 600; }
body.hl-shell .header__notifications .header__content { color: var(--hl-text); font-size: 13.5px; line-height: 1.5; }
body.hl-shell .header__notifications .header__message__body__demise { color: var(--hl-accent); font-size: 12.5px; font-weight: 600; }
/* Bos durum: buyuk illustrasyon yerine sade satir */
body.hl-shell .header__notifications .no__data__error__box { padding: 28px 18px !important; }
body.hl-shell .header__notifications .no__data__error__box .message__image { display: none; }
body.hl-shell .header__notifications .no__data__error__box h6 { color: var(--hl-ink); font-size: 14px; }
body.hl-shell .header__notifications .no__data__error__box p { margin: 2px 0 0; color: var(--hl-slate); font-size: 13px; }
body.hl-shell .header__notifications .py-6 { padding: 0 !important; }

/* Hesap menusu */
body.hl-shell .header__account__infomrmations .header__nav__wrapper { height: auto; max-height: 460px; overflow-y: auto; padding: 6px 0; }
body.hl-shell .header__account__infomrmations .header__nav { padding: 4px 0; border-bottom: 1px solid var(--hl-line); }
body.hl-shell .header__account__infomrmations .header__nav:last-child { border-bottom: 0; }
body.hl-shell .header__account__infomrmations .header__link {
	padding: 10px 18px;
	border-radius: 0;
	color: var(--hl-text) !important;
	font-size: 14px;
	font-weight: 500;
}
body.hl-shell .header__account__infomrmations .header__link:hover { background: var(--hl-soft); color: var(--hl-ink) !important; }
body.hl-shell .header__account__infomrmations .header__link i { width: 18px; color: var(--hl-faint); }
body.hl-shell .header__account__infomrmations .compteur {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--hl-soft);
	color: var(--hl-slate);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

/* Sepet */
body.hl-shell .header__cart .header__list { height: auto; max-height: 420px; overflow-y: auto; }

/* Mobil: menuler ekran genisliginde, baslik altinda */
@media (max-width: 767.98px) {
	body.hl-shell .header__control .header__item .header__body {
		position: fixed;
		top: calc(var(--header-default-height, 64px) + 8px);
		right: 12px;
		left: 12px;
		width: auto;
	}
	.hl-mode { margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	body.hl-shell .header__control .header__item .header__body, .hl-mode__btn { transition: none; }
}
