

/* Genel Header */
.header {
    width: 100%;
    background: #0F111A;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1300px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
    height: 0; /* Header yüksekliğini etkilemesin */
}
.header-logo img {
    height: 500px;       /* istediğin kadar büyütebilirsin */
    width: auto;
    display: block;
}


/* Desktop NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.dropdown-menu {
    position: absolute;
    top: 34px;
    left: 0;
    background: #1b1e28;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 180px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #2a2d36;
    color: white;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #2c2f39;
}

/* AUTH Buttons */
.btn-primary,
.btn-secondary {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-secondary {
    background: #4b5563;
    color: white;
}

/* User Avatar */
.user-area {
    position: relative;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}

/* Slide Menu (PC) */
.slide-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #1c1f28;
    border-radius: 10px;
    width: 160px;
    display: none;
    flex-direction: column;
}

.slide-menu.open {
    display: flex;
}

.slide-menu a {
    padding: 12px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #2a2d36;
}

.slide-menu a:hover {
    background: #2a2d36;
}

/* Hamburger */
.hamburger {
    width: 30px;
    height: 23px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: white;
    border-radius: 6px;
    transition: .25s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #10131b;
    padding: 12px 20px;
    border-top: 1px solid #222;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

.mobile-subitem {
    padding-left: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
/* === SON VE KESİN MOBİL HEADER DÜZELTME ===
   Put this at the VERY END of your CSS (after all other rules)
*/
@media (max-width: 900px) {

  /* header konteyneri referans olsun */
  .header-inner, .site-header, header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  /* Logo block artık absolute olmayacak, normal flow'da sol tarafta duracak */
  .header-logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    z-index: 250 !important;
  }

  /* ZORUNLU: inline veya eski transform'ı iptal et */
  .header-logo img,
  .header-logo img[style] {
    height: 150px !important;      /* istediğin boyut */
    width: auto !important;
    transform: none !important;
    
    display: block !important;
    object-fit: contain !important;
  }

  /* Hamburger kesinlikle sağda, absolute ile üstten taşmaz */
  .mobile-hamburger {
    display: block !important;
    position: absolute !important;
    right: 120px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    font-size: 26px !important;
    z-index: 300 !important;
    background: transparent !important;
    border: none !important;
    color: inherit !important;
  }

  /* Masaüstü menüleri gizle, mobil menü göster/idar e */
  .topnav, nav.header-nav, .desktop-only {
    display: none !important;
  }

  /* Mobil menü yerleşimi header'ın hemen altında */
  .mobile-menu {
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 200 !important;
  }
}

/* Küçük telefonlarda ince ayar */
@media (max-width: 420px) {
  .header-logo img { height: 36px !important; }
  .mobile-hamburger { right: 8px !important; font-size: 24px !important; }
}



/* ==== HAMBURGER ORTAYA KAYMA SORUNUNU %100 KESEN KURAL ==== */
@media (max-width: 900px) {

  .mobile-hamburger {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;

    transform: translateY(-50%) !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    z-index: 9999 !important;

    background: transparent !important;
    border: none !important;
  }

  /* Bu önemli: üst container herhangi bir justify-center uygulamasın */
  header,
  .site-header,
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
  }
}
