"""
Frontend URL Configuration
"""
from django.urls import path
from . import views
from . import auth_views

app_name = 'frontend'

urlpatterns = [
    # Pages
    path('', views.index, name='index'),
    path('softwares/', views.softwares, name='softwares'),
    path('products/', views.products_list, name='products_list'),
    path('product/<slug:slug>/', views.product_detail, name='product_detail'),
    path('categories/', views.categories_view, name='categories'),
    path('about/', views.about_view, name='about'),
    path('contact/', views.contact_view, name='contact'),
    path('cart/', views.cart_view, name='cart'),
    path('checkout/', views.checkout_view, name='checkout'),
    path('wishlist/', views.wishlist_view, name='wishlist'),
    
    # Authentication (HTML, not API)
    path('login/', auth_views.login_view_html, name='login'),
    path('register/', auth_views.register_view, name='register'),
    path('verify-email/', auth_views.verify_email_view, name='verify_email'),
    path('verify-phone/', auth_views.verify_phone_view, name='verify_phone'),
    path('add-phone/', auth_views.add_phone_view, name='add_phone'),
    path('resend-verification/', auth_views.resend_verification_view, name='resend_verification'),
    path('logout/', auth_views.logout_view, name='logout'),
    path('profile/', auth_views.profile_view, name='profile'),
    path('forgot-password/', auth_views.forgot_password_view, name='forgot_password'),
    path('reset-password/<str:uidb64>/<str:token>/', auth_views.reset_password_view, name='reset_password'),
    path('notifications/', auth_views.notification_settings_view, name='notification_settings'),
    
    # Orders
    path('my-orders/', views.my_orders_view, name='my_orders'),
    path('order/<str:order_code>/', views.order_detail_view, name='order_detail'),
    
    # Legal Pages
    path('terms/', views.terms_of_service, name='terms_of_service'),
    path('privacy/', views.privacy_policy, name='privacy_policy'),
    path('maintenance/off/', views.maintenance_off, name='maintenance_off'),
]
