<!DOCTYPE html>
<html lang="pt-br">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}FashionMock AI{% endblock %}</title>
  
  <!-- 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:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
  
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  
  {% load static %}
  <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
  
  <style>
    :root {
      --primary-dark: #121212;
      --accent-blue: #2962FF;
      --pearl-white: #F8F9FA;
      --soft-gray: #E0E0E0;
    }
    
    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--pearl-white);
      color: var(--primary-dark);
    }
    
    h1, h2, h3, .brand-font {
      font-family: 'Playfair Display', serif;
    }
    
    .navbar-fashion {
      background-color: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .btn-fashion {
      background-color: var(--primary-dark);
      color: white;
      border-radius: 0;
      padding: 12px 30px;
      font-weight: 600;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    
    .btn-fashion:hover {
      background-color: var(--accent-blue);
      color: white;
    }
    
    .glass-card {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    }
  </style>
  {% block head %}{% endblock %}
</head>

<body>
  <nav class="navbar navbar-expand-lg navbar-fashion sticky-top">
    <div class="container">
      <a class="navbar-brand brand-font fw-bold fs-3" href="{% url 'index' %}">FashionMock AI</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-nav-item mx-2">
            <a class="nav-link" href="{% url 'index' %}">Início</a>
          </li>
          {% if user.is_authenticated %}
          <li class="nav-item mx-2">
            <a class="nav-link" href="{% url 'dashboard' %}">Meus Mockups</a>
          </li>
          <li class="nav-item mx-2">
            <a class="btn btn-fashion btn-sm" href="{% url 'create_mockup' %}">Criar Novo</a>
          </li>
          <li class="nav-item mx-2">
            <form action="{% url 'logout' %}" method="post" class="d-inline">
              {% csrf_token %}
              <button type="submit" class="btn btn-link nav-link">Sair</button>
            </form>
          </li>
          {% else %}
          <li class="nav-item mx-2">
            <a class="nav-link" href="{% url 'login' %}">Entrar</a>
          </li>
          <li class="nav-item mx-2">
            <a class="btn btn-fashion btn-sm" href="{% url 'login' %}">Começar Agora</a>
          </li>
          {% endif %}
        </ul>
      </div>
    </div>
  </nav>

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

  <footer class="py-5 bg-white border-top mt-5">
    <div class="container text-center">
      <p class="brand-font fs-4 fw-bold">FashionMock AI</p>
      <p class="text-muted small">© 2026 FashionMock AI. Criado para designers de moda modernos.</p>
    </div>
  </footer>

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

</html>