<?php
// File: artist_guide.php
include 'header.php';
?>

<div class="bg-white py-12 md:py-20">
  <div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center mb-8">
      <h1 class="text-3xl md:text-4xl font-extrabold text-ucf-charcoal">United Cultural Forum - Artist User Guide</h1>
      <p class="mt-3 text-gray-600 max-w-2xl mx-auto">This guide will walk you through every step of setting up your artist profile, uploading your artwork, and managing your account.</p>
    </div>

    <article class="prose lg:prose-xl mx-auto">
      <h2>Section 1: Artist Registration & Subscription</h2>

      <p><strong>Before you can sell your art, you must create an artist account and activate your subscription.</strong></p>

      <h3>Step 1: Go to the Registration Page</h3>
      <p>On the website's main menu, click the <strong>ARTIST LOGIN/SIGNUP</strong> button. On the login page, click the <strong>Sign Up</strong> link to go to the "Create Your Account" page.</p>

      <h3>Step 2: Select Your Role</h3>
      <p>Click on the <strong>Artist</strong> card. This will reveal the special fields required for your artist profile.</p>

      <h3>Step 3: Fill Out Your Details</h3>
      <p>You must fill out all the required fields:</p>
      <ul>
        <li><strong>Account Details:</strong> Your desired Username, Email, and Password.</li>
        <li><strong>Profile Details:</strong> Your First Name, Last Name, Phone, and Address.</li>
        <li><strong>Profile Photo:</strong> Upload a photo of yourself (max 100KB).</li>
        <li><strong>Subscription Pack:</strong> Choose your desired subscription plan (e.g., 3 Months, 6 Months) from the dropdown menu.</li>
      </ul>

      <h3>Step 4: Complete the Payment</h3>
      <p>After filling out the form, click <strong>Register</strong>. You will be taken to the "Complete Your Registration" page, which shows a summary of your chosen plan. Click <strong>Proceed to PayU</strong> to go to the secure payment gateway. Complete the payment using your preferred method (Test UPI, card, etc.).</p>

      <h3>Step 5: Confirmation</h3>
      <p>After a successful payment, you will be redirected back to our website. You will see a <strong>"Registration Complete!"</strong> message. Your account is now active, and you will be automatically logged in and sent to your new Artist Dashboard.</p>

      <hr>

      <h2>Section 2: Your Artist Dashboard</h2>
      <p>Your Artist Dashboard is your private control center for managing your profile and your art.</p>

      <h3>How to Access:</h3>
      <p>Once you are logged in, the "ARTIST LOGIN/SIGNUP" button on the main site will change to a green <strong>My Dashboard</strong> button. Click this at any time to access your dashboard.</p>

      <h3>Main Page:</h3>
      <p>The dashboard home page gives you a quick overview of your account, including:</p>
      <ul>
        <li>Total Paintings you have uploaded.</li>
        <li>Total Sales (coming soon).</li>
        <li>Your Profile Completion percentage.</li>
        <li>Your Subscription status.</li>
      </ul>

      <hr>

      <h2>Section 3: Key Dashboard Features</h2>
      <p>Use the sidebar menu on the left to navigate your dashboard.</p>

      <h3>My Profile</h3>
      <p>This is where you manage your personal and shop information.</p>
      <ul>
        <li><strong>Update Info:</strong> You can change your name, phone number, and address at any time.</li>
        <li><strong>Payout Details:</strong> This is very important. Fill in your Bank Name and Account/IBAN so we know where to send your earnings when you make a sale.</li>
        <li><strong>Change Profile Photo:</strong> Upload a new profile picture here.</li>
      </ul>

      <h3>My Paintings</h3>
      <p>This is where you manage the artwork you want to sell.</p>
      <ul>
        <li><strong>To Upload:</strong> Click the "Add New Painting" button, fill in the title, description, and price, and upload your painting's image.</li>
        <li><strong>To Edit:</strong> Find your painting in the list and click the "Edit" button. You can change the details or upload a new image.</li>
        <li><strong>To Delete:</strong> Click the "Delete" button next to any painting you wish to remove.</li>
      </ul>

      <h3>My Sales (Orders)</h3>
      <p>This page shows a complete history of all your successful sales. You can track which paintings were sold, on what date, and for how much.</p>

      <h3>Competitions</h3>
      <p>This page lists all active art competitions you can join. Click "Participate Now" to enter a competition (this feature is under development).</p>

      <h3>Support Tickets</h3>
      <p>If you have a problem or a question, this is the best way to contact the admin team. Click "Create New Ticket" to send us a private message. You can view all your past and current conversations here and see when an admin has replied.</p>

      <h3>Logout</h3>
      <p>Click this button to securely log out of your account.</p>

      <p class="text-sm text-gray-500 mt-6">Last updated: <?php echo date('Y-m-d'); ?></p>
    </article>

    <div class="mt-8">
      <a href="/" class="inline-block bg-ucf-green text-white px-4 py-2 rounded-lg hover:bg-ucf-green-dark">Back to Home</a>
    </div>
  </div>
</div>

<?php include 'footer.php'; ?>
