<?php
include 'includes/header.php';

// $page_title is now set after language files are loaded by header.php
// Ensure $lang_frontend is available from header.php's centralized loader
$page_title = $lang_frontend['PAGE_TITLE_404'] ?? 'Page Not Found';
?>

<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-8 text-center">
            <h1 class="display-1"><i class="bi bi-emoji-smile-upside-down text-warning"></i></h1>
            <h2 class="mb-4"><?php echo $lang_frontend['ERROR_404_HEADING'] ?? 'Page Not Found'; ?></h2>
            <p class="lead mb-5"><?php echo $lang_frontend['ERROR_404_MESSAGE'] ?? 'The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.'; ?></p>
            <a href="<?php echo getCleanUrl('index'); ?>" class="btn btn-primary"><?php echo $lang_frontend['ERROR_404_BUTTON_HOME'] ?? 'Go to Homepage'; ?></a>
        </div>
    </div>
</div>

<?php include 'includes/footer.php'; ?>