/* =========================================================================
   IT-Fix Mega Menu · Flat Corporate (IBM / Microsoft inspired)
   Loads AFTER itfix-v31-system.css so it overrides the previous card layout.
   Selectors mirror the active markup in itfix-layout.php (.itfixx-* family).
   Scope: desktop dropdown only. Mobile (.itfixx-mobile-*) and hero untouched.
   ========================================================================= */

/* ------------------------------------------------------------------
   1) Panel layer · ortalı, ince, premium
   ------------------------------------------------------------------ */
.itfixx-mega-layer{
  width:min(1220px, calc(100vw - 48px));
  max-width:calc(100vw - 48px);
  /* JS toggles is-mega-open · animation reused */
}

.itfixx-header.is-mega-open .itfixx-mega-layer{
  transform:translateX(-50%) translateY(4px);
}

/* ------------------------------------------------------------------
   2) Panel kart görünümünü kaldır · ince, yatay, list tabanlı
   ------------------------------------------------------------------ */
.itfixx-mega-panel{
  grid-template-columns:300px minmax(0,1fr);
  gap:0;
  padding:0;
  border-radius:0 0 12px 12px;
  background:#fffaf3;
  border:1px solid rgba(24,20,16,.08);
  border-top:0;
  box-shadow:
    0 18px 38px rgba(35,28,20,.08),
    0 1px 0 rgba(255,255,255,.6) inset;
  overflow:hidden;
}

/* Üst ince turuncu vurgu çizgisi — header ile bütünlük */
.itfixx-mega-panel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background:linear-gradient(90deg,
    transparent,
    rgba(210,132,31,.45) 20%,
    rgba(168,95,18,.55) 50%,
    rgba(210,132,31,.45) 80%,
    transparent);
  pointer-events:none;
  z-index:2;
}

.itfixx-mega-panel{position:relative;}

/* ------------------------------------------------------------------
   3) Sol açıklama alanı · büyük gradient bloğu sadeleştir
   ------------------------------------------------------------------ */
.itfixx-mega-feature{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  min-height:0;
  padding:28px 28px 26px;
  background:#fff7e8;
  border-radius:0;
  border-right:1px solid rgba(24,20,16,.07);
  color:var(--ifx31-ink, #181410);
  overflow:visible;
}

/* Dekoratif daireyi kaldır */
.itfixx-mega-feature::after{
  display:none;
  content:none;
}

.itfixx-mega-feature small{
  display:inline-block;
  margin:0 0 10px;
  padding:0;
  background:none;
  border:0;
  color:var(--ifx31-amber-deep, #a85f12);
  font-size:11px;
  font-weight:780;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.itfixx-mega-feature strong{
  display:block;
  margin:0 0 10px;
  color:var(--ifx31-ink, #181410);
  font-family:var(--ifx31-fd, inherit);
  font-size:19px;
  line-height:1.28;
  font-weight:720;
  letter-spacing:0;
}

.itfixx-mega-feature p{
  margin:0 0 16px;
  color:var(--ifx31-muted, #776c61);
  font-size:13.5px;
  line-height:1.55;
}

.itfixx-mega-feature a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  color:var(--ifx31-amber-deep, #a85f12);
  background:transparent;
  font-weight:680;
  font-size:13.5px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s ease, border-color .18s ease;
}

.itfixx-mega-feature a:hover,
.itfixx-mega-feature a:focus-visible{
  color:#8a4d0c;
  border-bottom-color:rgba(168,95,18,.45);
  text-decoration:none;
  outline:none;
}

/* ------------------------------------------------------------------
   4) Sağ liste alanı · kart kaldırıldı, satır temelli
   ------------------------------------------------------------------ */
.itfixx-mega-links{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:0;
  align-content:start;
  padding:18px 18px 20px;
  background:#ffffff;
  column-gap:8px;
}

.itfixx-mega-links a{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:11px 16px 11px 18px;
  background:transparent;
  border:0;
  border-radius:6px;
  color:var(--ifx31-ink, #181410);
  text-decoration:none;
  transform:none;
  box-shadow:none;
  transition:background-color .18s ease, color .18s ease;
}

/* Hover'da minimal sol turuncu çizgi · ince satır vurgusu */
.itfixx-mega-links a::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  width:3px;
  height:0;
  border-radius:2px;
  background:var(--ifx31-amber-deep, #a85f12);
  transform:translateY(-50%);
  transition:height .2s ease;
}

.itfixx-mega-links a:hover,
.itfixx-mega-links a:focus-visible{
  background:rgba(255,244,221,.62);
  border-color:transparent;
  transform:none;
  box-shadow:none;
  color:var(--ifx31-ink, #181410);
  outline:none;
}

.itfixx-mega-links a:hover::before,
.itfixx-mega-links a:focus-visible::before{
  height:60%;
}

.itfixx-mega-links a b{
  font-size:14px;
  font-weight:660;
  line-height:1.3;
  color:var(--ifx31-ink, #181410);
  letter-spacing:0;
}

.itfixx-mega-links a:hover b,
.itfixx-mega-links a:focus-visible b{
  color:var(--ifx31-amber-deep, #a85f12);
}

.itfixx-mega-links a span{
  font-size:12.5px;
  line-height:1.45;
  color:var(--ifx31-muted, #776c61);
  font-weight:400;
}

.itfixx-mega-links a[aria-current="page"]{
  background:rgba(255,244,221,.55);
  border-color:transparent;
}

.itfixx-mega-links a[aria-current="page"]::before{
  height:60%;
}

.itfixx-mega-links a[aria-current="page"] b{
  color:var(--ifx31-amber-deep, #a85f12);
}

/* ------------------------------------------------------------------
   5) Z-index — v31'in 9990/9999 hiyerarşisine dokunmuyoruz; hero üstte kalmaya
   çalışırsa onun değil bu menünün önde olduğundan emin oluyoruz.
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   6) Geniş ekran ince ayar
   ------------------------------------------------------------------ */
@media(min-width:1400px){
  .itfixx-mega-layer{
    width:min(1240px, calc(100vw - 64px));
  }
  .itfixx-mega-panel{
    grid-template-columns:320px minmax(0,1fr);
  }
}

@media(max-width:1280px){
  .itfixx-mega-panel{
    grid-template-columns:260px minmax(0,1fr);
  }
  .itfixx-mega-feature{
    padding:24px 22px 22px;
  }
  .itfixx-mega-feature strong{
    font-size:17.5px;
  }
  .itfixx-mega-links{
    padding:14px 12px 16px;
  }
}

/* Mobile / tablet: v31 zaten .itfixx-mega-layer'ı 1180px altında
   gizliyor (display:none !important). Override etmeden bırakıyoruz. */
