<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>NovaEdge | The AI & Edge Systems Journal</title>
  <meta name="description" content="A premier edge-native publication exploring Cloudflare Workers, autonomous AI agents, Model Context Protocol (MCP), and distributed web architecture." />

  <!-- Canonical & Open Graph defaults -->
  <link rel="canonical" href="http://localhost:8788/" />
  <meta property="og:type" content="website" />
  <meta property="og:title" content="NovaEdge | The AI & Edge Systems Journal" />
  <meta property="og:description" content="Insights on Cloudflare Workers, AI Autonomous Agents, and High-Performance Web Engineering." />
  <meta property="og:image" content="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1200&q=80" />
  <meta name="twitter:card" content="summary_large_image" />

  <!-- Sitemaps & Feeds -->
  <link rel="alternate" type="application/rss+xml" title="NovaEdge RSS Feed" href="/feed.xml" />
  <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />

  <!-- Stylesheets -->
  <link rel="stylesheet" href="css/main.css" />
  <link rel="stylesheet" href="css/blog.css" />
  <link rel="stylesheet" href="css/reader.css" />
</head>
<body>
  <!-- Sticky Reading Progress Bar (Active in Reader View) -->
  <div id="reading-progress"></div>

  <!-- Main Navigation -->
  <header class="site-header">
    <div class="container nav-container">
      <a href="/" class="brand-logo" onclick="event.preventDefault(); window.BlogApp.goHome();">
        <div class="brand-icon">⚡</div>
        <span>Nova<span class="gradient-text">Edge</span></span>
      </a>

      <nav aria-label="Main Navigation">
        <ul class="nav-links">
          <li><a href="/" class="nav-link active" onclick="event.preventDefault(); window.BlogApp.goHome();">Articles</a></li>
          <li><a href="/?category=artificial-intelligence" class="nav-link">AI & MCP</a></li>
          <li><a href="/?category=edge-architecture" class="nav-link">Edge Systems</a></li>
          <li><a href="#about" class="nav-link" onclick="window.BlogApp.showAboutView();">About</a></li>
        </ul>
      </nav>

      <div class="nav-actions">
        <!-- Theme Toggle -->
        <button class="btn btn-secondary btn-icon theme-toggle-btn" title="Toggle Theme" aria-label="Toggle Dark/Light Mode">
          🌓
        </button>

        <!-- Admin Dashboard Shortcut -->
        <a href="admin.html" class="btn btn-secondary btn-sm" title="Open Admin CMS">
          ⚙️ Admin CMS
        </a>
      </div>
    </div>
  </header>

  <!-- ==========================================
       VIEW 1: FEED / HOME VIEW
       ========================================== -->
  <div id="feed-view">
    <!-- Hero Header -->
    <section class="hero-section">
      <div class="container">
        <div class="hero-status-pill">
          <span class="pulse-dot"></span>
          <span>Cloudflare Edge Active • MCP Server Online • Sub-15ms Latency</span>
        </div>

        <h1 class="hero-title">
          Where <span class="gradient-text">Autonomous AI Agents</span> & Distributed Edge Architecture Meet.
        </h1>
        <p class="hero-subtitle">
          In-depth technical publications, benchmarks, and protocols on Cloudflare Workers, Model Context Protocol, and edge-native full-stack systems.
        </p>

        <!-- Featured Article Spotlight -->
        <div id="featured-section"></div>

        <!-- Filter & Search Toolbar -->
        <section class="toolbar-section">
          <div class="toolbar-container">
            <div class="category-pills" id="category-pills">
              <!-- Dynamically populated categories -->
            </div>

            <div class="search-box">
              <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <circle cx="11" cy="11" r="8"></circle>
                <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
              </svg>
              <input type="text" id="search-input" class="search-input" placeholder="Search by topic, keyword, or technology..." />
            </div>
          </div>
        </section>

        <!-- Articles Grid -->
        <main>
          <div class="posts-grid" id="posts-grid">
            <!-- Dynamically populated post cards -->
          </div>
        </main>

        <!-- Newsletter / AI Digest Callout -->
        <section class="newsletter-card">
          <span class="badge badge-cyan" style="margin-bottom:0.75rem;">Stay Connected</span>
          <h2>Get the Weekly Edge & AI Dispatch</h2>
          <p style="max-width:560px; margin:0.5rem auto 1.5rem;">
            Curated articles on Model Context Protocol, Cloudflare serverless engineering, and autonomous LLM workflows. Zero spam.
          </p>
          <form class="newsletter-form" onsubmit="event.preventDefault(); window.showToast('Subscribed! Welcome to NovaEdge dispatch.', 'success'); this.reset();">
            <input type="email" class="input-text" placeholder="Enter your work email address..." required style="flex:1;" />
            <button type="submit" class="btn btn-primary">Subscribe</button>
          </form>
        </section>
      </div>
    </section>
  </div>

  <!-- ==========================================
       VIEW 2: ARTICLE READER VIEW
       ========================================== -->
  <div id="reader-view" style="display:none;">
    <!-- Dynamically populated reader template -->
  </div>

  <!-- ==========================================
       VIEW 3: ABOUT / MANIFESTO VIEW
       ========================================== -->
  <div id="about-view" style="display:none;">
    <div class="container" style="max-width:860px; padding:4rem 1.5rem;">
      <span class="badge badge-purple" style="margin-bottom:1rem;">About NovaEdge</span>
      <h1 style="font-size:2.75rem; margin-bottom:1.5rem;">Engineering for the Post-Server Era</h1>
      <div class="article-body">
        <p>NovaEdge is an experimental edge-native publication designed specifically for the next generation of web developers, systems architects, and autonomous AI agents.</p>
        <h2>The Architecture Philosophy</h2>
        <p>Built from the ground up on <strong>Cloudflare Workers</strong>, <strong>Cloudflare Pages</strong>, and <strong>D1 (distributed SQLite)</strong>, this platform demonstrates that you can achieve global sub-15ms response times without managing container clusters or monolithic servers.</p>
        <h2>Empowering AI Agents with MCP</h2>
        <p>This blog isn't just readable by humans—it features a full <strong>Model Context Protocol (MCP)</strong> server running directly on Cloudflare Workers. Autonomous AI agents using Claude Desktop, Cursor, or Antigravity can connect via JSON-RPC 2.0 to search articles, draft new publications, manage taxonomy, and query engagement analytics.</p>
        <div style="margin-top:2.5rem;">
          <a href="/" class="btn btn-primary" onclick="event.preventDefault(); window.BlogApp.goHome();">← Explore Published Articles</a>
          <a href="admin.html" class="btn btn-secondary" style="margin-left:0.75rem;">Open MCP & Admin Hub</a>
        </div>
      </div>
    </div>
  </div>

  <!-- Global Footer -->
  <footer class="site-footer">
    <div class="container">
      <div class="footer-grid">
        <div class="footer-brand">
          <div class="brand-logo">
            <div class="brand-icon">⚡</div>
            <span>Nova<span class="gradient-text">Edge</span></span>
          </div>
          <p>The premier technical publication for autonomous AI agent protocols, distributed Cloudflare Workers, and high-performance edge web engineering.</p>
        </div>

        <div class="footer-col">
          <h4>Explore</h4>
          <ul class="footer-links">
            <li><a href="/" class="footer-link" onclick="event.preventDefault(); window.BlogApp.goHome();">All Articles</a></li>
            <li><a href="/?category=artificial-intelligence" class="footer-link">AI & MCP</a></li>
            <li><a href="/?category=edge-architecture" class="footer-link">Edge Systems</a></li>
            <li><a href="#about" class="footer-link" onclick="window.BlogApp.showAboutView();">About Manifesto</a></li>
          </ul>
        </div>

        <div class="footer-col">
          <h4>AI & Feeds</h4>
          <ul class="footer-links">
            <li><a href="admin.html" class="footer-link">AI Agent MCP Hub</a></li>
            <li><a href="/feed.xml" target="_blank" class="footer-link">RSS 2.0 Feed</a></li>
            <li><a href="/sitemap.xml" target="_blank" class="footer-link">XML Sitemap</a></li>
            <li><a href="/robots.txt" target="_blank" class="footer-link">Robots Directives</a></li>
          </ul>
        </div>

        <div class="footer-col">
          <h4>Edge Status</h4>
          <ul class="footer-links">
            <li><span style="color:var(--accent-emerald);">●</span> Cloudflare D1: Connected</li>
            <li><span style="color:var(--accent-emerald);">●</span> Edge Worker: v1.0.0</li>
            <li><span style="color:var(--accent-emerald);">●</span> MCP Server: Active</li>
            <li><a href="admin.html" class="footer-link" style="color:var(--accent-primary); font-weight:600;">Admin Console →</a></li>
          </ul>
        </div>
      </div>

      <div class="footer-bottom">
        <div>© 2026 NovaEdge. Built with Cloudflare Workers & Pages. Distributed globally.</div>
        <div style="display:flex; gap:1.25rem;">
          <a href="https://x.com" target="_blank" class="footer-link">X (Twitter)</a>
          <a href="https://github.com" target="_blank" class="footer-link">GitHub</a>
          <a href="https://linkedin.com" target="_blank" class="footer-link">LinkedIn</a>
        </div>
      </div>
    </div>
  </footer>

  <!-- Toast Container -->
  <div id="toast-container"></div>

  <!-- Core Scripts -->
  <script type="module" src="js/blog.js"></script>
</body>
</html>
