@inject Microsoft.AspNetCore.Http.IHttpContextAccessor Accessor

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"]</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" 
        integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.21.4/dist/bootstrap-table.min.css">
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
    <link rel="stylesheet" href="~/Expedience.Web.styles.css" asp-append-version="true" />
    @RenderSection("styles", false)
</head>
<body>
    <header>
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
            <div class="container">
                <a class="navbar-brand" asp-area="" asp-page="/Index">Expedience</a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
                        aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
                    <ul class="navbar-nav flex-grow-1">
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/EW" || Accessor.HttpContext.Request.Path.Value == "/"? "dark" : "muted")" asp-area="" asp-page="/Index" asp-route-expac="EW">Endwalker</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/ShB" ? "dark" : "muted")" asp-area="" asp-page="/Index" asp-route-expac="ShB">Shadowbringers</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/StB" ? "dark" : "muted")" asp-area="" asp-page="/Index" asp-route-expac="StB">Stormblood</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/HW" ? "dark" : "muted")" asp-area="" asp-page="/Index" asp-route-expac="HW">Heavensward</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/ARR" ? "dark" : "muted")" asp-area="" asp-page="/Index" asp-route-expac="ARR">A Realm Reborn</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-@(Accessor.HttpContext.Request.Path.Value == "/DeepDungeons" ? "dark" : "muted")" asp-page="/DeepDungeons">Deep Dungeons</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <div class="container">
        <main role="main" class="pb-3">
            @RenderBody()
        </main>
    </div>

    <footer class="border-top footer text-muted">
        <div class="container">
            &copy; 2023 - Expedience - <a asp-area="" asp-page="/Privacy">Privacy</a>
        </div>
    </footer>

    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    
    <script src="https://unpkg.com/bootstrap-table@1.21.4/dist/bootstrap-table.min.js"></script>
    @await RenderSectionAsync("Scripts", required: false)
</body>
</html>