/**
 * YönHost — Bilhost-inspired classic mega menu (+1 premium polish)
 * 2 sütun grid · alt promo şeridi · domain arama · temiz header nav
 */

/* ── Header (Bilhost + üst barlar) ── */
.yonhost-site-header--refined .yonhost-header {
  background: #fff;
  border-bottom: 1px solid #e8edf3;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.yonhost-site-header--refined .yonhost-header::after {
  display: none;
}

.yonhost-site-header--refined .yonhost-header__inner {
  min-height: 72px;
  gap: 24px;
  align-items: stretch;
}

.yonhost-site-header--refined .yonhost-nav {
  gap: 0;
  flex: 1;
  justify-content: flex-end;
  margin-right: 0;
  align-items: center;
}

.yonhost-site-header--refined .yonhost-nav__link {
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a3e5c;
  border-radius: 0;
  transition: color 0.15s ease;
}

.yonhost-site-header--refined .yonhost-nav__link::after {
  display: none !important;
}

.yonhost-site-header--refined .yonhost-nav__link:hover,
.yonhost-site-header--refined .yonhost-nav__link.yonhost-active {
  color: #152f42;
  background: transparent;
}

.yonhost-site-header--refined .yonhost-nav__link--home .yonhost-nav__link-icon {
  color: #1a3e5c;
}

.yonhost-site-header--refined .yonhost-nav__chevron {
  font-size: 0.5625rem;
  margin-left: 5px;
  color: #1a3e5c;
  opacity: 0.45;
}

/* Hosting — kırmızı Kampanya rozeti (Bilhost “Yeni” stili) */
.yonhost-nav__item--kampanya > .yonhost-nav__link {
  position: relative;
  padding-top: 16px;
}

.yonhost-nav__item--populer > .yonhost-nav__link {
  position: relative;
  padding-top: 16px;
}

.yonhost-nav__badge {
  position: absolute;
  top: 0;
  left: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
}

.yonhost-nav__badge--kampanya {
  background: #e53935;
  color: #fff;
  box-shadow: 0 1px 2px rgba(229, 57, 53, 0.28);
}

.yonhost-nav__badge--populer {
  background: #e53935;
  color: #fff;
  box-shadow: 0 1px 2px rgba(229, 57, 53, 0.28);
}

.yonhost-site-header--refined .yonhost-header__actions--saas {
  border-left: 1px solid rgba(23, 103, 210, 0.12);
  padding-left: 18px;
  margin-left: 8px;
  align-self: stretch;
  align-items: center;
  min-height: 44px;
}

/* Sepet + mobil — stiller mega-menu-saas.css */

/* ── Classic mega kabuk ── */
.yonhost-mega-menu--classic {
  width: min(680px, calc(100vw - 32px));
  max-width: min(680px, calc(100vw - 32px));
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: #fff;
}

.yonhost-mega-menu--classic::before {
  display: none;
}

.yonhost-mega-menu--classic.yonhost-mega-menu--wide {
  width: min(760px, calc(100vw - 32px));
  max-width: min(760px, calc(100vw - 32px));
}

.yonhost-mega-menu--classic.yonhost-mega-menu--xl {
  width: min(820px, calc(100vw - 32px));
  max-width: min(820px, calc(100vw - 32px));
}

.yonhost-mega-menu--classic.yonhost-mega-menu--compact {
  width: min(540px, calc(100vw - 32px));
  max-width: min(540px, calc(100vw - 32px));
}

.yonhost-mega-menu--compact .yonhost-mega-menu__grid--classic {
  grid-template-columns: 1fr 1fr;
}

.yonhost-mega-menu--compact .yonhost-mega-menu__cell {
  padding: 14px 16px;
}

.yonhost-mega-menu--compact .yonhost-mega-menu__cell-icon {
  width: 36px;
  height: 36px;
  font-size: 0.9375rem;
}

.yonhost-mega-menu--compact .yonhost-mega-menu__cell-title {
  font-size: 0.875rem;
}

.yonhost-mega-menu--compact .yonhost-mega-menu__cell-desc {
  font-size: 0.75rem;
}

.yonhost-mega-menu--classic .yonhost-mega-menu__panel {
  display: flex;
  flex-direction: column;
}

/* ── 2 sütun grid (Bilhost hücreleri) ── */
.yonhost-mega-menu__grid--classic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yonhost-mega-menu__grid--classic.yonhost-mega-menu__grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yonhost-mega-menu__cell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none !important;
  border-bottom: 1px solid #eef2f6;
  border-right: 1px solid #eef2f6;
  background: #fff;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.yonhost-mega-menu__grid--classic .yonhost-mega-menu__cell:nth-child(2n) {
  border-right: none;
}

.yonhost-mega-menu__grid--3col .yonhost-mega-menu__cell:nth-child(2n) {
  border-right: 1px solid #eef2f6;
}

.yonhost-mega-menu__grid--3col .yonhost-mega-menu__cell:nth-child(3n) {
  border-right: none;
}

.yonhost-mega-menu__grid--classic .yonhost-mega-menu__cell:nth-last-child(-n+2):nth-child(odd):last-child {
  border-right: none;
  grid-column: 1 / -1;
  border-bottom: none;
}

.yonhost-mega-menu__grid--classic .yonhost-mega-menu__cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.yonhost-mega-menu__grid--3col .yonhost-mega-menu__cell:nth-last-child(-n+3) {
  border-bottom: none;
}

.yonhost-mega-menu__cell:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.yonhost-mega-menu__cell-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
  font-size: 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.yonhost-mega-menu__cell:hover .yonhost-mega-menu__cell-icon {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  transform: scale(1.04);
}

.yonhost-mega-menu__cell-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.yonhost-mega-menu__cell-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.yonhost-mega-menu__cell-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  font-weight: 500;
}

.yonhost-mega-menu__cell-arrow {
  font-size: 0.6875rem;
  color: #cbd5e1;
  margin-top: 6px;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.yonhost-mega-menu__cell:hover .yonhost-mega-menu__cell-arrow {
  color: #0f172a;
  transform: translateX(3px);
}

.yonhost-mega-menu__cell-divider {
  grid-column: 1 / -1;
  padding: 10px 18px 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
  border-right: none !important;
}

/* Tüm mega menüler — Sunucu paleti (tek renk sistemi) */
.yonhost-mega-menu--classic .yonhost-mega-menu__cell-icon {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

.yonhost-mega-menu--classic .yonhost-mega-menu__cell:hover .yonhost-mega-menu__cell-icon {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.yonhost-mega-menu--classic .yonhost-mega-menu__cell-title {
  color: #0f172a;
}

.yonhost-mega-menu--classic .yonhost-mega-menu__strip {
  background: linear-gradient(135deg, #0a1f38 0%, #1e3a5f 55%, #334155 100%);
}

/* ── Domain arama çubuğu ── */
.yonhost-mega-menu__search {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 12px 14px;
  border-top: 1px solid #eef2f6;
  background: #f8fafc;
}

.yonhost-mega-menu__search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  min-height: 46px;
}

.yonhost-mega-menu__search-wrap i {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.yonhost-mega-menu__search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: #0f172a;
  min-width: 0;
}

.yonhost-mega-menu__search-wrap input::placeholder {
  color: #94a3b8;
}

.yonhost-mega-menu__search-btn {
  border: 0;
  border-radius: 0 10px 10px 0;
  padding: 0 22px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.yonhost-mega-menu__search-btn:hover {
  filter: brightness(1.06);
}

/* ── Alt promo şeridi (Bilhost bar + geliştirme) ── */
.yonhost-mega-menu__strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0a1f38 0%, #1e3a5f 55%, #334155 100%);
  color: #fff;
}

.yonhost-mega-menu__strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.yonhost-mega-menu__strip-badge i {
  color: #fde68a;
}

.yonhost-mega-menu__strip-text {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.yonhost-mega-menu__strip-text strong {
  color: #fde68a;
  font-weight: 800;
}

.yonhost-mega-menu__strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.yonhost-mega-menu__strip-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Mega konumlandırma */
.yonhost-nav__item.yonhost-has-mega:hover .yonhost-mega-menu--classic,
.yonhost-nav__item.yonhost-has-mega.yonhost-is-open .yonhost-mega-menu--classic,
.yonhost-header__campaign.yonhost-has-mega:hover .yonhost-mega-menu--classic,
.yonhost-header__campaign.yonhost-has-mega.yonhost-is-open .yonhost-mega-menu--classic {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .yonhost-mega-menu--classic,
  .yonhost-mega-menu--classic.yonhost-mega-menu--wide,
  .yonhost-mega-menu--classic.yonhost-mega-menu--xl,
  .yonhost-mega-menu--classic.yonhost-mega-menu--compact {
    width: min(420px, calc(100vw - 20px));
    max-width: min(420px, calc(100vw - 20px));
  }

  .yonhost-mega-menu__grid--classic,
  .yonhost-mega-menu__grid--classic.yonhost-mega-menu__grid--3col {
    grid-template-columns: 1fr;
  }

  .yonhost-mega-menu__cell {
    border-right: none !important;
  }

  .yonhost-mega-menu__grid--classic .yonhost-mega-menu__cell:last-child {
    border-bottom: none;
  }

  .yonhost-site-header--refined .yonhost-nav {
    justify-content: flex-start;
  }
}
