<?php
// /m/includes/navigation.php
$current_page = basename($_SERVER['PHP_SELF']);
?>

<nav class="main-navigation">
    <div class="nav-container">
        <a href="<?php echo url('index.php'); ?>" class="nav-logo">🎯 Avatiah</a>
        <div class="nav-links">
            <a href="<?php echo url('index.php'); ?>" class="<?php echo $current_page == 'index.php' ? 'active' : ''; ?>">📊 Главная</a>
            <a href="<?php echo url('components.php'); ?>" class="<?php echo $current_page == 'components.php' ? 'active' : ''; ?>">🔍 Компоненты</a>
            <a href="<?php echo url('events.php'); ?>" class="<?php echo $current_page == 'events.php' ? 'active' : ''; ?>">📅 События</a>
            <a href="<?php echo url('methodology.php'); ?>" class="<?php echo $current_page == 'methodology.php' ? 'active' : ''; ?>">🧮 Методология</a>
        </div>
    </div>
</nav>