{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}Movie Review Sentiment Analyzer{% endblock %}</title>

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">

  <!-- Bootstrap 5 -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- FontAwesome -->
  <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>

  <!-- Chart.js -->
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

  <!-- Custom CSS -->
  <link rel="stylesheet" type="text/css" href="{% static 'MovieReviewApp/style.css' %}">
  
  <style>
    body {
      font-family: 'Poppins', sans-serif;
      background-color: #0d1117;
      color: #f5f5f5;
      margin: 0;
      padding: 0;
    }

    /* Navbar */
    .navbar {
      background: linear-gradient(90deg, #1e1e1e, #2b2b2b);
      padding: 1rem 2rem;
      border-bottom: 1px solid #333;
    }

    .navbar-brand {
      font-weight: 700;
      color: #ffcc00 !important;
      letter-spacing: 1px;
    }

    .navbar-brand:hover {
      color: #fff700 !important;
    }

    /* Jumbotron / Header */
    .hero-section {
      background: url("{% static 'MovieReviewApp/bg_cinema.jpg' %}") center/cover no-repeat;
      height: 300px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: #ffffff;
      border-radius: 10px;
      margin-top: 20px;
      box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
    }

    .hero-section h1 {
      font-size: 2.5rem;
      font-weight: 700;
      text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .hero-section p {
      font-size: 1.2rem;
      color: #d1d1d1;
    }

    /* Footer */
    footer {
      background-color: #1a1a1a;
      color: #888;
      text-align: center;
      padding: 20px 0;
      margin-top: 50px;
      border-top: 1px solid #333;
    }

    footer a {
      color: #ffcc00;
      text-decoration: none;
    }

    footer a:hover {
      color: #fff;
    }
  </style>
</head>
<body>

  <!-- Navbar -->
  <nav class="navbar navbar-expand-lg navbar-dark">
    <a class="navbar-brand" href="/">🎬 Movie Analyzer</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">
        <li class="nav-item"><a class="nav-link" href="{% url 'MovieReviewApp:home' %}">Home</a></li>
        <li class="nav-item"><a class="nav-link" href="{% url 'MovieReviewApp:list' %}">Movie List</a></li>
        <li class="nav-item"><a class="nav-link" href="{% url 'MovieReviewApp:graph' %}">Analytics</a></li>
      </ul>
    </div>
  </nav>

  <!-- Header Section -->
  <div class="container">
    <div class="hero-section">
      <h1><i class="fas fa-film"></i> Movie Review Analyzer</h1>
      <p>Discover movie sentiments powered by AI</p>
    </div>

    <main class="my-5">
      {% block body %}
      <!-- Page content will appear here -->
      {% endblock %}
    </main>
  </div>

  <!-- Footer -->
  <footer>
    <p>© 2025 Movie Review Sentiment Analyzer | Built with ❤️ by <a href="#">UpdateGadh</a></p>
  </footer>

  <!-- Scripts -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
