/* TUNGA HUKUK - Header Styles - Final Version (Fixed) */

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* Menü pozisyonu için önemli */
}

.logo img {
  max-height: 70px;
  width: auto;
  display: block;
}

.site-title {
  text-align: center;
}

.site-title h1 {
  font-size: 2rem;
  margin: 0;
  color: #a4761e;
}

.site-title p {
  font-size: 0.9rem;
  margin: 0;
  color: #008b8b;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li a {
  text-decoration: none;
  color: #222;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: 0.3s;
}

.main-nav li.active a,
.main-nav li a:hover {
  background-color: #008b8b;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1200; /* hamburger ikonu en üstte */
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 900; /* arka kaplama */
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
  }

  .logo {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
  }

  .site-title {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1100; /* Menüyü overlay üstüne taşıdık */
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    width: 100%;
    padding: 12px 10px;
    text-align: left;
  }

  .site-title h1 {
    font-size: 1.5rem;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }
}
html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  position: static;
  touch-action: auto;
  -webkit-overflow-scrolling: touch; /* iOS için */
}
