<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">System: v0.1.0</span>
        <span class="ks-footer__divider">|</span>
        <span class="ks-footer__version-contract">Contract: v60-T08-Contract</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);
  font-family: monospace;
}

.ks-footer__divider {
  color: var(--ks-color-neutral-300);
  margin: 0 4px;
}

.ks-footer__version-contract {
  color: var(--ks-color-action);
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-family: monospace;
}

@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>
