<template>
  <main class="not-found-page">
    <section class="not-found-card">
      <div class="status-code">404</div>
      <h1>{{ t('page_not_found') }}</h1>
      <p>{{ t('page_not_found_description') }}</p>
      <button type="button" @click="closePage">{{ t('close_page') }}</button>
    </section>
  </main>
</template>

<script setup>
import { useI18n } from 'vue-i18n'
import { closePage } from '@/utils/appBridge.js'

const { t } = useI18n()
</script>

<style scoped>
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #fff8ef 0%, #f6f1ff 100%);
}

.not-found-card {
  width: min(100%, 420px);
  padding: 40px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(75, 49, 115, 0.12);
  text-align: center;
}

.status-code {
  color: #8b5cf6;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

h1 {
  margin-top: 20px;
  color: #282334;
  font-size: 24px;
}

p {
  margin-top: 12px;
  color: #736c7f;
  font-size: 15px;
}

button {
  margin-top: 28px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
</style>
