<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}Master of Tones - 64-bit Multi-Effects{% endblock %}</title>
    {% if project_description %}
    <meta name="description" content="{{ project_description }}">
    {% endif %}
    {% load static %}
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
    <!-- Custom Styles -->
    <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
    <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=Oswald:wght@400;700&family=Inter:wght@400;600&display=swap" rel="stylesheet">
    {% block head %}{% endblock %}
</head>
<body class="bg-black text-light">
    <nav class="navbar navbar-expand-lg navbar-dark bg-black border-bottom border-secondary sticky-top py-3">
        <div class="container">
            <a class="navbar-brand fw-bold d-flex align-items-center" href="{% url 'index' %}">
                <i class="bi bi-soundwave text-warning me-2 fs-3"></i>
                <span class="text-uppercase tracking-wider">Master of <span class="text-warning">Tones</span></span>
            </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">
                        <a class="nav-link px-3" href="{% url 'index' %}">EXPLORE</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link px-3" href="{% url 'audio_settings' %}"><i class="bi bi-cpu me-1"></i>ENGINE</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link px-3" href="/admin/"><i class="bi bi-shield-lock me-1"></i>ADMIN</a>
                    </li>
                    <li class="nav-item ms-lg-3">
                        <a class="btn btn-warning fw-bold px-4 rounded-pill" href="{% url 'standalone_download' %}">
                            <i class="bi bi-download me-2"></i>STANDALONE 64-BIT
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

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

    <footer class="bg-black py-5 border-top border-secondary mt-5">
        <div class="container text-center">
            <div class="mb-4">
                <i class="bi bi-soundwave text-warning display-4"></i>
            </div>
            <p class="text-secondary small mb-0">© 2026 MASTER OF TONES ENGINE. ALL RIGHTS RESERVED.</p>
            <p class="text-secondary small">ENGINEERED FOR HIGH-FIDELITY PERFORMANCE & LOW LATENCY.</p>
        </div>
    </footer>

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