<?php
/**
 * Welcome Step
 *
 * The opening screen of the setup wizard.  Purely informational — no form
 * fields, no data saved — the user just clicks "Next →" to begin.
 *
 * @package AmbassadorHub\Admin\Wizard\Steps
 */

namespace AmbassadorHub\Admin\Wizard\Steps;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use AmbassadorHub\Admin\Wizard\AbstractWizardStep;

/**
 * Welcome / intro step — first screen of the setup wizard.
 */
final class WelcomeStep extends AbstractWizardStep {

	/**
	 * {@inheritdoc}
	 */
	public function get_id(): string {
		return 'welcome';
	}

	/**
	 * {@inheritdoc}
	 */
	public function get_title(): string {
		return __( 'Welcome to AmbassadorHub', 'ambassadorhub' );
	}

	/**
	 * {@inheritdoc}
	 *
	 * The welcome step cannot be individually skipped — it is purely
	 * informational and the user must click "Next" to proceed.
	 */
	public function is_skippable(): bool {
		return false;
	}

	/**
	 * {@inheritdoc}
	 */
	public function is_done(): bool {
		return false; // Never "done" on its own — it's always the first step.
	}

	/**
	 * {@inheritdoc}
	 */
	public function render(): void {
		?>
		<img src="<?php echo esc_url( AMBASSADOR_HUB_URL . 'assets/images/logo-icon.png' ); ?>" alt="" class="ambh-wizard-welcome-icon">
		<p>
			<?php esc_html_e( 'Thank you for installing AmbassadorHub! This short wizard will walk you through the essential setup so your referral and fundraising platform is ready to go.', 'ambassadorhub' ); ?>
		</p>
		<p>
			<?php esc_html_e( 'The whole process takes about 2 minutes. You can skip any step or the entire wizard at any time — the plugin is fully usable after setup.', 'ambassadorhub' ); ?>
		</p>
		<ul style="margin: 12px 0 0 20px; color: #3c434a; font-size: 13px; line-height: 1.8;">
			<li><?php esc_html_e( '📄  Create the essential WordPress pages', 'ambassadorhub' ); ?></li>
			<li><?php esc_html_e( '✉️  Verify your mail configuration', 'ambassadorhub' ); ?></li>
			<li><?php esc_html_e( '💳  Connect a payment provider', 'ambassadorhub' ); ?></li>
			<li><?php esc_html_e( '🚀  Create your first fundraiser', 'ambassadorhub' ); ?></li>
		</ul>
		<?php
	}
}
