{% extends "layouts/base.html" %}
{% load static i18n %}

{% block title %}{% trans "Deletar Item do Roadmap" %} - {% trans "Roadmap Manager" %}{% endblock %}

{% block extrastyle %}
{% include 'roadmap/manager/_roadmap_styles.html' %}
<style>
body .roadmap-delete-card {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 30px rgba(239, 68, 68, 0.2) !important;
}

body .roadmap-delete-card::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent) !important;
}

body .roadmap-delete-icon {
    font-size: 5rem !important;
    color: #ef4444 !important;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5) !important;
    margin-bottom: 1.5rem !important;
}
</style>
{% endblock %}

{% block content %}
<div class="roadmap-manager-bg">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-6">
                <div class="d-flex flex-column flex-md-row justify-content-between align-items-start align-items-md-center mb-5 roadmap-animate-in">
                    <div class="roadmap-page-header mb-3 mb-md-0">
                        <h2 class="mb-2">
                            <i class="bi bi-exclamation-triangle text-danger me-2"></i>
                            {% trans "Confirmar Exclusão" %}
                        </h2>
                        <p>{% trans "Esta ação não pode ser desfeita" %}</p>
                    </div>
                </div>

                <div class="roadmap-card roadmap-delete-card roadmap-animate-in">
                    <div class="card-body text-center py-5">
                        <i class="bi bi-exclamation-triangle roadmap-delete-icon"></i>
                        <h3 class="text-white mb-4" style="font-weight: 700;">{% trans "Confirmar Exclusão" %}</h3>
                        <p class="text-white mb-4" style="font-size: 1.125rem; opacity: 0.95; line-height: 1.7;">
                            {% trans "Tem certeza que deseja deletar o item" %} <br>
                            <strong style="color: #fbbf24;">"{{ roadmap_title }}"</strong>?
                        </p>
                        <p class="text-white mb-4" style="opacity: 0.9; font-size: 1rem;">
                            <i class="bi bi-exclamation-circle me-2" style="color: #fbbf24;"></i>
                            {% trans "Todas as traduções deste item também serão deletadas!" %}
                        </p>
                        <form method="post" class="mt-5">
                            {% csrf_token %}
                            <div class="d-flex gap-3 justify-content-center">
                                <button type="submit" class="roadmap-btn-primary" style="background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important; color: #ffffff !important; min-width: 180px;">
                                    <i class="bi bi-trash me-2"></i>{% trans "Sim, Deletar" %}
                                </button>
                                <a href="{% url 'roadmap:manager_roadmap_detail' roadmap_id=roadmap.id %}" class="roadmap-btn-solid-white" style="min-width: 180px;">
                                    {% trans "Cancelar" %}
                                </a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}