﻿/* Altin orbit kenar animasyonu - hairtransplantofturkiye.com (g2-header-cta) usulu */
@property --g-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:is(.hpf form .wpcf7-submit) {
	position: relative;
	isolation: isolate;
	/* --g-angle btn-orbit.js ile donduruluyor (tum tarayicilarda akici kayma) */
}

/* hpz__btn--gold ve hcalc-cf__btn--solid SVG dash border kullaniyor; orbit halkasi kapali */

/* Ic kenar: conic-gradient halka (mask ile ic delinir) - "yakar gibi" parlak kuyruk */
:is(.hpf form .wpcf7-submit)::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: conic-gradient(
		from var(--g-angle),
		transparent 0deg, transparent 200deg,
		rgba(242, 210, 104, 0.25) 250deg,
		#f2d268 280deg,
		#fff9e0 295deg,
		#fffef2 312deg,
		#fff 325deg,
		#fff9e0 338deg,
		#f2d268 349deg,
		rgba(242, 210, 104, 0.35) 356deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
	opacity: 1;
}

/* Dis glow: genis ve bulanik - ates gibi */
:is(.hpf form .wpcf7-submit)::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: inherit;
	padding: 5px;
	background: conic-gradient(
		from var(--g-angle),
		transparent 0deg, transparent 200deg,
		rgba(242, 210, 104, 0.35) 250deg,
		#f2d268 285deg,
		#fff9e0 305deg,
		#fff 322deg,
		#fff9e0 336deg,
		rgba(242, 210, 104, 0.5) 350deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	filter: blur(6px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.8;
}

/* prefers-reduced-motion: JS da yurutme */
@media (prefers-reduced-motion: reduce) {
	/* btn-orbit.js bu kosulu kontrol edip baslamaz */
	body.btn-orbit-no-motion { --g-angle: 0deg; }
}

/* ================= Contact Us: SVG dash kayan border ================= */
.menu-mainmenu-container a[href*="/contact"],
#mobilemenu a[href*="/contact"] {
	position: relative;
	display: inline-block;
	border-radius: 12px;
	border: 1px solid rgba(242, 210, 104, 0.22);
	padding: 6px 18px;
}
.htot-svg-border {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.htot-svg-border rect {
	fill: none;
	stroke: #f2d268;
	stroke-width: 2.5;
	stroke-dasharray: 22 78; /* pathLength=100 biriminde: parlak kuyruk + bosluk */
	stroke-linecap: round;
	animation: htot-border-move 2.6s linear infinite;
}
@keyframes htot-border-move {
	to { stroke-dashoffset: -100; } /* pathLength=100 -> tam tur, kesintisiz dongu */
}

/* Contact sayfasi (htot-gcontact): kanal kartlari + Submit */
.gcx-contact .gcx-channel,
.gcx-contact .gcx-submit,
/* Hero analiz formu Continue butonu (pill sekil) */
.hpf__next,
/* Hero butonu + Greft hesaplayici form butonu */
.hpz__btn--gold,
.hcalc-cf__btn--solid {
	position: relative;
	overflow: visible;
}
/* Continue + solid altin butonlarda cizgiyi koyu kontrast yap (krem-altin gorunmez) */
.hpf__next .htot-svg-border rect,
.hcalc-cf__btn--solid .htot-svg-border rect {
	stroke: #241a08;
}

/* Show More butonlari (Elementor): Contact Us ile ayni altin stil */
.elementor-element-4454b1b a.elementor-button,
.elementor-element-66ab3de a.elementor-button,
.elementor-element-e3aa7a7 a.elementor-button,
.elementor-element-1c16d48 a.elementor-button,
.elementor-element-9b83755 a.elementor-button,
.elementor-element-3bb5cd6 a.elementor-button {
	position: relative;
	display: inline-flex;
	border-radius: 12px;
	background: transparent !important;
	border: 1px solid rgba(242, 210, 104, 0.22) !important;
	color: #f2d268 !important;
	padding: 8px 22px;
	overflow: visible;
}
.elementor-element-4454b1b a.elementor-button:hover,
.elementor-element-66ab3de a.elementor-button:hover,
.elementor-element-e3aa7a7 a.elementor-button:hover,
.elementor-element-1c16d48 a.elementor-button:hover,
.elementor-element-9b83755 a.elementor-button:hover,
.elementor-element-3bb5cd6 a.elementor-button:hover {
	border-color: rgba(242, 210, 104, 0.5) !important;
	color: #fff9e0 !important;
}
@media (prefers-reduced-motion: reduce) {
	.htot-svg-border rect { animation: none; opacity: 0.6; }
}
