/* Header/menü/dil/arama stilleri — urunler.css'teki header bölümüyle
   aynı, hesap.html/profilim.html/sifre-sifirla.html gibi yeni sayfalar
   için ortak bir dosyada tutulur (bu sayfalar başka bir sayfa-özel
   CSS dosyasına bağlı değil). */

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.1rem;
  gap: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo img {
  height: 160px;
  margin: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  line-height: 1.15;
}

.logo-wordmark-top,
.logo-wordmark-bottom {
  text-transform: uppercase;
  font-size: 25px;
  letter-spacing: 0.5px;
}

.logo-wordmark-top { color: #4E9E58; }
.logo-wordmark-bottom { color: #16301F; }


.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: -20px;
}

.menu a {
  text-decoration: none;
  font-weight: bold;
  color: #313131;
  font-size: 16px;
}

.menu a:hover {
  color: #139607;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a3d2b;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.right-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin-right: 15px;
  margin-top: -20px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10;
  overflow: visible;
  margin-left: 0.5rem;
}

.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  position: relative;
  z-index: 11;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.search-btn:hover { color: #41a32db9; }

.search-input {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  transform: none;
  height: 2.5rem;
  width: 240px;
  max-width: 60vw;
  border-radius: 9999px;
  background-color: rgba(219, 255, 222, 0.767);
  color: black;
  padding-left: 2.5rem;
  padding-right: 1rem;
  border: none;
  display: none;
  font-size: 0.875rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.search-wrapper.active .search-input {
  width: 250px;
  opacity: 1;
  padding-left: 2.5rem;
  padding-right: 1rem;
}
.search-input:focus {
  background-color: #c9ffcead;
  outline: none;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  border: 1.5px solid #e3e3e3;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.language-selector:hover {
  border-color: #27ae60;
  background: #f4fdf7;
}
.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 8px;
  gap: 6px;
  z-index: 100;
}
.language-selector img {
  width: 26px;
  height: 19px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  margin: 0;
  cursor: pointer;
}
.language-dropdown img {
  width: 26px;
  height: 19px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  margin-right: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.language-dropdown img:hover {
  transform: scale(1.08);
}
.language-selector span {
  font-size: 13px;
  color: #333;
  font-weight: 700;
}

header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #d4d4d442;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(to right, #c6f1d5 0%, white 30%);
}
header.sticky-header.is-sticky {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .header-container { flex-wrap: nowrap; gap: 0.6rem; padding: 0.6rem 1rem; }
  .logo { order: 1; }
  .logo img { height: 56px; margin-left: 0; margin-right: 0; margin-top: 0; }
  .logo-wordmark { display: none; }
  .right-tools { order: 2; margin-left: auto; margin-right: 0; margin-top: 0; gap: 0.6rem; }
  .hamburger-btn { display: flex; order: 3; flex-shrink: 0; }
  #language-code { display: none; }
  .menu {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 8px;
  }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 12px 4px; border-top: 1px solid rgba(0,0,0,0.08); }
}
