{% load static %}
<!DOCTYPE html>
<html lang="hy">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ title|default:"Իմ հայրենիք" }}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <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=Noto+Sans+Armenian:wght@400;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --am-red: #D90012;
            --am-blue: #0033A0;
            --am-orange: #F2A800;
            --dark-bg: #1a1a1a;
            --glass: rgba(255, 255, 255, 0.1);
        }
        body {
            font-family: 'Noto Sans Armenian', sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .navbar {
            background: rgba(255, 255, 255, 0.9) !important;
            backdrop-filter: blur(10px);
            border-bottom: 3px solid var(--am-blue);
        }
        .navbar-brand {
            font-weight: 700;
            color: var(--am-blue) !important;
        }
        .btn-primary {
            background-color: var(--am-blue);
            border-color: var(--am-blue);
        }
        .btn-primary:hover {
            background-color: #00267a;
            border-color: #00267a;
        }
        .btn-accent {
            background-color: var(--am-orange);
            color: white;
            border: none;
            font-weight: bold;
        }
        .btn-accent:hover {
            background-color: #d99600;
            color: white;
        }
        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .hero-section {
            background: linear-gradient(rgba(0, 51, 160, 0.8), rgba(217, 0, 18, 0.8)), url('https://images.unsplash.com/photo-1579618210881-266895317796?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 100px 0;
            text-align: center;
            border-bottom: 5px solid var(--am-orange);
        }
        footer {
            margin-top: auto;
            background: #222;
            color: #ccc;
            padding: 20px 0;
            text-align: center;
        }
    </style>
    {% block extra_css %}{% endblock %}
</head>
<body>
    <nav class="navbar navbar-expand-lg sticky-top">
        <div class="container">
            <a class="navbar-brand" href="{% url 'index' %}">Իմ հայրենիք</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 'index' %}">Գլխավոր</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'leaderboard' %}">Լավագույնները</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/admin/">Ադմին</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    {% block content %}{% endblock %}

    <footer>
        <div class="container">
            <p>&copy; 2024 «Իմ հայրենիք» ինտելեկտուալ խաղ</p>
            <div style="display: flex; justify-content: center; gap: 5px; height: 10px;">
                <div style="width: 20px; background: var(--am-red);"></div>
                <div style="width: 20px; background: var(--am-blue);"></div>
                <div style="width: 20px; background: var(--am-orange);"></div>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    {% block extra_js %}{% endblock %}
</body>
</html>