<?php
use App\Core\Security;

$title = $title ?? 'CiviGO.eu';
?>
<!doctype html>
<html lang="bg">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="<?= e(Security::csrfToken()) ?>">
    <meta name="theme-color" content="#18B76A">
    <meta name="description" content="CiviGO.eu помага на гражданите да подават сигнали, ЗДОИ заявления, петиции и да проследяват отговори от институции.">
    <title><?= e($title) ?></title>
    <link rel="manifest" href="/manifest.json">
    <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@400;500;600;700;800;900&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <link href="<?= asset('css/app.css') ?>" rel="stylesheet">
</head>
<body class="landing-body">
    <header class="landing-nav">
        <a class="brand" href="/">
            <span class="brand-mark"><i class="bi bi-check2"></i></span>
            <span>civigo<span>.eu</span></span>
        </a>
        <nav>
            <a href="/handbook">Наръчник</a>
            <a href="/institutions">Институции</a>
            <a href="/statistics">Статистики</a>
        </nav>
        <div class="d-flex align-items-center gap-2">
            <button class="icon-button" type="button" data-theme-toggle aria-label="Смени тема">
                <i class="bi bi-moon"></i>
            </button>
            <a class="btn btn-outline-dark" href="/login">Вход</a>
            <a class="btn btn-success" href="/dashboard">Отвори платформата</a>
        </div>
    </header>
    <?= $content ?>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="<?= asset('js/app.js') ?>"></script>
</body>
</html>
