/*! Crea FX 1.0.0 — ortak efekt kütüphanesi (tüm site)
 *
 * KULLANIM (öznitelikler sayfa JS'inde verilir, HTML'e dokunmak gerekmez)
 *   data-fx="yukari | op | olcek | sol | sag"  görünür olunca girer
 *   data-fx="satir"                            başlık satır satır, kelime maskesiyle açılır
 *   data-fx-gecikme="ms"                       öğenin kendi gecikmesi (grupta mutlak)
 *   data-fx-grup [data-fx-ara="ms"]            kapsayıcı görünür olunca içindeki data-fx'ler sırayla girer
 *   data-fx-adimlar > [data-fx-adim]           kaydırmaya bağlı adımlar: tek .fx-aktif, --fx-dolu 0–1
 *   data-fx-ilerleme                           kapsayıcıya --fx-p 0–1 (kaydırma ilerlemesi)
 *   data-fx-dongu > [data-fx-oge]              öğeler sırayla .fx-aktif olur; üzerine gelince durur
 *
 * Süre ve eğri sitenin kuralından: --crea-yumusak (Ek CSS), 0.5 sn.
 * Hareket azaltma tercihinde hiçbir öğe gizlenmez, animasyon oynamaz.
 */

:root {
	--fx-sure: 0.5s;
	--fx-egri: var(--crea-yumusak, cubic-bezier(0.25, 1, 0.33, 1));
	--fx-mesafe: 24px;
	--fx-satir-ara: 80ms;
}

/* Başlangıç durumu — yalnızca JS çalışırken (html.crea-fx) */
.crea-fx [data-fx]:not([data-fx="satir"]):not(.fx-gorundu) {
	opacity: 0;
}
.crea-fx [data-fx="satir"]:not(.fx-bolundu) {
	opacity: 0;
}
.crea-fx .fx-bolundu:not(.fx-gorundu) .fx-kelime {
	transform: translate3d(0, calc(100% + .5em), 0);
}

/* Giriş — animation + "backwards": bitince öğenin kendi transform/hover geçişleri aynen kalır */
.fx-gorundu[data-fx="yukari"] { animation: fx-yukari var(--fx-sure) var(--fx-egri) var(--fx-gecikme, 0ms) backwards; }
.fx-gorundu[data-fx="op"]     { animation: fx-op     var(--fx-sure) var(--fx-egri) var(--fx-gecikme, 0ms) backwards; }
.fx-gorundu[data-fx="olcek"]  { animation: fx-olcek  var(--fx-sure) var(--fx-egri) var(--fx-gecikme, 0ms) backwards; }
.fx-gorundu[data-fx="sol"]    { animation: fx-sol    var(--fx-sure) var(--fx-egri) var(--fx-gecikme, 0ms) backwards; }
.fx-gorundu[data-fx="sag"]    { animation: fx-sag    var(--fx-sure) var(--fx-egri) var(--fx-gecikme, 0ms) backwards; }

.fx-gorundu .fx-kelime {
	animation: fx-satir var(--fx-sure) var(--fx-egri) calc(var(--fx-gecikme, 0ms) + var(--fx-satir, 0) * var(--fx-satir-ara)) backwards;
}

/* Satır maskesi: kelime kendi satırının altından çıkar; Türkçe şapka/çengeller kesilmesin diye pay.
   display/color !important: sayfalardaki "h1 span { display:block; color:… }" gibi kurallar sarmalayıcıyı etkilemesin
   (renk her zaman metnin asıl ebeveyninden gelir). */
.fx-maske {
	display: inline-block !important;
	color: inherit !important;
	overflow: hidden;
	vertical-align: top;
	padding: 0.14em 0;
	margin: -0.14em 0;
}
.fx-kelime {
	display: inline-block !important;
	color: inherit !important;
}

@keyframes fx-yukari { from { opacity: 0; transform: translate3d(0, var(--fx-mesafe), 0); } }
@keyframes fx-op     { from { opacity: 0; } }
@keyframes fx-olcek  { from { opacity: 0; transform: scale(0.96); } }
@keyframes fx-sol    { from { opacity: 0; transform: translate3d(calc(var(--fx-mesafe) * -1), 0, 0); } }
@keyframes fx-sag    { from { opacity: 0; transform: translate3d(var(--fx-mesafe), 0, 0); } }
@keyframes fx-satir  { from { transform: translate3d(0, calc(100% + .5em), 0); } }

@media (prefers-reduced-motion: reduce) {
	.crea-fx [data-fx] { opacity: 1 !important; animation: none !important; }
	.crea-fx .fx-kelime { transform: none !important; animation: none !important; }
}

/* ---------- Header menü: yazı yukarı kayar (Salient Tether "text reveal") ----------
   Yalnızca ana menünün üst seviye bağlantıları; "Sipariş Ver" butonu ve mobil menü hariç.
   Kopya, aradaki .25em boşlukla alttan gelir; kutunun ±.1em payı Türkçe harflerin
   (İ noktası, ç/ş çengeli) kesilmesini önler. */
.fx-menu {
	display: inline-block;
	vertical-align: top;
	overflow: hidden;
	padding: .1em 0;
	margin: -.1em 0;
}
.fx-menu__metin {
	display: block;
	position: relative;
	transition: transform var(--fx-sure) var(--fx-egri);
}
.fx-menu__metin::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: calc(100% + .25em);
	white-space: nowrap;
}
#top nav a:hover .fx-menu__metin,
#top nav a:focus-visible .fx-menu__metin {
	transform: translate3d(0, calc(-100% - .25em), 0);
}
@media (prefers-reduced-motion: reduce) {
	.fx-menu__metin { transition: none; }
	#top nav a:hover .fx-menu__metin,
	#top nav a:focus-visible .fx-menu__metin { transform: none; }
}

/* ---------- Footer linkleri: alt çizgi (Salient Tether footer'ı gibi; Yaşar, 28 Kas 2026) ----------
   Normalde çizgi yok. Üzerine gelince soldan sağa çizilir, ayrılınca sağa doğru çekilerek kaybolur
   (transform-origin hover'da sol, normalde sağ). Bağlantı yazı genişliğinde olsun diye inline-block. */
#footer-outer .crea-f .menu > li > a {
 position: relative;
 display: inline-block !important; /* Ek CSS'te display:block !important */
}
#footer-outer .crea-f .menu > li > a::after {
 content: '';
 position: absolute;
 left: 0;
 right: 0;
 bottom: -3px;
 height: 1px;
 background: currentColor;
 transform: scaleX(0);
 transform-origin: right center;
 transition: transform var(--fx-sure) var(--fx-egri);
 pointer-events: none;
}
#footer-outer .crea-f .menu > li > a:hover::after,
#footer-outer .crea-f .menu > li > a:focus-visible::after {
 transform: scaleX(1);
 transform-origin: left center;
}

/* ---------- Footer büyük "crea" yazısı: kaydırmayla dolum (crea-fx.js logoDolumu) ----------
   Kopya, görselin kendi turkuaz rengidir (karartma filtresi yok). Dikey solma özgün görselle aynı;
   yatay maske --fx-dolu (0–100) ile soldan sağa açılır, ön kenarı yumuşak. */
#footer-outer .fx-logo-kutu { position: relative; }
#footer-outer .crea-f-dev-logo img.fx-logo-dolu {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 margin: 0;
 filter: none !important; /* Ek CSS'teki karartma !important */
 opacity: .14; /* Yaşar: yazı koyu kalmalı; dolum yalnızca hafif turkuaz ışıltı */
 transition: none;
 pointer-events: none;
 --fx-dolu: 0;
 -webkit-mask-image:
  linear-gradient(rgb(0 0 0) 0%, rgb(0 0 0 / .55) 60%, transparent 100%),
  linear-gradient(90deg, #000 calc(var(--fx-dolu) * 1.16% - 16%), transparent calc(var(--fx-dolu) * 1.16%));
 mask-image:
  linear-gradient(rgb(0 0 0) 0%, rgb(0 0 0 / .55) 60%, transparent 100%),
  linear-gradient(90deg, #000 calc(var(--fx-dolu) * 1.16% - 16%), transparent calc(var(--fx-dolu) * 1.16%));
 -webkit-mask-composite: source-in;
 mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) {
 #footer-outer .crea-f .menu > li > a::after { transition: none; }
 #footer-outer .fx-logo-dolu { display: none; }
}

/* Footer CTA bandı (tüm sayfalar): sağdaki 3 buton sabit ~592px; 1000–1440px arasında başlık sütunu
   117–417px'e sıkışıp kelime kelime kırılıyordu. Başlık en az 480px'e sığmıyorsa butonlar alt satıra
   iner (flex-wrap; sınır kendiliğinden ~1420px). Footer'ın kendi stili
   (body #footer-outer … { flex-wrap: nowrap !important }) sonra geldiği için seçici html body ile güçlü. <1000px'te sayfanın kendi mobil düzeni geçerli. */
@media (min-width: 1000px) {
	html body #footer-outer .crea-f .crea-f-bant-ic > .row_col_wrap_12_inner { flex-wrap: wrap !important; gap: 28px 32px; }
	html body #footer-outer .crea-f .crea-f-bant-ic .crea-f-bant-sol { flex: 1 1 480px !important; }
}
