<template>
  <footer class="landing-footer">
    <div class="container">
      <div class="footer-brand">
        <img src="/images/chorly_logo.png" alt="Chorly" class="footer-logo" />
      </div>
      <div class="footer-links">
        <button class="footer-link" @click="goToLogin">Sign In</button>
        <span class="footer-divider">·</span>
        <button class="footer-link" @click="goToSignup">Get Started</button>
      </div>
      <!-- Future: pricing section -->
      <p class="footer-copy">© {{ year }} Chorly. All rights reserved.</p>
    </div>
  </footer>
</template>

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

const router = useRouter()
const year = new Date().getFullYear()

function goToLogin() {
  router.push({ name: 'Login' })
}

function goToSignup() {
  router.push({ name: 'Signup' })
}
</script>

<style scoped>
.landing-footer {
  background: var(--landing-section-dark);
  padding: 3rem 1.5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-logo {
  height: 80px;
  opacity: 0.85;
  filter: brightness(1.1);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--landing-footer-text);
  font-size: 0.9rem;
  padding: 0;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #fff;
}

.footer-divider {
  color: var(--landing-footer-text);
  opacity: 0.4;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--landing-footer-text);
  opacity: 0.5;
  margin: 0;
}
</style>
