{% extends "base.html" %}

{% block content %}
<h1>Your Results</h1>
<div class="result">
    <h2>Your primary personality type: {{ personality }}</h2>
    <div class="scores">
        <h3>Detailed Scores:</h3>
        <ul>
            {% for type, score in scores.items() %}
            <li>{{ type }}: {{ score }}</li>
            {% endfor %}
        </ul>
    </div>
    <div class="description">
        {% if personality == 'D' %}
        <p><strong>Dominance:</strong> Direct, decisive, and results-oriented...</p>
        {% elif personality == 'I' %}
        <p><strong>Influence:</strong> Enthusiastic, social, and optimistic...</p>
        {% elif personality == 'S' %}
        <p><strong>Steadiness:</strong> Patient, reliable, and team-oriented...</p>
        {% elif personality == 'C' %}
        <p><strong>Conscientiousness:</strong> Analytical, precise, and quality-focused...</p>
        {% endif %}
    </div>
</div>
{% endblock %}