<template>
  <div id="app">
    <header class="app-header">
      <div class="container">
        <div class="logo">
          <h1>🏃 Бегущий Башкир</h1>
        </div>
        <nav class="main-nav">
          <router-link to="/" class="nav-link">Главная</router-link>
          <router-link to="/about" class="nav-link">О нас</router-link>
          <router-link to="/achievements" class="nav-link">Достижения</router-link>
          <router-link to="/gallery" class="nav-link">Галерея</router-link>
          <router-link to="/training" class="nav-link">Тренировки</router-link>
          <router-link to="/news" class="nav-link">Новости</router-link>
          <router-link to="/members" class="nav-link">Участники</router-link>
          <router-link to="/reviews" class="nav-link">Отзывы</router-link>
          <router-link to="/register" class="nav-link">Регистрация</router-link>
          <router-link to="/login" class="nav-link">Войти</router-link>
        </nav>
      </div>
    </header>

    <main class="main-content">
      <router-view />
    </main>

    <footer class="app-footer">
      <div class="container">
        <p>© 2025 Беговой клуб "Бегущий Башкир". Все права защищены.</p>
      </div>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-header {
  background-color: #2e8b57;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.router-link-active {
  background-color: rgba(255, 255, 255, 0.2);
}

.main-content {
  min-height: calc(100vh - 140px);
  padding: 2rem 0;
}

.app-footer {
  background-color: #1a3e23;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.page h1 {
  color: #2e8b57;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.page p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.btn {
  display: inline-block;
  background-color: #ffd700;
  color: #333;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0.5rem;
}

.btn:hover {
  background-color: #e6c200;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}
</style>