<!--
/**
 * App Footer Component - Platform Neutral Footer
 * 
 * Cross-platform footer with version and platform info
 * 
 * @author Matthew Raymer
 * @version 1.0.0
 */
-->

<template>
  <footer class="app-footer">
    <div class="footer-content">
      <div class="footer-info">
        <span class="app-version">v1.0.0</span>
        <span class="platform-info">{{ platformInfo }}</span>
      </div>
      <div class="footer-links">
        <a href="#" class="footer-link" @click="showAbout">About</a>
        <a href="#" class="footer-link" @click="showHelp">Help</a>
      </div>
    </div>
  </footer>
</template>

<script lang="ts">
import { Vue, Component, toNative } from 'vue-facing-decorator'

@Component
class AppFooter extends Vue {
  get platformInfo() { return 'vTest • Capacitor' }
  showAbout() { this.$emit('about') }
  showHelp() { this.$emit('help') }
}
export default toNative(AppFooter)
</script>

<style scoped>
.app-footer {
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-version {
  font-weight: 500;
}

.platform-info {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .footer-info {
    justify-content: center;
  }
}
</style>
