<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blog Search</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: white;
            color: #1e293b;
            line-height: 1.6;
            margin: 0;
            padding: 0;
        }
        
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .subtitle {
            color: #64748b;
            font-size: 1rem;
            margin-bottom: 2rem;
        }
        
        .search-box {
            position: relative;
            margin-bottom: 2rem;
        }
        
        #searchInput {
            width: 100%;
            padding: 1rem;
            font-size: 1.125rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.5rem;
            outline: none;
        }
        
        #searchInput:focus {
            border-color: #3b82f6;
        }
        
        .results-count {
            color: #64748b;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }
        
        .post {
            border-bottom: 1px solid #e2e8f0;
            padding: 1.5rem 0;
        }
        
        .post-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1e293b;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .post-title:hover {
            color: #3b82f6;
        }
        
        .post-date {
            font-size: 0.875rem;
            color: #64748b;
            margin-bottom: 0.75rem;
        }
        
        .post-excerpt {
            color: #475569;
            line-height: 1.7;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
        }
        
        .pagination button {
            padding: 0.5rem 1rem;
            border: 1px solid #cbd5e1;
            background: white;
            border-radius: 0.5rem;
            cursor: pointer;
        }
        
        .pagination button:hover:not(:disabled) {
            background: #f8fafc;
        }
        
        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pagination .active {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        
        .loading {
            text-align: center;
            padding: 3rem;
            color: #64748b;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Daily Blog Archive</h1>
        <div class="subtitle" id="subtitle">Loading...</div>
        
        <div class="search-box">
            <input type="text" id="searchInput" placeholder="Search posts...">
        </div>
        
        <div id="resultsCount" class="results-count"></div>
        <div id="postsContainer"><div class="loading">Loading posts...</div></div>
        <div id="pagination" class="pagination"></div>
    </div>
</body>
</html>