/* === HEADER GENEL AYARLAR === */
.miralya-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 🔹 Sabit yükseklik */
  display: flex;
  align-items: center;
  justify-content: center; /* Container ortalansın */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  margin: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: none;
  transition: all 0.3s ease;
}

/* === CONTAINER === */
.header-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 60px; /* Yan boşluk */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* === LOGO ALANI === */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4c2f64;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.header-logo {
  width: 40px; /* 🔹 Logo boyutu 80px header’a orantılı */
  height: auto;
  margin-right: 10px;
  opacity: 0.95;
  background: transparent; /* 🔹 PNG arka plan şeffaf */
  object-fit: contain;
  image-rendering: crisp-edges;
}

/* === NAV MENÜ === */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4c2f64;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #6C4E87;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6C4E87;
  border-radius: 2px;
  animation: underline 0.4s ease;
}

@keyframes underline {
  from { width: 0; }
  to { width: 100%; }
}

/* === MOBİL MENÜ === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 22px;
  height: 2px;
  background-color: #4c2f64;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 30px;
  }

  .nav-menu {
    position: fixed;
    top: 80px; /* 🔹 Header yüksekliği kadar */
    right: -100%;
    width: 220px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 40px;
    gap: 25px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }
}
