<script setup lang="ts">
import { RouterLink } from 'vue-router'
</script>

<template>
  <header class="app-header">
    <RouterLink to="/" class="app-header__logo">BilHälsning</RouterLink>
    <nav class="app-header__nav">
      <RouterLink to="/" class="app-header__link">Hem</RouterLink>
      <RouterLink to="/registrera" class="app-header__link"
        >Registrera</RouterLink
      >
    </nav>
  </header>
</template>

<style scoped>
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.app-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
}

.app-header__nav {
  display: flex;
  gap: 1rem;
}

.app-header__link {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.875rem;
}

.app-header__link:hover {
  color: #1a202c;
}
</style>
