/* =========================================================
   Motosiklet.net — Üst Menü CSS
   Bu dosyayı sitenizin <head> bölümünde şu şekilde çağırın:
   <link rel="stylesheet" href="/yol/motosiklet-menu.css">
   ========================================================= */

.mn-header, .mn-header *,
.mn-drawer, .mn-drawer * {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ÜST MENÜ */
.mn-header {
  width: 100%;
  height: 49px;
  background: #004887;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  border-bottom: 4px solid #b9b9b9;
  overflow: visible;
}

.mn-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  padding: 0 20px 0 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
}

/* LOGO */
.mn-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  z-index: 2;
  flex-shrink: 0;
}

.mn-brand {
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mn-brand img {
  display: block;
  height: 45px;
  max-width: 255px;
  width: auto;
  object-fit: contain;
}

/* MASAÜSTÜ MENÜ */
.mn-nav {
  height: 100%;
  flex: 1;
  min-width: 0;
}

.mn-nav ul {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mn-nav li {
  display: flex;
  align-items: stretch;
}

.mn-nav li + li {
  border-left: 1px solid rgb(0 60 113);
}

.mn-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #eaf2fa;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.mn-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ae0000;
  transform: scaleX(0);
  transition: transform .2s ease;
}

.mn-nav a:hover,
.mn-nav a:focus-visible,
.mn-nav a.active {
  color: #fff;
  background: rgb(0 97 181 / 48%);
}

.mn-nav a:hover::after,
.mn-nav a:focus-visible::after,
.mn-nav a.active::after {
  transform: scaleX(1);
}

/* SAĞDAKİ GİRİŞ BUTONU */
.mn-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #005c93;
  border: 1px solid rgb(0 0 0 / 85%);
  border-radius: 5px;
  text-transform: uppercase;
  padding: 6px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  transition: background-color .2s, border-color .2s;
  z-index: 2;
  margin-left: auto;
  flex-shrink: 0;
}

.mn-login:hover,
.mn-login:focus-visible {
  background: #ff0000;
  border-color: #b20000;
}

.mn-login img {
  width: 36px;
  height: 36px;
  margin: -10px -6px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
  transition: transform .12s ease;
}

.mn-login:hover img {
  transform: scale(1.06);
}

/* HAMBURGER */
.mn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mn-hamburger svg {
  display: block;
}

/* Klavye odak halkası */
.mn-header :focus-visible,
.mn-drawer :focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

/* MOBİL ARKA PLAN */
.mn-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}

.mn-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s;
}

/* MOBİL ÇEKMECE */
.mn-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #123e65;
  z-index: 1100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s .28s;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0, 0, 0, .2);
}

.mn-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s ease;
}

.mn-drawer-top {
  min-height: 49px;
  height: 49px;
  padding: 0 6px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.mn-drawer-top a {
  height: 100%;
  display: flex;
  align-items: center;
}

.mn-drawer-top img {
  display: block;
  height: 32px;
  max-width: 165px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.mn-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.mn-mobile-links {
  list-style: none;
  padding: 12px;
  margin: 0;
  overflow-y: auto;
}

.mn-mobile-links li {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mn-mobile-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}

.mn-mobile-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9ec5e8;
  transition: color .2s;
}

.mn-mobile-links a:hover,
.mn-mobile-links a:focus-visible,
.mn-mobile-links a.active {
  background: rgba(255, 255, 255, .1);
  border-left-color: #f05a36;
  color: #fff;
}

.mn-mobile-links a:hover svg,
.mn-mobile-links a:focus-visible svg,
.mn-mobile-links a.active svg {
  color: #fff;
}

/* TABLET VE MOBİL */
@media (max-width: 1100px) {
  .mn-hamburger { display: flex; flex-shrink: 0; }
  .mn-nav { display: none; }

  .mn-container { padding: 0 16px 0 8px; gap: 0; }

  /* Logo, hamburger ile Forum butonu arasındaki boşluğun ORTASINDA durur.
     (Eskiden ekranın tam ortasına mutlak konumlanıyordu; Forum butonu
     hamburger'den geniş olduğu için logo ona yakın görünüyordu.) */
  .mn-brand-group { flex: 1; min-width: 0; gap: 0; }

  .mn-brand {
    flex: 1;
    min-width: 0;
    justify-content: center;
    /* Hamburger ikonu 44px'lik kutunun içinde 25px olduğundan solda ~9px
       görünmez boşluk var; bunu dengelemek için küçük optik düzeltme.
       Gerek görmezseniz bu satırı silin. */
    padding-right: 9px;
  }

  .mn-brand img { height: 40px; max-width: 180px; }
}

/* KÜÇÜK EKRANLAR */
@media (max-width: 480px) {
  .mn-brand img { height: 36px; max-width: 165px; }

  /* Forum ikonu: masaüstündeki gibi butondan taşan büyük ikon.
     (img'nin negatif margin'i sayesinde buton boyu değişmez, ikon dışarı taşar) */
  .mn-login { padding: 6px 10px 6px 12px; }

  .mn-login img {
    width: 40px;
    height: 40px;
    margin: -11px -8px;
  }
}
@media (max-width: 380px) {
  /* Logo artık gizlenmiyor: sola dayalı, hamburger'in hemen yanında */
  .mn-brand {
    justify-content: flex-start;
    padding-left: 2px;
    padding-right: 0;
  }

  .mn-brand img { height: 30px; max-width: 150px; }
}

/* ÇOK DAR EKRANLAR (örn. 320px): logo Forum butonuna binmesin */
@media (max-width: 340px) {
  .mn-brand img { height: 26px; max-width: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-header *, .mn-drawer, .mn-backdrop, .mn-mobile-links svg {
    transition: none !important;
  }
}

/* =========================================================
   İSTEĞE BAĞLI — Sadece menü tek başına test edilirken gerekli.
   Sitenizin kendi body stili varsa bu bölümü SİLİN.
   ========================================================= */
/*
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
}
*/
