<!DOCTYPE html>
<html lang="ru">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Темная тропа{% endblock %}</title>
  {% if page_description %}
  <meta name="description" content="{{ page_description }}">
  {% elif project_description %}
  <meta name="description" content="{{ project_description }}">
  {% endif %}
  {% if project_description %}
  <meta property="og:description" content="{{ project_description }}">
  <meta property="twitter:description" content="{{ project_description }}">
  {% endif %}
  {% if project_image_url %}
  <meta property="og:image" content="{{ project_image_url }}">
  <meta property="twitter:image" content="{{ project_image_url }}">
  {% endif %}
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  {% load static %}
  <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
  {% block head %}{% endblock %}
</head>

<body class="bg-noir text-light">
  <header class="site-nav">
    <nav class="navbar navbar-expand-lg navbar-dark">
      <div class="container">
        <a class="navbar-brand" href="{% url 'home' %}">
          Темная тропа
          <span class="brand-tag">Dark Path RPG</span>
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav" aria-controls="mainNav" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="mainNav">
          <ul class="navbar-nav ms-auto align-items-lg-center">
            <li class="nav-item"><a class="nav-link" href="{% url 'story' %}">Сюжет</a></li>
            <li class="nav-item"><a class="nav-link" href="{% url 'quest_list' %}">Журнал</a></li>
            <li class="nav-item"><a class="nav-link" href="{% url 'inventory' %}">Инвентарь</a></li>
            <li class="nav-item"><a class="nav-link" href="{% url 'character_create' %}">Новый герой</a></li>
            <li class="nav-item"><a class="nav-link nav-link-admin" href="/admin/" target="_blank" rel="noopener">Админка</a></li>
          </ul>
        </div>
      </div>
    </nav>
  </header>

  {% block content %}{% endblock %}

  <footer class="site-footer">
    <div class="container">
      <div class="footer-inner">
        <div>
          <strong>Темная тропа</strong> — интерактивная история в духе ведьмачьих хроник.
        </div>
        <div class="footer-meta">Собрано на Django · Развивайте мир через админку</div>
      </div>
    </div>
  </footer>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" defer></script>
</body>

</html>
