<template>
  <RouterLink to="/create" class="fab" aria-label="Create event">
    <span class="fab__icon" aria-hidden="true">+</span>
  </RouterLink>
</template>

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

<style scoped>
.fab {
  position: fixed;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  right: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 100;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.fab:active {
  transform: scale(0.95);
}

.fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.fab__icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}
</style>
