/* ==========================================
   Header Styles - La Mora Pizza
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-primary);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: none;
}

/* Scroll sonras? görünüm */
.header.scrolled {
  background-color: rgba(75, 10, 43, 0.8); /* Bö?ürtlenin ?effaf hali */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

/* ?ç düzen */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

/* Logo */
.logo img {
  max-height: 160px; /* güncellendi */
  transition: transform 0.3s ease;
}
.header.scrolled .logo img {
  max-height: 130px; /* güncellendi */
  transform: scale(0.95);
}

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 0.8rem;
}
.nav a {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--color-accent);
}

/* Mobil görünüm */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 1100; /* düzeltme */
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger aktifken dönü?ümü */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobil menü */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(75, 10, 43, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    backdrop-filter: blur(6px);
    z-index: 1000;
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .logo img {
    max-height: 130px; /* güncellendi */
  }

  .header.scrolled .logo img {
    max-height: 110px; /* güncellendi */
  }
}
