/* ============================================================
 * PREMIUM MEGA MENU - 2026 · Featured card + grid + popular + quick actions
 * ============================================================ */

/* Base wrap */
.ajs-menu__mega { position: relative; }
.ajs-mega-wrap {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 52;
  display: block;
}
.ajs-mega-wrap[hidden] { display: block; }
.ajs-menu__mega:hover > .ajs-mega-wrap,
.ajs-menu__mega.is-open > .ajs-mega-wrap,
.ajs-menu__mega:focus-within > .ajs-mega-wrap {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  visibility: visible !important;
}
/* Küçük bridge - hover kaybolmasın */
.ajs-mega-wrap::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Premium container */
.ajs-mega--premium {
  background: linear-gradient(180deg, #1A1A1F 0%, #0F0F13 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow:
    0 50px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(249, 115, 22, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 0;
  width: min(1160px, 96vw);
  max-height: 82vh;
  overflow: hidden;
  position: relative;
}
.ajs-mega--premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--ajs-brand) 50%, transparent 100%);
  opacity: 0.6;
}

/* Layout: 3 column (featured + main + popular) */
.ajs-mega__layout {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 0;
  min-height: 420px;
}
.ajs-mega__layout--regions {
  grid-template-columns: 300px 1fr;
}
@media (max-width: 1100px) {
  .ajs-mega--premium { width: min(900px, 94vw); }
  .ajs-mega__layout { grid-template-columns: 240px 1fr; }
  .ajs-mega__layout > .ajs-mega__popular { display: none; }
}

/* Featured Card (Sol kolon - Hizmetler) */
.ajs-mega__featured {
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(249,115,22,0.14) 0%, rgba(239,68,68,0.08) 100%);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.ajs-mega__featured::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(249,115,22,0.3), transparent 70%);
  pointer-events: none;
}
.ajs-mega__featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ajs-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.ajs-mega__featured-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.ajs-mega__featured-desc {
  color: var(--ajs-text-mute);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}
.ajs-mega__featured-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ajs-text);
  position: relative;
  z-index: 1;
}
.ajs-mega__featured-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ajs-mega__featured-list svg { color: #10B981; flex-shrink: 0; }
.ajs-mega__featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ajs-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}
.ajs-mega__featured-cta:hover { background: var(--ajs-brand-2); }

/* Main column - Services grid */
.ajs-mega__main {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.ajs-mega__head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ajs-mega__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ajs-brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ajs-mega__title {
  font-size: 1rem;
  color: var(--ajs-text);
  margin: 0;
  font-weight: 700;
}
.ajs-mega__services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.ajs-mega__service-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: var(--ajs-text);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
  min-width: 0;
}
.ajs-mega__service-item:hover {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.2);
}
.ajs-mega__service-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(249,115,22,0.14);
  color: var(--ajs-brand);
  transition: all 0.2s;
  flex-shrink: 0;
}
.ajs-mega__service-item:hover .ajs-mega__service-icon {
  background: var(--ajs-brand);
  color: #fff;
  transform: rotate(-4deg);
}
.ajs-mega__service-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ajs-mega__service-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ajs-text);
  line-height: 1.25;
}
.ajs-mega__service-text small {
  font-size: 0.6875rem;
  color: var(--ajs-text-soft);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ajs-mega__service-arrow {
  color: var(--ajs-text-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
  flex-shrink: 0;
}
.ajs-mega__service-item:hover .ajs-mega__service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ajs-brand);
}

/* Popular column - keyword rich */
.ajs-mega__popular {
  padding: 28px 20px;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ajs-mega__popular-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ajs-text);
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ajs-mega__popular-title svg { color: var(--ajs-brand); }
.ajs-mega__popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ajs-mega__popular-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ajs-text-mute);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.18s;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.ajs-mega__popular-list a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.ajs-mega__popular-list a:hover {
  background: rgba(249,115,22,0.08);
  color: var(--ajs-text);
  border-left-color: var(--ajs-brand);
  padding-left: 12px;
}
.ajs-mega__popular-list a::before {
  content: '→';
  color: var(--ajs-brand);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
  order: 2;
  margin-left: auto;
}
.ajs-mega__popular-list a:hover::before { opacity: 1; }
.ajs-mega__badge-hot,
.ajs-mega__badge-yeni,
.ajs-mega__badge-öne { font-size: 9px; padding: 3px 7px; border-radius: 4px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; line-height: 1; }
.ajs-mega__badge-hot { background: var(--ajs-danger); color: #fff; }
.ajs-mega__badge-yeni { background: #10B981; color: #fff; }
.ajs-mega__badge-öne { background: var(--ajs-brand); color: #fff; }

/* Regions mega */
.ajs-mega__coverage {
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(249,115,22,0.14) 0%, rgba(239,68,68,0.06) 100%);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.ajs-mega__coverage::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(249,115,22,0.25);
  animation: ajs-rotate 20s linear infinite;
}
.ajs-mega__coverage::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(249,115,22,0.2);
  animation: ajs-rotate 14s linear infinite reverse;
}
@keyframes ajs-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ajs-mega__coverage-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ajs-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.ajs-mega__coverage-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.ajs-mega__coverage-desc {
  font-size: 0.8125rem;
  color: var(--ajs-text-mute);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}
.ajs-mega__coverage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.ajs-mega__coverage-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.ajs-mega__coverage-stats strong {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ajs-brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ajs-mega__coverage-stats small {
  font-size: 0.6875rem;
  color: var(--ajs-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ajs-mega__coverage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ajs-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}
.ajs-mega__coverage-cta:hover { background: var(--ajs-brand-2); }

/* Yaka wrap (Anadolu + Avrupa side by side) */
.ajs-mega__yaka-wrap {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  overflow-y: auto;
  max-height: 540px;
}
@media (max-width: 900px) {
  .ajs-mega__yaka-wrap { grid-template-columns: 1fr; }
}
.ajs-mega__yaka {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ajs-mega__yaka-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ajs-mega__yaka-head strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ajs-text);
  letter-spacing: -0.01em;
}
.ajs-mega__yaka-head small {
  font-size: 0.6875rem;
  color: var(--ajs-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ajs-mega__yaka-flag {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--ajs-brand-gradient);
  color: #fff;
  position: relative;
}
.ajs-mega__yaka-flag::before {
  content: '📍';
  font-size: 14px;
}
.ajs-mega__yaka-flag--anadolu::before { content: 'A'; font-size: 14px; font-weight: 800; font-family: var(--ajs-font); }
.ajs-mega__yaka-flag--avrupa::before { content: 'E'; font-size: 14px; font-weight: 800; font-family: var(--ajs-font); }

.ajs-mega__region-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.ajs-mega__region-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ajs-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.18s;
  min-width: 0;
}
.ajs-mega__region-link:hover {
  background: rgba(249,115,22,0.08);
  border-left-color: var(--ajs-brand);
  padding-left: 12px;
}
.ajs-mega__region-link strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ajs-text);
  line-height: 1.2;
}
.ajs-mega__region-link small {
  font-size: 0.6875rem;
  color: var(--ajs-text-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ajs-mega__region-link:hover small { color: var(--ajs-brand); }

/* Footer - premium quick actions (3 kolon yan yana, büyük ikonlu, kartvari) */
.ajs-mega__footer {
  padding: 18px 24px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.ajs-mega__footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(249,115,22,0.4) 50%, transparent 100%);
}
.ajs-mega__quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .ajs-mega__quick-actions { grid-template-columns: 1fr; }
}

.ajs-mega__quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ajs-text);
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  min-height: 68px;
}
.ajs-mega__quick-action::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, currentColor, transparent 70%);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.ajs-mega__quick-action:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.ajs-mega__quick-action:hover::before { opacity: 0.15; }

/* Wrap icon in a circle for premium look */
.ajs-mega__quick-action > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--ajs-text);
  transition: all 0.28s;
}
.ajs-mega__quick-action:hover > svg {
  transform: scale(1.05) rotate(-4deg);
}

.ajs-mega__quick-action--primary {
  background: linear-gradient(135deg, var(--ajs-brand) 0%, #EA580C 100%);
  border-color: rgba(249,115,22,0.4);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}
.ajs-mega__quick-action--primary:hover {
  background: linear-gradient(135deg, #FB923C 0%, var(--ajs-brand) 100%);
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(249,115,22,0.45);
}
.ajs-mega__quick-action--primary > svg {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.ajs-mega__quick-action--wa {
  background: linear-gradient(135deg, var(--ajs-whatsapp) 0%, #128C7E 100%);
  border-color: rgba(37,211,102,0.4);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.28);
}
.ajs-mega__quick-action--wa:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(37,211,102,0.42);
}
.ajs-mega__quick-action--wa > svg {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.ajs-mega__quick-action > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
  flex: 1;
}
.ajs-mega__quick-action strong {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ajs-mega__quick-action small {
  font-size: 0.75rem;
  opacity: 0.88;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.ajs-mega__quick-action--primary small,
.ajs-mega__quick-action--wa small { opacity: 0.95; }

/* Drawer içindeki mega menüleri TAMAMEN gizle (duplicate render koruması) */
.ajs-drawer .ajs-mega-wrap,
.ajs-drawer .ajs-menu__mega > a [data-mega-toggle],
.ajs-drawer .ajs-menu__mega .ajs-menu__chevron { display: none !important; }
.ajs-drawer .ajs-menu__mega > a {
  pointer-events: none;
  opacity: 0.55;
}

/* Mobil - hover dropdown'ları gizle (drawer'dan erişilecek) */
@media (max-width: 1023px) {
  .ajs-mega-wrap { display: none !important; }
  .ajs-menu__mega .ajs-mega-wrap { display: none !important; }
}
