<template>
  <div class="card">
    <h1>📖 소개</h1>
    <p class="description">
      이 프로젝트는 <strong>Vue 3</strong> (Options API) 와
      <strong>FastAPI</strong> 를 기반으로 한 풀스택 웹 애플리케이션입니다.
    </p>

    <div class="info-section">
      <h2>🛠️ 기술 스택</h2>
      <ul class="tech-list">
        <li><span class="tag frontend">Frontend</span> Vue 3, Vite</li>
        <li><span class="tag backend">Backend</span> FastAPI (Python)</li>
        <li><span class="tag tooling">Tooling</span> Vite Proxy</li>
      </ul>
    </div>

    <div class="info-section">
      <h2>✨ 주요 기능</h2>
      <ul class="feature-list">
        <li>FastAPI 백엔드 API 호출</li>
        <li>클릭 카운터</li>
        <li>Vue Router 기반 페이지 내비게이션</li>
      </ul>
    </div>

    <router-link to="/" class="btn btn-primary">← 홈으로</router-link>
  </div>
</template>

<script>
export default {
  name: "AboutPage",
};
</script>

<style scoped>
.card {
  text-align: left;
  background: white;
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 360px;
  max-width: 500px;
}

h1 {
  color: #333;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  text-align: center;
}

.description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-section {
  margin-bottom: 1.5rem;
}

.info-section h2 {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.3rem;
}

.tech-list,
.feature-list {
  list-style: none;
  padding: 0;
}

.tech-list li,
.feature-list li {
  padding: 0.3rem 0;
  color: #555;
  font-size: 0.95rem;
}

.tech-list li::before,
.feature-list li::before {
  content: "•";
  color: #667eea;
  font-weight: bold;
  margin-right: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.tag.frontend {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag.backend {
  background: #e3f2fd;
  color: #1565c0;
}

.tag.tooling {
  background: #fff3e0;
  color: #e65100;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd6;
}
</style>
