<?php 
$pageTitle = '404 - Page Not Found';
$robotsMeta = 'noindex, nofollow';
$googlebotMeta = 'noindex, nofollow';
?>
<?php require APP_ROOT . '/views/layouts/header.php'; ?>

<div class="max-w-7xl mx-auto">
    <div class="bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 p-8 md:p-12">
        
        <!-- Banknote Image Section -->
        <div class="text-center mb-8">
            <img src="<?= APP_URL ?>/images/404-banknote.png" alt="404 Banknote - Page Not Found" class="mx-auto max-w-full h-auto rounded-lg shadow-lg" style="max-height: 400px;">
        </div>

        <!-- Main Content -->
        <div class="text-center space-y-6">
            <h1 class="text-4xl md:text-5xl font-bold text-gray-900 dark:text-gray-100">
                Oops! This banknote doesn't exist in our catalogue
            </h1>
            
            <p class="text-xl text-gray-600 dark:text-gray-400">
                You're looking for a page that has disappeared - just like some banknotes that have gone out of circulation.
            </p>

            <!-- Fun Numismatic Facts -->
            <div class="bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 rounded-lg p-6 mt-8 text-left">
                <h2 class="text-lg font-semibold text-amber-900 dark:text-amber-100 mb-4 flex items-center">
                    <svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 20 20">
                        <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"/>
                    </svg>
                    Did you know...?
                </h2>
                <ul class="space-y-3 text-gray-700 dark:text-gray-300">
                    <li class="flex items-start">
                        <span class="text-amber-500 mr-2">💰</span>
                        <span>The rarest banknote in the world is the 1890 US dollar known as the "Grand Watermelon" - it sold for $3.29 million.</span>
                    </li>
                    <li class="flex items-start">
                        <span class="text-amber-500 mr-2">🌍</span>
                        <span>The European Central Bank issues euro banknotes that are identical across all eurozone countries, but coins have a national side.</span>
                    </li>
                    <li class="flex items-start">
                        <span class="text-amber-500 mr-2">🔍</span>
                        <span>Every banknote has a unique serial number - just like every webpage on the internet has its own unique URL.</span>
                    </li>
                    <li class="flex items-start">
                        <span class="text-amber-500 mr-2">📜</span>
                        <span>Notaphily is the branch of numismatics that deals with collecting and studying banknotes - exactly what this site enables!</span>
                    </li>
                </ul>
            </div>

            <!-- Action Buttons -->
            <div class="flex flex-col sm:flex-row gap-4 justify-center mt-8">
                <a href="<?= APP_URL ?>/home" class="btn-gradient btn-gradient-blue btn-gradient-icon btn-gradient-lg">
                    <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
                    </svg>
                    Home
                </a>
                <a href="<?= APP_URL ?>/articles" class="btn-gradient btn-gradient-gray btn-gradient-icon btn-gradient-lg">
                    <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>
                    </svg>
                    Articles
                </a>
            </div>

            <!-- Helpful Message -->
            <div class="mt-8 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
                <p class="text-sm text-blue-800 dark:text-blue-300">
                    <strong>Tip:</strong> If you think this page should exist, there might be an issue with the URL. Check if you entered the address correctly or use the search above.
                </p>
            </div>
        </div>
    </div>
</div>

<?php require APP_ROOT . '/views/layouts/footer.php'; ?>
