/**
 * Akyüz Çelik — Metalik header sahnesi (logo altı + menü)
 * Kaynak kıvılcımı, fırçalanmış çelik, animasyonlu ışık taraması
 */

/* ─── Metal sahne kabı ──────────────────────────────────────── */
body.akyuz-brand .akyuz-metal-stage {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, #eef1f5 0%, #d8dde4 18%, #c4cad2 42%, #b8bec8 55%, #2c3238 56%, #1e2329 100%);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.65),
		inset 0 -3px 12px rgba(0, 0, 0, 0.35),
		0 8px 32px rgba(0, 0, 0, 0.18);
}

body.akyuz-brand .akyuz-metal-stage__grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(0, 58, 140, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 58, 140, 0.06) 1px, transparent 1px);
	background-size: 24px 24px;
	mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 58%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 58%);
}

body.akyuz-brand .akyuz-metal-stage__sheen {
	position: absolute;
	inset: -50% -20%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 38%,
		rgba(255, 255, 255, 0.22) 46%,
		rgba(200, 205, 212, 0.45) 50%,
		rgba(255, 255, 255, 0.18) 54%,
		transparent 62%
	);
	animation: akyuz-metal-sheen 5.5s ease-in-out infinite;
}

@keyframes akyuz-metal-sheen {
	0%, 100% { transform: translateX(-35%) skewX(-12deg); opacity: 0.4; }
	50% { transform: translateX(35%) skewX(-12deg); opacity: 0.85; }
}

/* Kaynak kıvılcımları */
body.akyuz-brand .akyuz-spark {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, #7eb8ff 35%, #0056c8 70%, transparent 100%);
	box-shadow: 0 0 8px 2px rgba(0, 86, 200, 0.7);
	z-index: 3;
	pointer-events: none;
	opacity: 0;
}

body.akyuz-brand .akyuz-spark--1 {
	top: 58%;
	left: 12%;
	animation: akyuz-weld-spark 2.8s ease-out infinite;
}

body.akyuz-brand .akyuz-spark--2 {
	top: 72%;
	left: 28%;
	animation: akyuz-weld-spark 3.4s ease-out 0.6s infinite;
}

body.akyuz-brand .akyuz-spark--3 {
	top: 65%;
	right: 18%;
	animation: akyuz-weld-spark 2.5s ease-out 1.2s infinite;
}

body.akyuz-brand .akyuz-spark--4 {
	top: 78%;
	right: 32%;
	animation: akyuz-weld-spark 3.1s ease-out 1.8s infinite;
}

@keyframes akyuz-weld-spark {
	0% {
		opacity: 0;
		transform: translate(0, 0) scale(0.3);
	}
	8% {
		opacity: 1;
		transform: translate(0, 0) scale(1.2);
		box-shadow: 0 0 14px 4px rgba(126, 184, 255, 0.9);
	}
	25% {
		opacity: 0.9;
		transform: translate(18px, -22px) scale(0.8);
	}
	45% {
		opacity: 0.5;
		transform: translate(-12px, -38px) scale(0.5);
	}
	70%, 100% {
		opacity: 0;
		transform: translate(8px, -52px) scale(0.2);
	}
}

/* ─── Ticker: çelik ray ─────────────────────────────────────── */
body.akyuz-brand .akyuz-metal-stage .akyuz-recent-ticker {
	position: relative;
	z-index: 2;
	border-bottom: 2px solid rgba(0, 58, 140, 0.35);
	background:
		linear-gradient(90deg, rgba(0, 58, 140, 0.08), transparent 20%, transparent 80%, rgba(0, 58, 140, 0.08)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(212, 218, 226, 0.35));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.akyuz-brand .akyuz-metal-stage .akyuz-recent-ticker::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #003a8c, #6b7280, #003a8c, transparent);
	opacity: 0.6;
}

/* ─── Logo güvertesi ────────────────────────────────────────── */
body.akyuz-brand .akyuz-logo-deck {
	position: relative;
	z-index: 2;
	padding: 8px 15px !important;
	min-height: 88px;
	align-items: center;
	background:
		radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
		linear-gradient(180deg, #e4e8ed 0%, #d0d6de 100%);
	border-bottom: 1px solid rgba(107, 114, 128, 0.45);
	box-shadow:
		inset 0 2px 4px rgba(255, 255, 255, 0.25),
		inset 0 -4px 10px rgba(44, 50, 56, 0.08);
}

body.akyuz-brand .akyuz-logo-deck::before,
body.akyuz-brand .akyuz-logo-deck::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border: 2px solid #6b7280;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 35%, #e8eaed, #9ca3af 45%, #4b5563 100%);
	box-shadow:
		inset 0 1px 2px rgba(255, 255, 255, 0.6),
		0 1px 3px rgba(0, 0, 0, 0.25);
	z-index: 3;
}

body.akyuz-brand .akyuz-logo-deck::before {
	left: 12px;
	bottom: 10px;
}

body.akyuz-brand .akyuz-logo-deck::after {
	right: 12px;
	bottom: 10px;
}

body.akyuz-brand #site-branding {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: 72px;
	padding: 0 16px !important;
	margin: 0;
	border: 2px solid transparent;
	border-image: linear-gradient(135deg, #9ca3af, #6b7280 40%, #003a8c) 1;
	background: transparent !important;
	box-shadow: 0 4px 16px rgba(0, 58, 140, 0.1);
}

body.akyuz-brand #site-branding #site-detail {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.akyuz-brand .custom-logo-link {
	position: relative;
	display: flex;
	align-items: stretch;
	height: 100%;
	line-height: 0;
}

body.akyuz-brand .custom-logo-link::after {
	content: "";
	position: absolute;
	inset: -3px;
	border: 1px solid rgba(0, 86, 200, 0.22);
	pointer-events: none;
	animation: akyuz-logo-pulse 3s ease-in-out infinite;
}

@keyframes akyuz-logo-pulse {
	0%, 100% { opacity: 0.3; box-shadow: none; }
	50% { opacity: 1; box-shadow: 0 0 12px rgba(0, 86, 200, 0.2); }
}

body.akyuz-brand .custom-logo-link .custom-logo {
	display: block;
	height: 100% !important;
	width: auto !important;
	max-height: 72px;
	max-width: min(320px, 72vw);
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 2px 6px rgba(0, 58, 140, 0.18));
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.akyuz-brand .custom-logo-link:hover .custom-logo {
	transform: scale(1.02);
}

/* ─── Çelik kiriş (logo ile menü arası) ─────────────────────── */
body.akyuz-brand .akyuz-steel-beam {
	position: relative;
	z-index: 4;
	height: 10px;
	background:
		repeating-linear-gradient(
			90deg,
			#3d4550 0px,
			#5c6570 2px,
			#2c3238 4px,
			#4b5563 6px,
			#1a1f26 8px
		);
	border-top: 2px solid #003a8c;
	border-bottom: 1px solid #0a0c0f;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
}

body.akyuz-brand .akyuz-steel-beam__rivet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #d1d5db, #6b7280 50%, #374151);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.5),
		0 1px 2px rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
}

body.akyuz-brand .akyuz-steel-beam::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(126, 184, 255, 0.35), transparent);
	animation: akyuz-beam-scan 4s linear infinite;
	pointer-events: none;
}

@keyframes akyuz-beam-scan {
	0% { transform: translateX(-100%); opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { transform: translateX(100%); opacity: 0; }
}

/* ─── Menü: fırçalanmış çelik + kaynak hattı ───────────────── */
body.akyuz-brand .akyuz-metal-stage #sticky-header,
body.akyuz-brand .akyuz-metal-stage .is-sticky #sticky-header {
	position: relative;
	z-index: 2;
	background:
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 3px,
			rgba(255, 255, 255, 0.02) 3px,
			rgba(255, 255, 255, 0.02) 4px
		),
		linear-gradient(180deg, #4a5360 0%, #2c3238 35%, #1a1f26 70%, #12161b 100%) !important;
	border-bottom: none !important;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.1),
		inset 0 -4px 16px rgba(0, 0, 0, 0.45),
		0 6px 24px rgba(0, 0, 0, 0.35) !important;
	overflow: hidden;
}

body.akyuz-brand .akyuz-metal-stage #sticky-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.06) 40%,
		rgba(126, 184, 255, 0.12) 50%,
		rgba(255, 255, 255, 0.06) 60%,
		transparent
	);
	animation: akyuz-nav-sweep 6s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes akyuz-nav-sweep {
	0%, 100% { left: -100%; }
	50% { left: 140%; }
}

body.akyuz-brand .akyuz-metal-stage #sticky-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		#001f4d,
		#003a8c 15%,
		#0056c8 30%,
		#7eb8ff 50%,
		#0056c8 70%,
		#003a8c 85%,
		#001f4d
	);
	background-size: 200% 100%;
	animation: akyuz-weld-line 3s linear infinite;
	z-index: 1;
}

@keyframes akyuz-weld-line {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation {
	position: relative;
	z-index: 2;
}

body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li > a {
	position: relative;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	font-size: 13px;
	transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #7eb8ff, transparent);
	transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.35s ease;
}

body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li:hover > a::after,
body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li.current-menu-item > a::after {
	width: 80%;
	left: 10%;
}

body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li:hover > a,
body.akyuz-brand .akyuz-metal-stage #sticky-header .main-navigation > .menu > li.current-menu-item > a {
	text-shadow: 0 0 12px rgba(126, 184, 255, 0.55);
}

/* Arama — çelik düğme */
body.akyuz-brand .akyuz-logo-deck .header-search,
body.akyuz-brand .akyuz-logo-deck #search-toggle {
	background:
		linear-gradient(145deg, #5c6570, #2c3238) !important;
	border: 2px solid #003a8c !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.15),
		0 2px 8px rgba(0, 0, 0, 0.3) !important;
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

body.akyuz-brand .akyuz-logo-deck .header-search:hover,
body.akyuz-brand .akyuz-logo-deck #search-toggle:hover {
	transform: translateY(-2px);
	border-color: #7eb8ff !important;
	box-shadow:
		0 0 14px rgba(0, 86, 200, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

@media only screen and (max-width: 980px) {
	body.akyuz-brand .akyuz-logo-deck {
		min-height: 76px;
		padding: 6px 12px !important;
	}

	body.akyuz-brand #site-branding {
		height: 64px;
		padding: 0 12px !important;
	}

	body.akyuz-brand .custom-logo-link .custom-logo {
		max-height: 64px;
	}

	body.akyuz-brand .akyuz-logo-deck::before,
	body.akyuz-brand .akyuz-logo-deck::after {
		width: 10px;
		height: 10px;
	}

	body.akyuz-brand .akyuz-steel-beam {
		height: 8px;
		padding: 0 12px;
	}

	body.akyuz-brand .akyuz-steel-beam__rivet {
		width: 6px;
		height: 6px;
	}

	body.akyuz-brand .akyuz-spark {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.akyuz-brand .akyuz-metal-stage__sheen,
	body.akyuz-brand .akyuz-spark,
	body.akyuz-brand .akyuz-steel-beam::after,
	body.akyuz-brand .akyuz-metal-stage #sticky-header::before,
	body.akyuz-brand .akyuz-metal-stage #sticky-header::after,
	body.akyuz-brand .custom-logo-link::after {
		animation: none !important;
	}

	body.akyuz-brand .akyuz-metal-stage #sticky-header::after {
		background: #003a8c;
		background-size: auto;
	}
}
