<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MajuroEats - Fast Island Delivery</title>
    <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=Nunito:wght@400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
    <link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
    <header>
    <div class="container">
        <nav class="main-nav">
            <a href="/" class="logo">
                <span class="logo-icon">🌊</span>
                <span class="logo-text">MajuroEats</span>
            </a>
            <ul class="nav-links">
                <li><a href="/">Home</a></li>
                <li><a href="index.php">Restaurants</a></li>
                <li><a href="#">Rewards</a></li>
                <li><a href="driver_signup.php">Driver</a></li>
                <li><a href="#">Help</a></li>
            </ul>
            <div class="nav-actions">
                <?php if (isset($_SESSION['user_id'])): ?>
                    <a href="profile.php" class="nav-link-button">Profile</a>
                    <a href="logout.php" class="nav-button primary">Logout</a>
                <?php else: ?>
                    <a href="login.php" class="nav-link-button">Sign In</a>
                    <a href="signup.php" class="nav-button primary">Sign Up</a>
                <?php endif; ?>
            </div>
            <button class="hamburger">
                <span></span>
                <span></span>
                <span></span>
            </button>
        </nav>
    </div>
</header>

<main>