<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ pageTitle }} - LocalLendables</title>
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- Custom CSS -->
    <link rel="stylesheet" href="/css/main.css">
    
    <style>
        .static-page-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        .static-page-title {
            color: #2c3e50;
            margin-bottom: 2rem;
            text-align: center;
        }
        .static-page-body {
            line-height: 1.6;
            font-size: 1.1rem;
        }
        .static-page-body h2 {
            color: #34495e;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        .static-page-body h3 {
            color: #5a6c7d;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }
        .static-page-body p {
            margin-bottom: 1rem;
        }
        .static-page-body ul, .static-page-body ol {
            margin-bottom: 1rem;
            padding-left: 2rem;
        }
        .static-page-body li {
            margin-bottom: 0.5rem;
        }
        .admin-edit-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #dc3545;
            color: white;
            text-align: center;
            padding: 0.5rem;
            z-index: 1000;
            font-size: 0.9rem;
        }
        .admin-edit-bar a {
            color: white;
            text-decoration: underline;
            margin-left: 1rem;
        }
        .with-admin-bar {
            margin-top: 3rem;
        }
    </style>
</head>
<body>
    {% if isAdmin %}
    <div class="admin-edit-bar">
        <i class="fas fa-edit"></i> Admin Mode: You can edit this page
        <a href="/admin/static-pages/{{ pageSlug }}/edit"><i class="fas fa-pencil-alt"></i> Edit Page</a>
        <a href="/admin/static-pages"><i class="fas fa-list"></i> Manage All Pages</a>
    </div>
    {% endif %}

    {% include 'common-header.html.twig' %}
    
    <div class="container-fluid {{ isAdmin ? 'with-admin-bar' : '' }}">
        <div class="static-page-content">
            <h1 class="static-page-title">{{ pageTitle }}</h1>
            
            <div class="static-page-body">
                {{ processedContent | raw }}
            </div>
        </div>
    </div>

    {% include 'common-footer.html.twig' %}

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>