<nav class="top-nav">
    <div class="container">
        <div class="nav-content">
            <!-- <a href="/" class="nav-logo">MCPM</a> -->
            <div class="left-links">
                <a href="/" class="nav-link {% if page.url == '/' %}active{% endif %}">Manager</a>
                <a href="/registry/" class="nav-link {% if page.url contains '/registry/' %}active{% endif %}">Registry</a>
            </div>
            <div class="right-links">
                <a href="https://github.com/pathintegral-institute/mcpm.sh#-community-contributions" target="_blank" class="nav-link">
                    Contribute
                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-left: 5px; vertical-align: -3px;">
                        <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
                    </svg>
                </a>
            </div>
        </div>
    </div>
</nav>

<style>
    .top-nav {
        background-color: var(--bg-accent, #2e3238);
        border-bottom: 1px solid var(--card-border, #3a3e45);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 60px;
        display: flex;
        align-items: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .top-nav .container {
        width: 100%;
        max-width: 1200px;
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
        padding: 0.75rem 0;
    }
    
    .left-links {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .right-links {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        color: var(--text-primary, #e2e8f0);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        white-space: nowrap;
    }
    
    .nav-link:hover {
        color: var(--accent-light, #5CD951);
        text-decoration: none;
    }
    
    .nav-link.active {
        color: var(--accent-highlight, #FF84BD);
    }
    
    main {
        padding-top: calc(60px + 1.5rem) !important;
    }
    
    @media (max-width: 480px) {
        .top-nav {
            padding: 0.5rem 0;
            min-height: auto;
        }
        
        .nav-content {
            flex-direction: column;
            align-items: center;
        }
        
        .left-links {
            justify-content: center;
            padding: 0.5rem 0;
        }

        .right-links {
            display: none;
        }
        
        main {
            padding-top: calc(80px + 1.5rem) !important;
        }
    }
</style>
