/* ============================================================
   AYNA DİJİTAL — Mega Menu  |  menu.css
   Bootstrap 5.3 uyumlu, .ad- prefix izole
   ============================================================ */

:root {
  --ad-nh: 70px;
  --ad-bg: #000;
  --ad-border: rgba(255,255,255,.1);
  --ad-muted: rgba(255,255,255,.35);
  --ad-hover-bg: rgba(255,255,255,.05);
  --ad-ease: cubic-bezier(.4,0,.2,1);
  --ad-font: -apple-system,'Helvetica Neue',Helvetica,Arial,sans-serif;
}

/* ── Body offset ── */
body { padding-top: var(--ad-nh) !important; font-family: var(--ad-font); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.ad-navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: var(--ad-nh);
  background: var(--ad-bg) !important;
  border-bottom: 1px solid var(--ad-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 3000;
  font-family: var(--ad-font);
}

.ad-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none !important; color: #fff !important;
  font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.ad-logo img { height: 30px; }
.ad-logo:hover { opacity: .8; }

.ad-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.ad-nav-btns { display: flex; align-items: center; gap: 8px; }

.ad-btn-primary {
  background: #fff; color: #000 !important;
  padding: 9px 22px; border-radius: 40px;
  font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: opacity .2s; white-space: nowrap;
}
.ad-btn-primary:hover { opacity: .85; color: #000 !important; }

.ad-btn-outline {
  background: transparent; color: #fff !important;
  padding: 8px 18px; border-radius: 40px;
  font-size: 14px; font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--ad-border);
  cursor: pointer;
  transition: border-color .2s, opacity .2s; white-space: nowrap;
  font-family: var(--ad-font);
}
.ad-btn-outline:hover:not(:disabled) { border-color: rgba(255,255,255,.45); }
.ad-btn-outline:disabled { opacity: .35; cursor: default; }

.ad-menu-toggle {
  background: transparent;
  border: 1px solid var(--ad-border);
  color: #fff;
  padding: 9px 20px; border-radius: 40px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 600; font-size: 14px;
  font-family: var(--ad-font);
  transition: border-color .2s;
  letter-spacing: .3px;
}
.ad-menu-toggle:hover  { border-color: rgba(255,255,255,.4); }
.ad-menu-toggle.is-open { border-color: rgba(255,255,255,.5); }

.ad-menu-icon {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2.5;
  flex-shrink: 0;
  transition: transform .35s var(--ad-ease);
}
.ad-menu-toggle.is-open .ad-menu-icon { transform: rotate(180deg); }

/* ══════════════════════════════════════
   OVERLAY
══════════════════════════════════════ */
.ad-mega-overlay {
  position: fixed;
  top: var(--ad-nh); left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 2500;
  display: none;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ad-ease), transform .25s var(--ad-ease);
}
.ad-mega-overlay.active {
  display: block;
  animation: adOverlayIn .25s var(--ad-ease) both;
}
@keyframes adOverlayIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ad-mega-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 40px 48px;
  position: relative;
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.ad-bc {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ad-border);
}
.ad-bc a, .ad-bc button {
  color: rgba(255,255,255,.55);
  text-decoration: none !important;
  background: transparent; border: none;
  font-size: 12px; font-family: var(--ad-font);
  cursor: pointer; padding: 0;
  transition: color .2s;
}
.ad-bc a:hover, .ad-bc button:hover { color: #fff; }
.ad-bc .sep { opacity: .3; }
.ad-bc .current { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════
   GRID (Bootstrap row üzerinde çalışır)
══════════════════════════════════════ */
.ad-col-wrap {
  border-right: 1px solid var(--ad-border);
  padding-right: 28px;
  padding-left: 0;
  min-height: 1px;
}
.ad-col-wrap:last-child { border-right: none; padding-right: 0; }
.ad-col-wrap + .ad-col-wrap { padding-left: 28px; }

/* ─── Animasyon keyframes ─── */
@keyframes adFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes adSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes adSlideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes adScaleIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* Yönlü geçiş — ileri (daha derin seçim) */
@keyframes adExitLeft  { to   { opacity: 0; transform: translateX(-32px); } }
@keyframes adEnterRight{ from { opacity: 0; transform: translateX(32px); } }
/* Yönlü geçiş — geri (üst seviyeye dön) */
@keyframes adExitRight { to   { opacity: 0; transform: translateX(32px); } }
@keyframes adEnterLeft { from { opacity: 0; transform: translateX(-32px); } }
/* Panel genişlemesi — yanına yeni kolon ekleniyor */
@keyframes adReveal {
  from { max-width: 0; opacity: 0; overflow: hidden; padding-left: 0; }
  to   { max-width: 2000px; opacity: 1; overflow: visible; }
}

/* ─── Snapshot çıkış animasyonları ─── */
/* Snapshot: mevcut içeriği overlay olarak örter, yeni içerik arkada hazırlanır */
@keyframes adSnapFwd {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}
@keyframes adSnapBack {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}
@keyframes adSnapFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.ad-snap {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10; pointer-events: none;
  background: #000; /* snapshot arkaplanı karartır, yeni içerik doğrudan görünmez */
}

/* ─── Panel yön bazlı girişler ─── */
/* Sağdan (ileri navigasyon) */
.ad-panel-in   { animation: adSlideIn .28s var(--ad-ease) both; }
/* Soldan (geri navigasyon) */
.ad-panel-in-l { animation: adSlideInLeft .28s var(--ad-ease) both; }

/* G2a→G2b: kat-content eski main-grid alanından sola kayarak gelir */
@keyframes adFromR {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ad-from-r { animation: adFromR .38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* G2b→G2a: main-grid kat-content tarafından genişleyerek sağa açılır */
@keyframes adFromL {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ad-from-l { animation: adFromL .38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* G2a→G2b: BolList, kat-content içinde aşağı kayarak açılır */
@keyframes adSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ad-slide-down {
  animation: adSlideDown .3s .28s ease both;
  opacity: 0; /* animasyon başlamadan önce gizli */
}

/* Panel genişleme animasyonu (HizGrid expand) */
.ad-reveal { animation: adReveal .35s cubic-bezier(.25,.46,.45,.94) both; overflow: hidden; }

/* ─── Breadcrumb bağımsız container ─── */
.ad-bc-wrap { overflow: hidden; }
@keyframes adBcEnter {
  from { max-height: 0; opacity: 0; transform: translateY(-10px); margin-bottom: 0; }
  to   { max-height: 80px; opacity: 1; transform: translateY(0); margin-bottom: 28px; }
}
@keyframes adBcExit {
  from { max-height: 80px; opacity: 1; transform: translateY(0); margin-bottom: 28px; }
  to   { max-height: 0; opacity: 0; transform: translateY(-10px); margin-bottom: 0; }
}
.ad-bc-wrap.ad-bc-anim-in  { animation: adBcEnter .3s var(--ad-ease) both; }
.ad-bc-wrap.ad-bc-anim-out { animation: adBcExit  .25s var(--ad-ease) both; }
/* active state: breadcrumb visible — override the collapsed default */
.ad-bc-wrap.ad-bc-active { max-height: none; margin-bottom: 28px; }
/* .ad-bc margin is inside the .ad-bc-wrap — remove margin-bottom from .ad-bc itself */
.ad-bc-wrap .ad-bc { margin-bottom: 0; }

/* Genel içerik fade */
.ad-fade { animation: adFadeIn .22s var(--ad-ease) both; }

/* Yönlü geçiş sınıfları — artık kullanılmıyor (panel bazlı animasyona geçildi) */

/* Kolon stagger — her .ad-col-wrap ve .col-* içi başlıklar birbiri ardına gelsin */
.row.ad-fade > *:nth-child(1) { animation: adSlideIn .22s var(--ad-ease) both; }
.row.ad-fade > *:nth-child(2) { animation: adSlideIn .22s var(--ad-ease) .06s both; }
.row.ad-fade > *:nth-child(3) { animation: adSlideIn .22s var(--ad-ease) .12s both; }
.row.ad-fade > *:nth-child(4) { animation: adSlideIn .22s var(--ad-ease) .18s both; }

/* Grid kart */
.ad-grid-card { animation: adScaleIn .3s var(--ad-ease) .08s both; }

/* Nav list item stagger */
.ad-nav-list .ad-nav-item:nth-child(1)  { animation: adFadeIn .18s ease .00s both; }
.ad-nav-list .ad-nav-item:nth-child(2)  { animation: adFadeIn .18s ease .04s both; }
.ad-nav-list .ad-nav-item:nth-child(3)  { animation: adFadeIn .18s ease .08s both; }
.ad-nav-list .ad-nav-item:nth-child(4)  { animation: adFadeIn .18s ease .12s both; }
.ad-nav-list .ad-nav-item:nth-child(5)  { animation: adFadeIn .18s ease .16s both; }
.ad-nav-list .ad-nav-item:nth-child(6)  { animation: adFadeIn .18s ease .20s both; }
.ad-nav-list .ad-nav-item:nth-child(7)  { animation: adFadeIn .18s ease .24s both; }
.ad-nav-list .ad-nav-item:nth-child(8)  { animation: adFadeIn .18s ease .28s both; }
.ad-nav-list .ad-nav-item:nth-child(9)  { animation: adFadeIn .18s ease .32s both; }
.ad-nav-list .ad-nav-item:nth-child(10) { animation: adFadeIn .18s ease .36s both; }

/* ── Sütun başlığı ── */
.ad-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  margin-bottom: 18px; white-space: nowrap;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* Seviyeye göre renk farklılaşması */
.ad-col-title-kat {
  color: rgba(255,255,255,.22);
  border-bottom-color: rgba(255,255,255,.05);
}
.ad-col-title-bol {
  color: rgba(160,190,255,.55);
  border-bottom-color: rgba(99,102,241,.18);
  font-size: 11px;
}
.ad-col-title-hiz {
  color: rgba(99,102,241,.95);
  border-bottom-color: rgba(99,102,241,.35);
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
}

/* ── Nav item (radio + label + ok) ── */
.ad-nav-list { display: flex; flex-direction: column; gap: 2px; }

.ad-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 8px; border-radius: 8px;
  color: var(--ad-muted);
  text-decoration: none !important;
  font-size: 14.5px; font-weight: 450;
  cursor: pointer;
  transition: color .18s, background .18s;
  white-space: nowrap;
  background: transparent; border: none;
  font-family: var(--ad-font);
  width: 100%; text-align: left;
}
.ad-nav-item:hover  { color: #fff; background: var(--ad-hover-bg); }
.ad-nav-item.active { color: #fff; background: var(--ad-hover-bg); }

/* Radio circle */
.ad-radio {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 50%; position: relative;
  transition: border-color .25s;
  background: transparent;
}
.ad-radio::after {
  content: '';
  position: absolute; inset: 2.5px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0); opacity: 0;
  transition: transform .25s var(--ad-ease), opacity .25s;
}
.ad-nav-item.active .ad-radio          { border-color: #fff; }
.ad-nav-item.active .ad-radio::after   { transform: scale(1); opacity: 1; }

.ad-nav-label { flex: 1; }

.ad-nav-arrow {
  font-size: 11px; opacity: 0;
  transition: opacity .18s, transform .18s;
  color: rgba(255,255,255,.45); flex-shrink: 0;
}
.ad-nav-item:hover  .ad-nav-arrow { opacity: 1; }
.ad-nav-item.active .ad-nav-arrow { opacity: 1; transform: translateX(2px); }

/* Link-list (daha küçük, hizmet linkleri) */
.ad-link-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.5);
  text-decoration: none !important;
  font-size: 13px;
  transition: color .18s;
}
.ad-link-item:first-child { border-top: none; }
.ad-link-item:hover { color: #fff; }
.ad-link-item span { font-size: 10px; opacity: .4; }

/* Mobil üst alan — Kimlik Alın butonu breadcrumb'un üstünde */
.ad-mob-top {
  width: 100%;
  padding: 12px 0 0;
  flex-shrink: 0;
}
.ad-mob-top .ad-quick-actions {
  border-top: none;
  padding-top: 0;
  width: 100%;
}
.ad-mob-top .ad-quick-btn {
  flex: 1;
  justify-content: center;
}

/* Hızlı aksiyonlar: menü ilk açıldığında alt bölümde görünür */
.ad-quick-actions {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--ad-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ad-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  font-family: var(--ad-font);
}

.ad-quick-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
}

.ad-quick-btn-primary {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.ad-quick-btn-primary:hover {
  color: #000;
  background: rgba(255,255,255,.88);
}

.ad-quick-btn-disabled,
.ad-quick-btn-disabled:disabled {
  color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.12);
  cursor: not-allowed;
}

/* ── Grid card (görsel + başlık + açıklama) ── */
.ad-grid-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  height: auto;
  flex-shrink: 0;
  display: flex; flex-direction: column;
}
.ad-grid-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}
.ad-grid-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ad-grid-card-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.ad-grid-card-desc  { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.7; margin: 0 0 20px; flex: 1; }
.ad-grid-card-link  {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 20px;
  align-self: flex-start;
  transition: background .2s, border-color .2s;
}
.ad-grid-card-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* Hizmet grid: ikonlu büyük görünüm */
.ad-hiz-card {
  padding: 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  height: 100%;
  display: flex; flex-direction: column;
}
.ad-hiz-icon  { font-size: 48px; margin-bottom: 16px; }
.ad-hiz-title { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.ad-hiz-desc  { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.75; flex: 1; margin: 0 0 24px; }
.ad-hiz-btn   {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #000 !important;
  font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 40px;
  text-decoration: none !important;
  align-self: flex-start;
  transition: opacity .2s;
}
.ad-hiz-btn:hover { opacity: .85; }

/* ══════════════════════════════════════
   MOBİL
══════════════════════════════════════ */
@media (max-width: 1199px) {
  .ad-navbar { padding: 0 20px !important; }
  .ad-mega-container { padding: 12px 16px 32px; }

  /* Mobilde col-wrap border/padding sıfırla */
  .ad-col-wrap {
    border-right: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--ad-border);
    padding-bottom: 20px !important;
    margin-bottom: 4px;
  }
  .ad-col-wrap:last-child { border-bottom: none; padding-bottom: 0 !important; }

  .ad-nav-item { font-size: 15px; padding: 10px 6px; white-space: normal; }
  /* Mobilde grid kart yüksekliği auto — BÖLÜMLER liste üstüne çıkmasın */
  .ad-grid-card { height: auto; }
  .ad-grid-card-img { height: 110px; }
  .ad-grid-card-title { font-size: 16px; }
  .ad-grid-card-body { padding: 12px 14px; }
  .ad-grid-card-desc { font-size: 12px; margin-bottom: 10px; }
  .ad-hiz-card { padding: 20px; }
  .ad-hiz-icon  { font-size: 36px; }
  .ad-hiz-title { font-size: 20px; }

  /* quick-actions üstte sıkışık görünmesin */
  .ad-mega-overlay .ad-quick-actions {
    margin-top: 0;
    margin-bottom: 12px;
    border-top: none;
    border-bottom: 1px solid var(--ad-border);
    padding-bottom: 12px;
    padding-top: 0;
  }
}

/* SM altında (< 576px): sadece Pazar navbar'da, diğerleri gizli */
@media (max-width: 575px) {
  .ad-nav-btns { display: flex !important; }
  #btnAnalizNavbar, #btnPanelNavbar { display: none !important; }

  /* Menü içindeki quick butonlar yan yana %50 genişlik */
  .ad-quick-actions .ad-quick-btn {
    min-width: calc(50% - 5px);
  }
}

/* Menü açıkken quick-actions butonları görünür kalsın */
.ad-mega-overlay .ad-quick-actions { display: flex; }