{% comment %} Expects 'icon_key' and optional 'icon_class' in context {% endcomment %}
{% if icon_key == "guide" %}
<i aria-hidden="true" data-lucide="book-open" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "api" %}
<i aria-hidden="true" data-lucide="code-2" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "reference" %}
<i aria-hidden="true" data-lucide="bookmark" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "stopwatch" %}
<i aria-hidden="true" data-lucide="timer" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "json" %}
<i aria-hidden="true" data-lucide="braces" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "code" %}
<i aria-hidden="true" data-lucide="code-2" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "code-file" %}
<i aria-hidden="true" data-lucide="file-code-2" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% elif icon_key == "typescript" %}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2' %}">
  <rect width="256" height="256" rx="12" fill="#3178C6" />
  <text x="50%" y="60%" dominant-baseline="middle" text-anchor="middle" font-family="Helvetica, Arial, sans-serif" font-weight="700" font-size="140" fill="white">TS</text>
</svg>
{% elif icon_key == "lock" %}
<i aria-hidden="true" data-lucide="lock" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% else %}
{# Default icon (document-text) #}
<i aria-hidden="true" data-lucide="file-text" class="{% firstof icon_class 'flex-shrink-0 size-5 me-2 text-gray-500' %}"></i>
{% endif %}
