<template>
  <div id="app">
    <header class="app-header">
      <div class="container header-container">
        <!-- Логотип -->
        <router-link to="/" class="logo-link">
          <div class="logo">
            <div class="logo-box">
              <img src="./assets/logo/Logo.png" alt="Little logo begushiy bashkir" class="little-logo">
            </div>
            <div class="logo-box">
              <span><i>Бегущий Башкир</i></span>
            </div>
            <div class="logo-box team">
              <span>team</span>
            </div>
          </div>
        </router-link>

        <!-- Используем компонент меню -->
        <NavigationMenu />
      </div>
    </header>

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

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

<script>
import NavigationMenu from './components/NavigationMenu.vue'

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

<style>
/* Остальные стили остаются без изменений */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Header Styles */
.app-header {
  background-color: #2e8b56;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 2em;
}

/* Logo Styles */
.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: 1002;
}

.logo-box {
  display: flex;
  align-items: center;
}

.little-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.team {
  font-size: 0.8rem;
  opacity: 0.8;
  align-self: flex-end;
  margin-bottom: 0.2rem;
}

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

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

.app-footer p {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1023px) and (min-width: 768px) {
  .team {
    display: none;
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 1.1rem;
  }

  .team {
    display: none;
  }

  .little-logo {
    width: 2rem;
    height: 2rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 360px) {
  .logo-box:nth-child(2) {
    display: none;
  }
}

/* Button Styles */
.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;
}

/* Page Styles */
.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;
}
</style>