<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Jenerally-Speaking - Index</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', serif;
            line-height: 1.6;
            color: #333;
            background-color: #f9f7f4;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 20px;
            text-align: center;
        }

        header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 300;
        }

        header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .content {
            padding: 40px;
        }

        .intro {
            text-align: center;
            margin-bottom: 50px;
        }

        .intro h2 {
            color: #667eea;
            margin-bottom: 15px;
            font-size: 1.8em;
        }

        .intro p {
            font-size: 1.1em;
            color: #666;
            max-width: 600px;
            margin: 0 auto;
        }

        .journal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .journal-entry {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 25px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .journal-entry:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: #667eea;
        }

        .journal-entry h3 {
            color: #333;
            margin-bottom: 10px;
            font-size: 1.3em;
        }

        .journal-entry .date {
            color: #667eea;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .journal-entry .preview {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .journal-entry .read-more {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s ease;
            font-size: 0.9em;
        }

        .journal-entry .read-more:hover {
            background: #5a67d8;
        }

        .search-box {
            margin-bottom: 30px;
            text-align: center;
        }

        .search-box input {
            padding: 12px 20px;
            font-size: 1em;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            width: 100%;
            max-width: 400px;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .search-box input:focus {
            border-color: #667eea;
        }

        footer {
            background: #f8f9fa;
            padding: 30px;
            text-align: center;
            color: #666;
            border-top: 1px solid #e0e0e0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            header {
                padding: 30px 20px;
            }

            header h1 {
                font-size: 2em;
            }

            .content {
                padding: 20px;
            }

            .journal-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>My Personal Journal</h1>
            <p>A collection of thoughts, experiences, and memories</p>
        </header>

        <div class="content">
            <div class="intro">
                <h2>Welcome to My Journal</h2>
                <p>Here you'll find all my journal entries organized by date. Each entry captures a moment in time, a thought, or an experience worth remembering. Click on any entry below to read the full story.</p>
            </div>

            <div class="search-box">
                <input type="text" id="searchInput" placeholder="Search journal entries..." onkeyup="searchEntries()">
            </div>

            <div class="journal-grid" id="journalGrid">
                <!-- Example Journal Entry 1 -->
                <div class="journal-entry" data-title="A Beautiful Sunset" data-date="2025-06-04">
                    <div class="date">June 4, 2025</div>
                    <h3>A Beautiful Sunset</h3>
                    <div class="preview">
                        Today I witnessed one of the most breathtaking sunsets I've ever seen. The sky was painted in shades of orange, pink, and purple...
                    </div>
                    <a href="entries/2025/06-june/04/index.html" class="read-more">Read Full Entry</a>
                </div>

                <!-- Example Journal Entry 2 -->
                <div class="journal-entry" data-title="Coffee Shop Reflections" data-date="2024-06-05">
                    <div class="date">June 5, 2024</div>
                    <h3>Coffee Shop Reflections</h3>
                    <div class="preview">
                        Sitting in my favorite coffee shop this morning, I couldn't help but observe the fascinating array of people around me...
                    </div>
                    <a href="2024-06-05-coffee/index.html" class="read-more">Read Full Entry</a>
                </div>

                <!-- Example Journal Entry 3 -->
                <div class="journal-entry" data-title="Learning Something New" data-date="2024-06-01">
                    <div class="date">June 1, 2024</div>
                    <h3>Learning Something New</h3>
                    <div class="preview">
                        Today I decided to challenge myself and learn something completely outside my comfort zone. The experience was both humbling and exciting...
                    </div>
                    <a href="2024-06-01-learning/index.html" class="read-more">Read Full Entry</a>
                </div>

                <!-- Example Journal Entry 4 -->
                <div class="journal-entry" data-title="Family Gathering" data-date="2024-05-28">
                    <div class="date">May 28, 2024</div>
                    <h3>Family Gathering</h3>
                    <div class="preview">
                        Our annual family reunion brought together relatives from across the country. It's amazing how quickly we fall back into old patterns...
                    </div>
                    <a href="2024-05-28-family/index.html" class="read-more">Read Full Entry</a>
                </div>

                <!-- Example Journal Entry 5 -->
                <div class="journal-entry" data-title="Garden Adventures" data-date="2024-05-25">
                    <div class="date">May 25, 2024</div>
                    <h3>Garden Adventures</h3>
                    <div class="preview">
                        Spring has finally arrived, and my garden is coming to life. Today I spent hours planting new flowers and vegetables...
                    </div>
                    <a href="2024-05-25-garden/index.html" class="read-more">Read Full Entry</a>
                </div>

                <!-- Example Journal Entry 6 -->
                <div class="journal-entry" data-title="Rainy Day Thoughts" data-date="2024-05-20">
                    <div class="date">May 20, 2024</div>
                    <h3>Rainy Day Thoughts</h3>
                    <div class="preview">
                        The rain has been falling steadily all day, creating the perfect atmosphere for reflection and introspection...
                    </div>
                    <a href="2024-05-20-rain/index.html" class="read-more">Read Full Entry</a>
                </div>
            </div>
        </div>

        <footer>
            <p>&copy; 2024 My Personal Journal. All rights reserved.</p>
            <p>Created with love and memories.</p>
        </footer>
    </div>

    <script>
        function searchEntries() {
            const searchInput = document.getElementById('searchInput');
            const filter = searchInput.value.toLowerCase();
            const journalGrid = document.getElementById('journalGrid');
            const entries = journalGrid.getElementsByClassName('journal-entry');

            for (let i = 0; i < entries.length; i++) {
                const title = entries[i].getAttribute('data-title').toLowerCase();
                const date = entries[i].getAttribute('data-date').toLowerCase();
                const preview = entries[i].getElementsByClassName('preview')[0].textContent.toLowerCase();

                if (title.includes(filter) || date.includes(filter) || preview.includes(filter)) {
                    entries[i].style.display = '';
                } else {
                    entries[i].style.display = 'none';
                }
            }
        }
    </script>
</body>
</html>

