{% extends "base.html" %}

{% block title %}Player Setup - Roster{% endblock %}

{% block content %}
<div class="container py-5">
    <div class="row justify-content-center text-center mb-5">
        <div class="col-lg-6">
            <h1 class="brand-font display-5 mb-3">Player Setup</h1>
            <p class="text-muted">Set up your profile to find your perfect squad.</p>
        </div>
    </div>
    
    <div class="row justify-content-center">
        <div class="col-md-8 col-lg-6">
            <div class="card border-0 shadow-soft p-4 rounded-cg">
                <form method="post">
                    {% csrf_token %}
                    <div class="mb-4">
                        <label class="form-label fw-bold">Gamer Tag</label>
                        <input type="text" name="gamer_tag" class="form-control" placeholder="e.g. MasterGamer2026" required>
                    </div>

                    <div class="mb-4">
                        <label class="form-label fw-bold">Primary Game</label>
                        <select name="primary_game" class="form-select" required>
                            <option value="">Select a game</option>
                            {% for game in games %}
                            <option value="{{ game.id }}">{{ game.name }}</option>
                            {% endfor %}
                        </select>
                    </div>

                    <div class="mb-4">
                        <label class="form-label fw-bold">Platform</label>
                        <select name="platform" class="form-select" required>
                            {% for code, name in platforms %}
                            <option value="{{ code }}">{{ name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    
                    <div class="mb-4">
                        <label class="form-label fw-bold">About You</label>
                        <textarea name="bio" class="form-control" rows="4" placeholder="Tell us about your playstyle, availability, and vibe..." required></textarea>
                    </div>

                    <button type="submit" class="btn btn-primary-cg w-100 py-2">Start Matching</button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
