/* ========== SOFTXPLORERS — ORTAK MENÜ & FOOTER STİLLERİ ========== */
/* Bu dosya shared-layout.js ile birlikte çalışır; tüm sayfalar aynı başlık ve footer görünümünü buradan alır. */

body.menu-open { overflow: hidden; }

#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #7BA0FF);
  z-index: 90; transition: width .08s linear;
}

/* ========== HEADER ========== */
#header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 80;
  transition: top .35s var(--ease);
}
#header .shell {
  max-width: 1180px; margin: 0 auto;
  padding: 0 16px;
}
#header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 14px 0 10px;
  background: #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(228,223,214,.9);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(12,27,42,.04);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s ease, border-radius .35s ease;
}
#header.is-scrolled .bar {
  height: 58px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(12,27,42,.08);
  border-radius: 14px;
}
#header.is-scrolled { top: 10px; }

/* logo.png 500x500 kare; marka alanı yalnızca 394x110 px (ortada), gerisi beyaz boşluk.
   Bu yüzden görsel büyütülüp kutuya kırpılıyor: marka büyük görünür, beyaz zemin taşmaz. */
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  width: 126px; height: 38px;
  overflow: hidden;
  background: transparent; padding: 0;
  transition: width .35s var(--ease), height .35s var(--ease), opacity .3s ease;
}
.logo-chip img {
  display: block;
  width: 155px; height: 155px;
  max-width: none;
  flex: none;
}
#header.is-scrolled .logo-chip { width: 112px; height: 34px; }
#header.is-scrolled .logo-chip img { width: 138px; height: 138px; }

.nav-a {
  position: relative; color: rgba(12,27,42,.55);
  font-size: 13px; font-weight: 600;
  transition: color .3s ease, transform .3s var(--ease);
}
.nav-a:hover, .nav-a.is-active { color: var(--ink); transform: translateY(-1px); }
.nav-a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-a:hover::after, .nav-a.is-active::after { transform: scaleX(1); }

/* ========== BUTONLAR ========== */
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, #1a3a66, var(--accent));
  transform: translateX(-101%); transition: transform .45s var(--ease); z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(12,27,42,.18); }
.btn-primary:active { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary .arr { transition: transform .3s var(--ease); display: inline-block; }
.btn-primary:hover .arr { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid rgba(12,27,42,.14);
  background: rgba(255,254,251,.7);
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.btn-ghost:hover {
  border-color: rgba(12,27,42,.35);
  background: #fff; transform: translateY(-2px);
}

/* ========== MOBİL MENÜ ========== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(12,27,42,.4); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 86;
  width: min(400px, 92vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  box-shadow: -24px 0 60px rgba(12,27,42,.12);
}
.drawer.open { transform: translateX(0); }
.drawer-link {
  opacity: 0; transform: translateX(18px);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s ease;
}
.drawer-link:hover { color: var(--accent); }
.drawer.open .drawer-link { opacity: 1; transform: none; }
.drawer.open .drawer-link:nth-child(1) { transition-delay: .08s; }
.drawer.open .drawer-link:nth-child(2) { transition-delay: .14s; }
.drawer.open .drawer-link:nth-child(3) { transition-delay: .2s; }
.drawer.open .drawer-link:nth-child(4) { transition-delay: .26s; }
.drawer.open .drawer-link:nth-child(5) { transition-delay: .32s; }
.drawer.open .drawer-link:nth-child(6) { transition-delay: .38s; }
.drawer.open .drawer-link:nth-child(7) { transition-delay: .44s; }

/* ========== FOOTER ========== */
.foot-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 148px; height: 44px;
  overflow: hidden;
  background: transparent;
  border-radius: 0; padding: 0;
}
.foot-logo-chip img {
  display: block;
  width: 182px; height: 182px;
  max-width: none;
  flex: none;
}
#site-footer footer { background: #fff !important; }
.to-top {
  transition: background .3s ease, color .3s ease, transform .3s var(--ease);
}
.to-top:hover {
  background: var(--ink); color: #fff; transform: translateY(-3px);
}

/* ========== SABİT WHATSAPP ========== */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 75;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.35);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(37,211,102,.45);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .drawer-link { opacity: 1 !important; transform: none !important; transition: none !important; }
}
