{% load static %}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}{{ project_name|default:"SentinelAI Cyber Assistant" }}{% endblock %}</title>
  <meta name="description" content="{% block meta_description %}{{ meta_description|default:project_description|default:'Privacy-first AI cybersecurity assistant for phishing and scam risk scoring.' }}{% endblock %}">
  {% 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=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
  {% block head %}{% endblock %}
</head>

<body>
  <a class="skip-link" href="#main-content">Skip to content</a>
  <nav class="navbar navbar-expand-lg app-nav sticky-top" aria-label="Primary navigation">
    <div class="container">
      <a class="navbar-brand d-flex align-items-center gap-2" href="{% url 'home' %}">
        <span class="brand-mark" aria-hidden="true">◆</span>
        <span>SentinelAI</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 gap-lg-2">
          <li class="nav-item"><a class="nav-link" href="{% url 'home' %}#scanner">Scan</a></li>
          <li class="nav-item"><a class="nav-link" href="{% url 'scan_history' %}">Dashboard</a></li>
          <li class="nav-item"><a class="nav-link" href="{% url 'home' %}#privacy">Privacy</a></li>
          <li class="nav-item"><a class="btn btn-sm btn-admin" href="/admin/">Admin</a></li>
        </ul>
      </div>
    </div>
  </nav>
  <main id="main-content">
    {% block content %}{% endblock %}
  </main>
  <footer class="site-footer py-4">
    <div class="container d-flex flex-column flex-md-row justify-content-between gap-2">
      <span>SentinelAI Cyber Assistant · Explainable risk scoring</span>
      <span>Privacy-first MVP: raw submissions are analyzed in-memory only.</span>
    </div>
  </footer>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" defer></script>
</body>

</html>
