<template>
  <header class="header">
    <div class="container">
      <div class="header-content">
        <!-- Логотип -->
        <NuxtLink to="/" class="logo">
          <div class="logo-icon">
            <span class="logo-text">T</span>
          </div>
          <span class="logo-name">EasySite</span>
        </NuxtLink>

        <!-- Навигация -->
        <nav class="nav">
          <NuxtLink to="/profile" class="nav-link">
            👤 Профиль
          </NuxtLink>
          <NuxtLink to="/auth/login" class="nav-link">
            🔑 Войти
          </NuxtLink>
          <NuxtLink to="/auth/register" class="btn btn-primary nav-button">
            📝 Регистрация
          </NuxtLink>
        </nav>
      </div>
    </div>
  </header>
</template>

<script setup lang="ts">
// Простой хедер без проверки авторизации
</script>

<style scoped>
.header {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-name {
  font-weight: bold;
  font-size: 1.5rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-button {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 0;
  }
  
  .nav {
    gap: 0.5rem;
  }
  
  .logo-name {
    font-size: 1.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .logo-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .logo-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-name {
    display: none;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link::before {
    content: attr(data-icon);
    font-size: 1.1rem;
  }
}
</style>