/**
 * IdeaPlugins — Premium Hero
 *
 * Verilen HTML tasarımının, cartzilla temasına entegre edilmiş hâli.
 * Tema ile çakışmaması için TÜM class/id/CSS değişkeni/keyframe isimleri
 * "iph-" (IdeaPlugins Hero) önekiyle yeniden adlandırılmıştır. Hiçbir
 * kural, bu hero alanının dışındaki (header, footer, sayfa içeriği)
 * elemanları etkilemez — tüm seçiciler #iph-hero içine scope edilmiştir.
 *
 * @package cartzilla
 */

#iph-hero {
	/* Sadece bu hero alanına özel değişkenler — tema değişkenleriyle
	   (varsa) çakışmasın diye "--iph-" önekiyle tanımlanır ve global
	   :root yerine doğrudan hero kökünde scope edilir. */
	--iph-ink: #05050b;
	--iph-navy-deep: #0a0b1a;
	--iph-navy: #121233;
	--iph-indigo: #3d2b8f;
	--iph-violet: #7c3aed;
	--iph-wp-blue: #2e7dd6;
	--iph-woo-purple: #8f5fd6;
	--iph-gold: #f0b45c;
	--iph-paper: #f6f5ff;
	--iph-muted: #a6a1c9;
	--iph-line: rgba(255, 255, 255, .09);
	--iph-glass: rgba(255, 255, 255, .055);

	position: relative;
	min-height: calc(100vh - 200px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 20px 24px 0;
	background:
		radial-gradient(ellipse 900px 600px at 18% -10%, rgba(60, 43, 143, .55), transparent 60%),
		radial-gradient(ellipse 800px 700px at 85% 10%, rgba(143, 95, 214, .35), transparent 55%),
		radial-gradient(ellipse 1000px 800px at 50% 120%, rgba(46, 125, 214, .25), transparent 60%),
		linear-gradient(180deg, var(--iph-navy-deep) 0%, var(--iph-ink) 55%, #08060f 100%);
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	isolation: isolate;
	z-index: 0;
}

#iph-hero, #iph-hero *, #iph-hero *::before, #iph-hero *::after {
	box-sizing: border-box;
}

#iph-hero ul,
#iph-hero p,
#iph-hero h1 {
	margin: 0;
	padding: 0;
}

/* ---------- ambient mesh orbs ---------- */
#iph-hero .iph-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
	pointer-events: none;
	will-change: transform;
}
#iph-hero .iph-orb-a {
	width: 520px; height: 520px;
	top: -160px; left: -120px;
	background: radial-gradient(circle at 30% 30%, var(--iph-violet), transparent 70%);
	animation: iph-drift-a 22s ease-in-out infinite;
}
#iph-hero .iph-orb-b {
	width: 460px; height: 460px;
	bottom: -180px; right: -100px;
	background: radial-gradient(circle at 60% 40%, var(--iph-wp-blue), transparent 70%);
	animation: iph-drift-b 26s ease-in-out infinite;
}
#iph-hero .iph-orb-c {
	width: 340px; height: 340px;
	top: 38%; right: 12%;
	background: radial-gradient(circle at 50% 50%, var(--iph-gold), transparent 72%);
	opacity: .18;
	animation: iph-drift-c 18s ease-in-out infinite;
}
@keyframes iph-drift-a {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes iph-drift-b {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-50px, -30px) scale(1.05); }
}
@keyframes iph-drift-c {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-30px, 50px) scale(1.15); }
}

/* ---------- fine grain + grid ---------- */
#iph-hero .iph-grain {
	position: absolute; inset: 0;
	opacity: .05;
	pointer-events: none;
	mix-blend-mode: overlay;
}
#iph-hero .iph-grid-overlay {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--iph-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--iph-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 900px 500px at 50% 20%, black 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 900px 500px at 50% 20%, black 20%, transparent 75%);
	opacity: .5;
	pointer-events: none;
}

/* ---------- cursor-tracking energy trail ---------- */
#iph-hero .iph-fx-canvas {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}
@media (max-width: 900px) {
	#iph-hero .iph-fx-canvas { display: none; }
}

/* ---------- floating plugin cards ---------- */
#iph-hero .iph-float-card {
	position: absolute;
	width: 76px; height: 76px;
	opacity: 0;
	animation: iph-card-in .9s cubic-bezier(.16, 1, .3, 1) forwards;
	transition: transform .5s cubic-bezier(.22, 1, .36, 1);
	will-change: transform;
}
#iph-hero .iph-float-inner {
	width: 100%; height: 100%;
	border-radius: 20px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(14px);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
	animation: iph-card-float 7s ease-in-out infinite;
}
#iph-hero .iph-float-card svg { width: 32px; height: 32px; }
#iph-hero .iph-fc-1 { top: 14%; left: 7%; animation-delay: .9s; }
#iph-hero .iph-fc-1 .iph-float-inner { animation-delay: 2.2s; }
#iph-hero .iph-fc-2 { top: 66%; left: 11%; animation-delay: 1.05s; }
#iph-hero .iph-fc-2 .iph-float-inner { animation-delay: 1.4s; }
#iph-hero .iph-fc-3 { top: 20%; right: 8%; animation-delay: 1.2s; }
#iph-hero .iph-fc-3 .iph-float-inner { animation-delay: 2.6s; }
#iph-hero .iph-fc-4 { top: 64%; right: 6%; animation-delay: 1.35s; }
#iph-hero .iph-fc-4 .iph-float-inner { animation-delay: 1.8s; }
@keyframes iph-card-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes iph-card-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-16px) rotate(3deg); }
}
@media (max-width: 1320px) {
	#iph-hero .iph-float-card { display: none; }
}

/* ---------- content ---------- */
#iph-hero .iph-content {
	position: relative;
	/* .iph-trust (below) also uses z-index:3, and comes later in the DOM,
	   so with a tied value it was painting on top of everything in here —
	   including the live-search dropdown. Bumping this above .iph-trust's
	   z-index fixes that stacking tie. */
	z-index: 4;
	max-width: 1100px;
	width: 100%;
	text-align: center;
}

#iph-hero .iph-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 18px 8px 10px;
	border-radius: 100px;
	background: var(--iph-glass);
	border: 1px solid var(--iph-line);
	color: var(--iph-paper);
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: .1px;
	opacity: 0;
	animation: iph-rise .8s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: .15s;
}
#iph-hero .iph-eyebrow .iph-dot {
	width: 20px; height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--iph-wp-blue), var(--iph-woo-purple));
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
#iph-hero .iph-eyebrow .iph-dot svg { width: 11px; height: 11px; }
#iph-hero .iph-eyebrow b { color: var(--iph-paper); font-weight: 600; }
#iph-hero .iph-eyebrow span { color: var(--iph-muted); }

#iph-hero .iph-hero-title {
	margin-top: 26px;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 700;
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	white-space: nowrap;
	background: linear-gradient(100deg, #ffffff 15%, #cfc6ff 45%, #9fb9ff 65%, #ffffff 88%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	background-size: 220% 100%;
	animation: iph-rise 1s cubic-bezier(.16, 1, .3, 1) forwards, iph-sheen 7s linear infinite 1.6s;
	opacity: 0;
	animation-delay: .3s, 1.6s;
}
@media (max-width: 900px) {
	#iph-hero .iph-hero-title { white-space: normal; font-size: clamp(2rem, 7vw, 2.75rem); }
}
@keyframes iph-sheen {
	0% { background-position: 0% 50%; }
	100% { background-position: 220% 50%; }
}

#iph-hero .iph-subtitle {
	margin: 22px auto 0;
	max-width: 700px;
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.6;
	color: var(--iph-muted);
	opacity: 0;
	animation: iph-rise .9s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: .5s;
}

@keyframes iph-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- search ---------- */
#iph-hero .iph-search-wrap {
	/* This element animates `opacity`, which makes the browser promote it
	   to its own stacking context (even though z-index is left at `auto`).
	   Its later siblings in the DOM — .iph-cta-row, .iph-popular — get the
	   same implicit treatment, so without an explicit z-index here they
	   were being painted on top of this one (and everything inside it,
	   including the live-search results dropdown appended into the
	   search form below) purely because of DOM order. Giving this wrapper
	   an explicit, higher z-index makes it — and the dropdown it contains —
	   stack above the rest of the hero content on purpose. */
	position: relative;
	z-index: 5;
	margin: 42px auto 0;
	max-width: 640px;
	perspective: 1200px;
	opacity: 0;
	animation: iph-rise .9s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: .68s;
}

#iph-hero .iph-scope-tabs {
	position: relative;
	display: inline-flex;
	padding: 4px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--iph-line);
	margin-bottom: 16px;
	gap: 2px;
}
#iph-hero .iph-scope-tabs button {
	border: 0; background: transparent; cursor: pointer;
	padding: 8px 18px;
	border-radius: 100px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--iph-muted);
	transition: color .25s ease;
	position: relative;
}
#iph-hero .iph-scope-tabs button.iph-active { color: #0a0b1a; }
#iph-hero .iph-pill-bg {
	position: absolute;
	top: 4px; bottom: 4px; left: 0;
	width: 0;
	border-radius: 100px;
	background: linear-gradient(120deg, var(--iph-gold), #ffd98a);
	pointer-events: none;
	transition: transform .38s cubic-bezier(.65, 0, .35, 1), width .38s cubic-bezier(.65, 0, .35, 1);
}

/* Bu form, tema içindeki mevcut "hero-live-search" özelliğinin çalışması
   için kasıtlı olarak `.hero-search-form` sınıfını da taşır (bkz.
   assets/js/hero-live-search.js -> `.hero-search-form, #masthead form`
   seçicisi). Görsel stiller yine bu dosyadaki .iph-search-box ile
   uygulanır; `.hero-search-form` sadece JS'in formu otomatik
   tanımasını sağlayan bir "davranış" sınıfıdır ve temanın kendi
   `.hero-search-form` CSS kuralları (input-group tabanlı) bizim
   markup'umuzla eşleşmediği için burada hiçbir görsel etkisi olmaz. */
#iph-hero form.iph-search-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 7px 7px 22px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: 0 24px 60px -24px rgba(20, 10, 60, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
	backdrop-filter: blur(18px);
	transform-style: preserve-3d;
	will-change: transform;
	transition: border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
#iph-hero form.iph-search-box::before {
	content: "";
	position: absolute; inset: -1px;
	border-radius: 19px;
	padding: 1px;
	background: linear-gradient(120deg, transparent, rgba(124, 58, 237, 0), transparent);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}
#iph-hero form.iph-search-box:focus-within {
	border-color: rgba(240, 180, 92, .55);
	box-shadow: 0 24px 60px -20px rgba(20, 10, 60, .9), 0 0 0 5px rgba(240, 180, 92, .12), inset 0 1px 0 rgba(255, 255, 255, .15);
}
#iph-hero form.iph-search-box:focus-within::before {
	opacity: 1;
	background: linear-gradient(120deg, var(--iph-gold), var(--iph-woo-purple), var(--iph-wp-blue));
	animation: iph-border-spin 3s linear infinite;
}
@keyframes iph-border-spin {
	0% { filter: hue-rotate(0deg); }
	100% { filter: hue-rotate(360deg); }
}

#iph-hero form.iph-search-box svg.iph-search-icon {
	width: 19px; height: 19px;
	flex-shrink: 0;
	color: var(--iph-muted);
}

/* NOT: input'u saran ".hero-live-search-input-wrap" elemanı burada elle
   oluşturulmaz — hero-live-search.js, sayfa yüklenince input'u otomatik
   olarak bu class'a sahip bir <span> içine alır (bkz.
   assets/js/hero-live-search.js -> initForm()). Genişlik/flex davranışı
   zaten assets/css/hero-live-search.css içinde tanımlıdır; sonuç kutusu
   da (dropdown) böylece tam olarak input genişliğinde açılır. */

#iph-hero form.iph-search-box input.iph-search-input {
	flex: 1;
	width: 100%;
	border: 0; outline: 0; background: transparent;
	font-family: 'Inter', sans-serif;
	font-size: 15.5px;
	color: #fff;
	padding: 12px 6px;
}
#iph-hero form.iph-search-box input.iph-search-input::placeholder { color: #78739c; }

#iph-hero .iph-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0; cursor: pointer;
	padding: 13px 22px;
	border-radius: 13px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	color: #1a0f38;
	background: linear-gradient(120deg, var(--iph-gold), #ffcf7d);
	box-shadow: 0 10px 26px -8px rgba(240, 180, 92, .55);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
	white-space: nowrap;
}
#iph-hero .iph-search-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(240, 180, 92, .7); }
#iph-hero .iph-search-btn svg { width: 16px; height: 16px; }

/* ---------- category CTAs ---------- */
#iph-hero .iph-cta-row {
	margin-top: 22px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 32px;
	opacity: 0;
	animation: iph-rise .9s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: .82s;
}
#iph-hero .iph-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}
#iph-hero .iph-cta::after {
	content: "";
	position: absolute;
	top: -60%; left: -30%;
	width: 34%; height: 220%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .6), transparent);
	transform: translateX(-120%) rotate(18deg);
	transition: transform .75s cubic-bezier(.22, 1, .36, 1);
	pointer-events: none;
}
#iph-hero .iph-cta:hover::after { transform: translateX(420%) rotate(18deg); }
#iph-hero .iph-cta svg {
	width: 18px; height: 18px;
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
#iph-hero .iph-cta:hover svg { transform: scale(1.12) rotate(-6deg); }
#iph-hero .iph-cta:active { transform: translateY(-1px) scale(.98) !important; }
#iph-hero .iph-cta:hover { color: #fff; }

#iph-hero .iph-cta-primary {
	color: #fff;
	background: linear-gradient(120deg, var(--iph-wp-blue), #3f57d0 45%, var(--iph-woo-purple));
	background-size: 160% 100%;
	box-shadow: 0 14px 34px -12px rgba(61, 43, 143, .75);
}
#iph-hero .iph-cta-primary:hover {
	transform: translateY(-4px) scale(1.045);
	background-position: 100% 0;
	animation: iph-pulse-primary 1.7s ease-in-out infinite;
}
@keyframes iph-pulse-primary {
	0%, 100% { box-shadow: 0 18px 40px -12px rgba(124, 58, 237, .65); }
	50% { box-shadow: 0 24px 54px -8px rgba(61, 113, 214, .9); }
}

#iph-hero .iph-cta-secondary {
	color: #fff;
	background: linear-gradient(120deg, #ed5356, #ff8f5c 45%, #fe4f7a);
	background-size: 160% 100%;
	box-shadow: 0 14px 34px -12px rgba(237, 83, 86, .55);
}
#iph-hero .iph-cta-secondary:hover {
	transform: translateY(-4px) scale(1.045);
	background-position: 100% 0;
	animation: iph-pulse-secondary 1.7s ease-in-out infinite;
}
@keyframes iph-pulse-secondary {
	0%, 100% { box-shadow: 0 18px 40px -12px rgba(254, 79, 122, .6); }
	50% { box-shadow: 0 24px 54px -8px rgba(254, 143, 92, .9); }
}

@media (max-width: 640px) {
	#iph-hero { padding: 16px 18px 0; }
	#iph-hero form.iph-search-box { flex-wrap: wrap; padding: 16px; }
	/* Önceden burada "width: 100%" da vardı; bu, input wrapper'ını (arama
	   ikonunun YANINDAKİ değil, ayrı) tek başına tam genişlikte bir satıra
	   zorluyordu — sonucunda ikon kendi başına üstte, input/placeholder
	   metni altta ayrı bir satırda görünüyordu. "width: 100%" kaldırılınca
	   wrapper eski (hero-live-search.css'teki) "flex: 1 1 auto" davranışına
	   dönüyor: ikon + input aynı satırda yan yana kalıyor, kalan boşluğu
	   dolduruyor; satırda artık yer kalmadığından "Search" butonu (order:2,
	   width:100%) otomatik olarak bir alt satıra geçiyor. */
	#iph-hero form.iph-search-box .hero-live-search-input-wrap { order: 1; }
	#iph-hero form.iph-search-box input.iph-search-input { width: 100%; padding: 10px 6px; }
	#iph-hero .iph-search-btn { order: 2; width: 100%; justify-content: center; }
	#iph-hero .iph-cta-row { flex-direction: column; align-items: stretch; }
	#iph-hero .iph-cta { justify-content: center; }
}

/* Ekstra küçük ekranlar (< 400px) için ek güvenlik: eyebrow/başlık
   satırının taşmasını engeller, premium görünüm asla bozulmaz. */
@media (max-width: 380px) {
	#iph-hero .iph-eyebrow { font-size: 12px; padding: 7px 14px 7px 8px; text-align: left; }
	#iph-hero .iph-eyebrow span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
	#iph-hero *, #iph-hero *::before, #iph-hero *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- WP / WooCommerce sonuç rozetleri ----------
   hero-live-search.js, her sonucun içine (varsa) bu sınıfları taşıyan
   küçük bir rozet ekler; hangi kategoriden geldiğini (WordPress /
   WooCommerce) gösterir. Bu kurallar hero-live-search.css'in genel
   .hero-live-search-item yapısına ek olarak çalışır, onu değiştirmez. */
.hero-live-search-item-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 3px 8px;
	border-radius: 100px;
	margin-left: auto;
	white-space: nowrap;
}
.hero-live-search-item-badge--wp {
	color: #2e7dd6;
	background: rgba(46, 125, 214, .12);
}
.hero-live-search-item-badge--woo {
	color: #8f5fd6;
	background: rgba(143, 95, 214, .12);
}
