{% extends "base.html" %}
{% block title %}Post erstellen - LinkedIn Posts{% endblock %}

{% block content %}
<div class="max-w-3xl mx-auto">
    <div class="mb-8 text-center">
        <h1 class="text-3xl font-bold text-white mb-2">Post erstellen</h1>
        <p class="text-gray-400">Wähle, wie du deinen Post erstellen möchtest</p>
    </div>

    {% if limit_reached %}
    <div class="mb-6 card-bg border rounded-xl p-4 text-center text-sm text-gray-300">
        Token-Limit erreicht – keine KI-Aktionen mehr heute möglich. Morgen wird das Limit zurückgesetzt.
    </div>
    {% endif %}

    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
        <a href="/create/wizard"
           class="card-bg border rounded-xl p-6 hover:bg-brand-bg-light transition-colors group {% if limit_reached %}opacity-50 pointer-events-none{% endif %}">
            <div class="w-12 h-12 bg-brand-highlight/20 rounded-lg flex items-center justify-center mb-4">
                <svg class="w-6 h-6 text-brand-highlight" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                          d="M12 4v16m8-8H4"/>
                </svg>
            </div>
            <h2 class="text-lg font-semibold text-white mb-2">Per Wizard erstellen</h2>
            <p class="text-gray-400 text-sm">Geführter Prozess mit Post-Typ, Thema und Hook-Auswahl.</p>
        </a>

        <a href="/chat-create"
           class="card-bg border rounded-xl p-6 hover:bg-brand-bg-light transition-colors group {% if limit_reached %}opacity-50 pointer-events-none{% endif %}">
            <div class="w-12 h-12 bg-brand-highlight/20 rounded-lg flex items-center justify-center mb-4">
                <svg class="w-6 h-6 text-brand-highlight" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                          d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
                </svg>
            </div>
            <h2 class="text-lg font-semibold text-white mb-2">Per Chat erstellen</h2>
            <p class="text-gray-400 text-sm">Schnell und flexibel mit dem Chat-Assistenten.</p>
        </a>

        <a href="/create/link-wizard"
           class="card-bg border rounded-xl p-6 hover:bg-brand-bg-light transition-colors group {% if limit_reached %}opacity-50 pointer-events-none{% endif %}">
            <div class="w-12 h-12 bg-brand-highlight/20 rounded-lg flex items-center justify-center mb-4">
                <svg class="w-6 h-6 text-brand-highlight" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                          d="M13.828 10.172a4 4 0 010 5.656l-3 3a4 4 0 11-5.656-5.656l1.5-1.5m4.328-4.328a4 4 0 015.656 0l3 3a4 4 0 11-5.656 5.656l-1.5-1.5"/>
                </svg>
            </div>
            <h2 class="text-lg font-semibold text-white mb-2">Aus Link erstellen</h2>
            <p class="text-gray-400 text-sm">Webseite, PDF oder YouTube-Link analysieren und daraus posten.</p>
        </a>

        <a href="/create/file-wizard"
           class="card-bg border rounded-xl p-6 hover:bg-brand-bg-light transition-colors group {% if limit_reached %}opacity-50 pointer-events-none{% endif %}">
            <div class="w-12 h-12 bg-brand-highlight/20 rounded-lg flex items-center justify-center mb-4">
                <svg class="w-6 h-6 text-brand-highlight" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                          d="M7 2h7l5 5v13a2 2 0 01-2 2H7a2 2 0 01-2-2V4a2 2 0 012-2z"/>
                </svg>
            </div>
            <h2 class="text-lg font-semibold text-white mb-2">Aus Datei erstellen</h2>
            <p class="text-gray-400 text-sm">Datei hochladen und daraus einen Post generieren.</p>
        </a>
    </div>
</div>
{% endblock %}
