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

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}School Event Hub{% endblock %}</title>
  
  {% if project_description %}
  <meta name="description" content="{{ project_description }}">
  {% endif %}
  
  {% load static %}
  <!-- Google Fonts -->
  <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@300;400;600;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
  
  <!-- Bootstrap 5 -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  
  <!-- Custom Styles -->
  <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
  
  {% block head %}{% endblock %}
</head>

<body>
  <nav class="navbar navbar-expand-lg sticky-top">
    <div class="container">
      <a class="navbar-brand" href="{% url 'home' %}">
        <span class="text-accent">Edu</span>Events
      </a>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav ms-auto align-items-center">
          <li class="nav-item px-2">
            <a class="nav-link fw-semibold" href="{% url 'home' %}">Explore Events</a>
          </li>
          {% if user.is_authenticated %}
            <li class="nav-item px-2">
              <a class="nav-link fw-semibold" href="/admin/">Dashboard</a>
            </li>
          {% else %}
            <li class="nav-item px-2">
              <a class="nav-link fw-semibold" href="/admin/">Login</a>
            </li>
          {% endif %}
          <li class="nav-item ms-lg-3">
            <a class="btn btn-primary" href="/admin/core/event/add/">Create Event</a>
          </li>
        </ul>
      </div>
    </div>
  </nav>

  <main>
    {% block content %}{% endblock %}
  </main>

  <footer class="footer">
    <div class="container">
      <div class="row align-items-center">
        <div class="col-md-6 text-center text-md-start">
          <h4 class="brand-font mb-0"><span class="text-accent">Edu</span>Events</h4>
          <p class="text-muted mt-2">Connecting schools, parents, and students through meaningful events.</p>
        </div>
        <div class="col-md-6 text-center text-md-end">
          <p class="text-muted mb-0">&copy; 2026 EduEvents Management. All rights reserved.</p>
        </div>
      </div>
    </div>
  </footer>

  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>