/* Masaüstü yatay üst menü — mobilde gizli, sidebar yerine header nav */

@media (min-width: 900px) {
  body.has-side-nav .menu-button,
  body.has-header-nav .menu-button {
    display: none !important;
  }

  body.has-side-nav .side-nav,
  body.has-header-nav .side-nav {
    display: none !important;
  }

  /* 3 kolon: logo | menü | auth */
  body.has-header-nav .site-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 78px;
    padding: 12px 22px;
    overflow: visible;
  }

  body.has-header-nav .site-topbar-left,
  body.has-header-nav .home-topbar-row,
  body.has-header-nav .sportsbook-topbar-start {
    display: contents;
  }

  body.has-header-nav .site-topbar .logo,
  body.has-header-nav .site-topbar .site-brand-logo {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
  }

  body.has-header-nav .site-topbar .logo.has-brand-image {
    max-width: calc(var(--site-logo-base-width-desktop, 220px) * var(--site-logo-scale-desktop, 100) / 100);
  }

  body.has-header-nav .site-header-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  body.has-header-nav .site-topbar-auth,
  body.has-header-nav .home-topbar-auth {
    grid-column: 3;
    grid-row: 1;
    flex-shrink: 0;
    justify-self: end;
    min-width: 0;
    max-width: none;
  }

  .site-header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .site-header-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .site-header-nav__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(141, 85, 255, 0.42), rgba(111, 70, 213, 0.28));
    border-color: rgba(141, 85, 255, 0.45);
    box-shadow: 0 8px 20px rgba(104, 63, 218, 0.22);
  }

  .site-header-nav__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    object-fit: contain;
    display: block;
  }

  .site-header-nav__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .site-header-nav__icon .fill-icon {
    fill: currentColor;
    stroke: none;
  }
}

/* Dar masaüstü: menü ortalanır, logo/auth sabit kalır */
@media (min-width: 900px) and (max-width: 1180px) {
  body.has-header-nav .site-header-nav {
    justify-content: center;
  }

  body.has-header-nav .site-header-nav__link {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 899px) {
  .site-header-nav {
    display: none !important;
  }
}
