/* ThinkBro site geneli dinamik katman: ilerleme çubuğu, yukarı çık, kart parıltısı, menü hapı, hızlı erişim paleti.
   Tüm sınıf ve değişkenler fx- / --fx- önekli. Davranış: assets/js/fx.js */

:root {
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-cam: rgba(255, 255, 255, 0.95);
  --fx-cizgi: rgba(15, 42, 68, 0.1);
  --fx-metin-soluk: var(--gray-500, #718096);
}

/* 7. Sayfalar arası kısa çapraz geçiş */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.22s; }
}

/* 1. Kaydırma ilerleme çubuğu */
.fx-ilerleme {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: var(--accent-gradient-gold, linear-gradient(90deg, #c89d3b, #f0c75e));
  box-shadow: 0 0 10px rgba(200, 157, 59, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.fx-ilerleme.fx-gorunur { opacity: 1; }

/* 2. Yukarı çık düğmesi */
.fx-yukari {
  position: fixed;
  left: 25px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-warm, #f0c75e);
  background: rgba(6, 30, 54, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 10px 26px -8px rgba(6, 30, 54, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s var(--fx-ease), transform 0.35s var(--fx-ease), visibility 0s linear 0.35s,
              box-shadow 0.3s ease, background 0.3s ease;
}
.fx-yukari.fx-gorunur {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.fx-yukari:hover {
  background: rgba(15, 42, 68, 0.92);
  box-shadow: 0 14px 30px -8px rgba(6, 30, 54, 0.6), 0 0 0 4px rgba(200, 157, 59, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.fx-yukari:hover .fx-yukari-ok { transform: translateY(-2px); }
.fx-yukari:focus-visible {
  outline: 3px solid var(--accent-warm, #f0c75e);
  outline-offset: 3px;
}
.fx-yukari-halka {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.fx-yukari-iz { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 2.5; }
.fx-yukari-doluluk {
  fill: none;
  stroke: var(--accent-warm, #f0c75e);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.fx-yukari-ok {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--fx-ease);
}
@media (max-width: 768px) {
  .fx-yukari { width: 40px; height: 40px; left: 16px; bottom: 20px; }
  .fx-yukari-ok { width: 14px; height: 14px; }
}

/* 3. Sayı sayacı: tabular rakamlar genişliği sabit tutar */
.fx-sayac { font-variant-numeric: tabular-nums; }

/* 4. Kart parıltısı */
.fx-glow-rel { position: relative; }
.fx-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(260px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(240, 199, 94, 0.2), rgba(240, 199, 94, 0.06) 40%, transparent 68%),
    radial-gradient(380px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(66, 125, 200, 0.1), transparent 70%);
  transition: opacity 0.35s ease;
}
.fx-glow-host:hover > .fx-glow { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .fx-glow { display: none; }
}

/* 5. Menüde kayan vurgu */
.navbar-menu { position: relative; }
.fx-hap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(200, 157, 59, 0.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 157, 59, 0.22);
  transition: transform 0.38s var(--fx-ease), width 0.38s var(--fx-ease), height 0.38s var(--fx-ease), opacity 0.22s ease;
}
.fx-hap.fx-gorunur { opacity: 1; }
.fx-hap.fx-hap-ilk { transition: opacity 0.22s ease; }
.navbar-menu.fx-hap-aktif .navbar-link::before { display: none; }
@media (hover: none), (max-width: 768px) {
  .fx-hap { display: none; }
}

/* 6. Hızlı erişim paleti: tetikleyiciler */
.fx-ara {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(15, 42, 68, 0.1);
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.7);
  color: var(--primary-color, #1a365d);
  font-family: var(--font-heading, inherit);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.fx-ara:hover {
  background: #fff;
  border-color: rgba(200, 157, 59, 0.5);
  box-shadow: 0 6px 16px -6px rgba(26, 54, 93, 0.25);
  transform: translateY(-1px);
}
.fx-ara i { font-size: 0.85rem; color: var(--accent-color, #c89d3b); }
.fx-ara-kbd,
.fx-palet-kbd {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(15, 42, 68, 0.12);
  background: rgba(15, 42, 68, 0.05);
  color: var(--gray-600, #4a5568);
  font-family: var(--font-primary, inherit);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fx-ara-mobil {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 8px;
  padding: 0;
  background: rgba(247, 250, 252, 0.65);
  border: 1px solid rgba(15, 42, 68, 0.08);
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--primary-color, #1a365d);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.3s ease;
}
.fx-ara-mobil:hover { background: rgba(26, 54, 93, 0.08); box-shadow: 0 4px 14px -2px rgba(26, 54, 93, 0.18); }
@media (max-width: 1180px) {
  .fx-ara-kbd { display: none; }
  .fx-ara { padding: 0 14px; }
}
@media (max-width: 900px) {
  .fx-ara-metin { display: none; }
  .fx-ara { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 768px) {
  .fx-ara-mobil { display: inline-flex; }
}
.fx-ara:focus-visible,
.fx-ara-mobil:focus-visible {
  outline: 3px solid var(--accent-color, #c89d3b);
  outline-offset: 2px;
}

/* 6. Hızlı erişim paleti: pencere */
.fx-palet {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 15vh 16px 16px;
  background: rgba(6, 30, 54, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.fx-palet[hidden] { display: none; }
.fx-palet.fx-acik { opacity: 1; }
.fx-palet-kutu {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 15vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--fx-cam);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 32px 80px -20px rgba(6, 30, 54, 0.55), 0 8px 24px -8px rgba(6, 30, 54, 0.25);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.28s var(--fx-ease);
}
.fx-palet.fx-acik .fx-palet-kutu { transform: none; }
.fx-palet-ust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--fx-cizgi);
}
.fx-palet-ust > i { color: var(--accent-color, #c89d3b); font-size: 1rem; }
.fx-palet-giris {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 0;
  background: transparent;
  color: var(--gray-900, #1a202c);
  font-family: var(--font-primary, inherit);
  font-size: 1rem;
}
.fx-palet-giris::placeholder { color: var(--gray-500, #718096); }
.fx-palet-giris:focus { outline: none; }
.fx-palet-ust:focus-within { box-shadow: inset 0 -2px 0 var(--accent-color, #c89d3b); }
.fx-palet-liste {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  min-height: 0;
}
.fx-palet-grup {
  padding: 10px 12px 6px;
  color: var(--fx-metin-soluk);
  font-family: var(--font-heading, inherit);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.fx-palet-oge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  scroll-margin: 36px 0 8px;
  position: relative;
}
.fx-palet-oge[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.08) 0%, rgba(200, 157, 59, 0.14) 100%);
  box-shadow: inset 3px 0 0 var(--accent-color, #c89d3b);
}
.fx-palet-simge {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color, #1a365d), var(--primary-dark, #0f2a44));
  color: var(--accent-warm, #f0c75e);
  font-size: 0.95rem;
}
.fx-palet-simge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-palet-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-palet-ad {
  color: var(--gray-900, #1a202c);
  font-family: var(--font-heading, inherit);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-palet-ozet {
  color: var(--gray-600, #4a5568);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-palet-etiket {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(200, 157, 59, 0.16);
  color: #8a6416;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.fx-palet-bos {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-600, #4a5568);
  font-size: 0.95rem;
}
.fx-palet-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--fx-cizgi);
  background: rgba(247, 250, 252, 0.7);
  color: var(--gray-600, #4a5568);
  font-size: 0.76rem;
}
@media (max-width: 480px) {
  .fx-palet { padding-top: 10vh; }
  .fx-palet-kutu { max-height: calc(100vh - 10vh - 16px); }
  .fx-palet-ozet { display: none; }
  .fx-palet-alt { display: none; }
}

/* 8. Hareket azaltma: bu katmandaki hareketler kapalı, imleç izi gizli */
@media (prefers-reduced-motion: reduce) {
  .fx-ilerleme,
  .fx-yukari,
  .fx-yukari-ok,
  .fx-glow,
  .fx-hap,
  .fx-ara,
  .fx-ara-mobil,
  .fx-palet,
  .fx-palet-kutu {
    transition: none !important;
    animation: none !important;
  }
  .fx-yukari, .fx-palet-kutu { transform: none !important; }
  .fx-glow, .fx-hap { display: none !important; }
  #cursor-trail-canvas { display: none !important; }
}

/* Onarım: Hizmetler sayfasında mobilde yatay kaydırmaya yol açan taşma (dekoratif sözde öğe) kırpılır;
   ana sayfadaki .home-page{overflow-x:hidden} ile aynı amaç. */
.services-page {
  overflow-x: clip;
}
