/**
 * Header düzeni — cati-ustasi benzeri yapı, kraft tema renkleri.
 */

/* Eski üst widget satırını gizle (içerik brand row'a taşındı) */
body.kutu-brand-active .top-bar {
	display: none !important;
}

body.kutu-brand-active #masthead .header-wrap {
	background: #fff9f0;
	background-image: var(--kutu-pattern);
	border-bottom: 1px solid rgba(122, 92, 46, 0.14);
	box-shadow: 0 4px 18px rgba(74, 55, 40, 0.08);
}

body.kutu-brand-active .top-header,
body.kutu-brand-active .main-header {
	background: transparent;
}

body.kutu-brand-active .site-header::before {
	display: none;
}

/* Üst iletişim şeridi */
body.kutu-brand-active .kutu-header-contact {
	background: linear-gradient(135deg, #5c452f 0%, #4a3728 55%, #3f2d1f 100%);
	border-bottom: 3px solid var(--kutu-orange);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
	position: relative;
	overflow: hidden;
}

body.kutu-brand-active .kutu-header-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(224, 123, 36, 0.16), transparent);
	pointer-events: none;
}

body.kutu-brand-active .kutu-header-contact__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	position: relative;
	z-index: 1;
}

body.kutu-brand-active .kutu-header-contact__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	padding: 4px 12px 4px 4px;
	border-radius: 999px;
	border: 1px solid rgba(224, 123, 36, 0.45);
	background: rgba(255, 255, 255, 0.05);
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

body.kutu-brand-active .kutu-header-contact__phone:hover,
body.kutu-brand-active .kutu-header-contact__phone:focus {
	background: rgba(224, 123, 36, 0.2);
	border-color: var(--kutu-orange);
	transform: translateY(-1px);
	color: #fff;
}

body.kutu-brand-active .kutu-header-contact__phone-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--kutu-orange), var(--kutu-orange-dark));
	color: #fff;
	font-size: 15px;
	box-shadow: 0 2px 10px rgba(224, 123, 36, 0.45);
	flex-shrink: 0;
}

body.kutu-brand-active .kutu-header-contact__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

body.kutu-brand-active .kutu-header-contact__phone-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 249, 240, 0.75);
}

body.kutu-brand-active .kutu-header-contact__phone-text strong {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #fff;
}

body.kutu-brand-active .kutu-header-contact__social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.kutu-brand-active .kutu-header-contact__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	text-decoration: none;
	color: #fff;
	background: rgba(0, 0, 0, 0.18);
	border: 2px solid rgba(224, 123, 36, 0.55);
	transition: background 0.25s ease, transform 0.2s ease;
	font-size: 15px;
}

body.kutu-brand-active .kutu-header-contact__social a:hover,
body.kutu-brand-active .kutu-header-contact__social a:focus {
	background: linear-gradient(145deg, var(--kutu-orange), var(--kutu-orange-dark));
	transform: translateY(-2px);
	color: #fff;
}

body.kutu-brand-active .kutu-header-contact__social a[href*="wa.me"]:hover {
	background: linear-gradient(145deg, #25d366, #1ebe57);
}

/* Son paylaşımlar ticker */
body.kutu-brand-active .kutu-recent-ticker {
	width: 100%;
	padding: 8px 0 6px;
	border-bottom: 1px solid rgba(122, 92, 46, 0.1);
	background: rgba(255, 249, 240, 0.65);
}

body.kutu-brand-active .kutu-recent-ticker__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 14px;
}

body.kutu-brand-active .kutu-recent-ticker__label {
	flex: 0 0 auto;
	margin: 0;
	color: var(--kutu-kraft-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0.8;
}

body.kutu-brand-active .kutu-recent-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

body.kutu-brand-active .kutu-recent-ticker__track {
	display: flex;
	width: max-content;
	animation: kutu-recent-ticker-scroll 38s linear infinite;
}

body.kutu-brand-active .kutu-recent-ticker:hover .kutu-recent-ticker__track,
body.kutu-brand-active .kutu-recent-ticker:focus-within .kutu-recent-ticker__track {
	animation-play-state: paused;
}

body.kutu-brand-active .kutu-recent-ticker__group {
	display: inline-flex;
	align-items: center;
	padding-right: 48px;
}

body.kutu-brand-active .kutu-recent-ticker__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0 22px 0 0;
	margin-right: 22px;
	color: var(--kutu-kraft-dark);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

body.kutu-brand-active .kutu-recent-ticker__item::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--kutu-orange);
	opacity: 0.55;
	transform: translateY(-50%);
}

body.kutu-brand-active .kutu-recent-ticker__group .kutu-recent-ticker__item:last-child::after {
	display: none;
}

body.kutu-brand-active .kutu-recent-ticker__item:hover,
body.kutu-brand-active .kutu-recent-ticker__item:focus {
	color: var(--kutu-orange-dark);
}

@keyframes kutu-recent-ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Logo | Tıkla Ara | Dil satırı */
body.kutu-brand-active .kutu-header-brand-row {
	padding: 0;
	border-bottom: 1px solid rgba(122, 92, 46, 0.1);
}

body.kutu-brand-active .kutu-header-brand-row__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: auto max-content auto auto;
	align-items: center;
	gap: 18px 24px;
}

body.kutu-brand-active .kutu-header-brand-row__logo {
	justify-self: start;
	margin: 0;
	padding: 0;
}

body.kutu-brand-active .kutu-header-brand-row__logo #site-branding {
	float: none;
	width: auto;
	text-align: left;
	margin: 0;
	padding: 0;
}

body.kutu-brand-active .kutu-header-brand-row__logo #site-detail {
	margin: 0;
	padding: 0;
}

body.kutu-brand-active .kutu-header-brand-row__logo .custom-logo-link {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 0;
}

body.kutu-brand-active .kutu-header-brand-row__logo .custom-logo-link .custom-logo,
body.kutu-brand-active .kutu-header-brand-row__logo .custom-logo {
	max-height: 220px;
	width: auto !important;
	height: auto !important;
	margin: 0;
	padding: 0;
}

body.kutu-brand-active .kutu-header-brand-row__logo #site-title,
body.kutu-brand-active .kutu-header-brand-row__logo #site-description {
	display: none;
}

body.kutu-brand-active .kutu-header-brand-row__call {
	justify-self: start;
	width: auto;
	max-width: fit-content;
	margin-left: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

body.kutu-brand-active .kutu-call-banner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	transition: transform 0.25s ease;
}

body.kutu-brand-active .kutu-call-banner:hover,
body.kutu-brand-active .kutu-call-banner:focus {
	transform: translateY(-2px) scale(1.02);
	box-shadow: none;
}

body.kutu-brand-active .kutu-call-banner img {
	display: block;
	width: 198px;
	max-width: 198px;
	height: auto;
}

body.kutu-brand-active .kutu-header-brand-row__lang {
	justify-self: end;
}

body.kutu-brand-active .kutu-lang-switcher {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 120px;
}

body.kutu-brand-active .kutu-lang-switcher .gtranslate_wrapper,
body.kutu-brand-active .kutu-lang-switcher .gt_container {
	display: flex !important;
	justify-content: flex-end;
}

body.kutu-brand-active .kutu-lang-switcher--widget .widget {
	margin: 0;
}

body.kutu-brand-active .kutu-lang-switcher--widget .widget:not(:has(.gtranslate_wrapper)) {
	display: none;
}

body.kutu-brand-active .kutu-header-brand-row__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

body.kutu-brand-active .kutu-header-brand-row__tools .header-search {
	background: var(--kutu-kraft-deep) !important;
	border-radius: 8px;
}

/* Ana menü */
body.kutu-brand-active #sticky-header,
body.kutu-brand-active .is-sticky #sticky-header {
	background: linear-gradient(180deg, #5c452f 0%, #4a3728 100%) !important;
	border-bottom: 3px solid var(--kutu-orange) !important;
	box-shadow: 0 4px 16px rgba(47, 36, 24, 0.2) !important;
}

body.kutu-brand-active #sticky-header .main-navigation a,
body.kutu-brand-active .is-sticky #sticky-header .main-navigation a {
	color: rgba(255, 249, 240, 0.95) !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
}

body.kutu-brand-active #sticky-header .main-navigation a:hover,
body.kutu-brand-active #sticky-header .main-navigation ul li.current-menu-item > a,
body.kutu-brand-active #sticky-header .main-navigation ul li.current_page_item > a,
body.kutu-brand-active #sticky-header .main-navigation ul li:hover > a {
	color: #ffd4a8 !important;
	background: rgba(255, 255, 255, 0.08);
}

body.kutu-brand-active #sticky-header .line-bar,
body.kutu-brand-active #sticky-header .line-bar::before,
body.kutu-brand-active #sticky-header .line-bar::after {
	background-color: #fff !important;
}

body.kutu-brand-active .kutu-menu-toggle-inner,
body.kutu-brand-active .kutu-menu-label {
	display: none;
}

@media only screen and (max-width: 980px) {
	body.kutu-brand-active .kutu-header-brand-row__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo tools"
			"call call"
			"lang lang";
	}

	body.kutu-brand-active .kutu-header-brand-row__logo { grid-area: logo; }

	body.kutu-brand-active .kutu-header-brand-row__logo .custom-logo-link .custom-logo,
	body.kutu-brand-active .kutu-header-brand-row__logo .custom-logo {
		width: auto !important;
		height: auto !important;
		max-height: 275px;
		max-width: min(85vw, 400px);
		margin: 0;
		padding: 0;
	}

	body.kutu-brand-active .kutu-header-brand-row__call {
		grid-area: call;
		justify-self: center;
		width: 100%;
		max-width: none;
		margin-left: 0;
	}

	body.kutu-brand-active .kutu-call-banner img {
		width: min(198px, 100%);
		max-width: min(198px, 100%);
	}
	body.kutu-brand-active .kutu-header-brand-row__lang {
		grid-area: lang;
		justify-self: center;
	}
	body.kutu-brand-active .kutu-header-brand-row__tools { grid-area: tools; }

	body.kutu-brand-active .kutu-recent-ticker__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	body.kutu-brand-active #site-navigation {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}

	body.kutu-brand-active .kutu-menu-toggle-inner {
		display: inline-flex;
		align-items: center;
		gap: 10px;
	}

	body.kutu-brand-active .kutu-menu-label {
		display: inline;
		color: #fff;
		font-size: 12px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}
}

@media only screen and (max-width: 600px) {
	body.kutu-brand-active .kutu-header-contact__inner {
		padding: 7px 14px;
	}

	body.kutu-brand-active .kutu-header-contact__phone-label {
		display: none;
	}

	body.kutu-brand-active .kutu-call-banner img {
		width: min(170px, 88vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.kutu-brand-active .kutu-recent-ticker__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
	}

	body.kutu-brand-active .kutu-recent-ticker__group[aria-hidden="true"] {
		display: none;
	}
}
