<script setup lang="ts">
const currentYear = new Date().getFullYear()
</script>

<template>
  <footer class="ks-footer">
    <div class="ks-footer__content">
      <div class="ks-footer__section">
        <div class="ks-footer__brand">K-ArtSell Aegis</div>
        <div class="ks-footer__text">© {{ currentYear }} All rights reserved.</div>
      </div>
      <div class="ks-footer__section">
        <a href="#" class="ks-footer__link">문서</a>
        <a href="#" class="ks-footer__link">API</a>
        <a href="#" class="ks-footer__link">지원</a>
      </div>
      <div class="ks-footer__section">
        <span class="ks-footer__version">v0.1.0</span>
      </div>
    </div>
  </footer>
</template>

<style scoped>
.ks-footer {
  background-color: var(--color-background-secondary);
  border-top: 1px solid var(--color-border-primary);
  padding: var(--spacing-4);
  margin-top: auto;
}

.ks-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-6);
  max-width: 100%;
  margin: 0 auto;
}

.ks-footer__section {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.ks-footer__brand {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.ks-footer__text {
  color: var(--color-text-tertiary);
}

.ks-footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.ks-footer__link:hover {
  color: var(--color-primary-500);
  text-decoration: underline;
}

.ks-footer__version {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-xs);
}

@media (max-width: 768px) {
  .ks-footer__content {
    flex-direction: column;
    gap: var(--spacing-3);
    text-align: center;
  }

  .ks-footer__section {
    flex-direction: column;
    gap: var(--spacing-2);
  }
}
</style>
