<?php
declare(strict_types=1);
require_once __DIR__ . '/../db/config.php';

$projectTitle = "AFG_CARS - Supreme Automotive";
$projectDescription = "Elite car dealership management system. Premium marketplace, installments, and branch management.";
$current_page = basename($_SERVER['PHP_SELF']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= htmlspecialchars($projectTitle) ?></title>
    <meta name="description" content="<?= htmlspecialchars($projectDescription) ?>">
    
    <link rel="stylesheet" href="assets/css/style.css?v=<?= time() ?>">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>

<header>
    <div class="logo">AFG_CARS<span>.</span></div>
    <nav>
        <ul>
            <li><a href="index.php" target="_blank" <?= $current_page == 'index.php' ? 'class="active"' : '' ?>>Home</a></li>
            <li><a href="marketplace.php" target="_blank" <?= $current_page == 'marketplace.php' ? 'class="active"' : '' ?>>Marketplace</a></li>
            <li><a href="work.php" target="_blank" <?= $current_page == 'work.php' ? 'class="active"' : '' ?>>Work</a></li>
            <li><a href="about.php" target="_blank" <?= $current_page == 'about.php' ? 'class="active"' : '' ?>>About</a></li>
            <li><a href="contact.php" target="_blank" <?= $current_page == 'contact.php' ? 'class="active"' : '' ?>>Contact Us</a></li>
            <li><a href="setup.php" target="_blank" class="admin-link"><i class="fas fa-user-shield"></i> Admin</a></li>
        </ul>
    </nav>
</header>
