<!DOCTYPE html>
<html lang="en">
<head>
    <title>TopSearchesWorld.com</title>
    <link rel="stylesheet" href="/static/style.css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <img src="/static/mike.png" alt="Mike" class="header-img">
    <div class="container">
        <h1>Welcome to TopSearchesWorld.com!</h1>
        <div class="row">
            <div class="col-md-8">
                <h2>Most Popular Question Today</h2>
                {% if popular %}
                <p><strong>{{ popular[2] }}</strong> (Searches: {{ popular[3] }}) - {{ popular[4] }}</p>
                <a href="/question/{{ popular[0] }}" class="green-btn btn">View Details</a>
                <a href="/full-list" class="btn btn-secondary">See Full Top 100</a>
                {% else %}
                <p>No data yet - update via admin!</p>
                {% endif %}
            </div>
            <div class="col-md-4 sidebar">
                <h3>Random Questions</h3>
                <ul>
                    {% for sid, sq in sidebar %}
                    <li><a href="/question/{{ sid }}">{{ sq }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>
        <div class="ad">Sponsored: [Ad here]</div>
    </div>
</body>
</html>