@page
@model AsadiTools.Pages.Admin.Blog.AdminBlogCreateModel
@{ ViewData["Title"] = "نوشته جدید"; Layout = "_AdminLayout"; }

<div class="p-6 md:p-8 max-w-3xl">
    <div class="flex items-center gap-3 mb-8">
        <a href="/Admin/Blog" class="text-gray-400 hover:text-gray-600 text-sm">← بازگشت</a>
        <h1 class="text-2xl font-extrabold text-gray-900">نوشته جدید</h1>
    </div>
    <form method="post" class="bg-white rounded-2xl border border-gray-100 p-6">
        @Html.AntiForgeryToken()
        @await Html.PartialAsync("_BlogFormFields", Model.Input)
        <div class="flex gap-3 mt-6 pt-5 border-t">
            <button type="submit" class="flex-1 bg-blue-700 text-white py-3 rounded-xl font-bold hover:bg-blue-800 transition-colors">
                ذخیره مقاله
            </button>
            <a href="/Admin/Blog" class="px-5 border border-gray-200 rounded-xl text-sm text-gray-600 hover:bg-gray-50 transition-colors flex items-center">
                انصراف
            </a>
        </div>
    </form>
</div>
