<template>
  <q-dialog ref="dialogRef">
    <div class="remove-dialog-wrapper column items-center">

      <q-card class="remove-card bg-white">
        <q-card-section class="q-pt-lg q-pb-sm q-px-lg text-center">
          <p class="remove-title text-primary font16 fontbold">
            {{ $t('profile.favorites.remove_title') }}
          </p>
        </q-card-section>

        <q-card-actions class="row q-px-lg q-pb-lg q-gutter-x-sm justify-center">
          <q-btn
            unelevated
            rounded
            no-caps
            text-color="grey-2"
            color="grey-6"
            class="col remove-btn font12 fontbold"
            :label="$t('profile.favorites.remove_confirm')"
            @click="onDialogOK"
          />
          <q-btn
            unelevated
            rounded
            no-caps
            color="secondary"
            class="col remove-btn font12 fontbold"
            :label="$t('profile.favorites.remove_cancel')"
            @click="onDialogCancel"
          />
        </q-card-actions>
      </q-card>
    </div>
  </q-dialog>
</template>

<script setup>
import { useDialogPluginComponent } from 'quasar';

defineEmits([...useDialogPluginComponent.emits]);

const { dialogRef, onDialogOK, onDialogCancel } = useDialogPluginComponent();
</script>

<style scoped lang="scss">
.remove-dialog-wrapper {
  width: 320px;
  max-width: 90vw;
}

.remove-card {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.remove-title {
  line-height: 1.4;
  margin: 0;
}

.remove-btn {
  padding: 6px 12px;
}
</style>
