/* === HEADER GENEL === */
.miralya-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  margin: 0;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* === CONTAINER === */
.header-container {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === LOGO === */
.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;
  height: auto;
  margin-right: 10px;
  opacity: 0.95;
  background: transparent;
  object-fit: contain;
  image-rendering: crisp-edges;
}

/* === NAV === */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #4c2f64;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
}

.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%; }
}

/* === DROPDOWN (Desktop: hover) === */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chev {
  font-size: 0.9rem;
  opacity: 0.7;
  transform: translateY(-1px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.10);
  border: 1px solid rgba(108, 78, 135, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2000;
}

.dropdown-item {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #4c2f64;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(108, 78, 135, 0.10);
  transform: translateX(2px);
}

.dropdown-item.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Desktop hover ile aç */
@media (min-width: 769px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-dropdown:hover .chev {
    transform: translateY(-1px) rotate(180deg);
    opacity: 1;
  }
}

/* === MOBILE MENU BUTTON === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 22px;
  height: 2px;
  background-color: #4c2f64;
  border-radius: 2px;
}

/* === MOBILE NAV === */
@media (max-width: 768px) {
  .header-container { padding: 0 30px; }

  .menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 28px;
    gap: 18px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    z-index: 1500;
  }

  .nav-menu.active { right: 0; }

  /* Mobil dropdown: hover yk, click ile açılır */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    display: none; /* JS ile açacağız */
  }

  .dropdown-menu.open { display: block; }

  .dropdown-item {
    text-align: center;
    padding: 10px 0;
  }
}