<?php
/**
 * Spacetree Welcome Page
 * 
 * Shows welcome message, changelog, and new features after plugin update.
 *
 * @package Spacetree
 * @since   2.1.0
 */

defined( 'ABSPATH' ) || exit;

// Get current plugin version
$spacetree = Spacetree::instance();
$current_version = $spacetree->version;

?>

<div class="wrap st-welcome-page">
	<h1><?php esc_html_e( 'Welcome to Spacetree', 'spacetree' ); ?> 🎉</h1>
	
	<div class="st-welcome-header" style="background: #fff; padding: 30px; margin: 20px 0; border-left: 4px solid #00a32a; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
		<h2 style="margin-top: 0; color: #00a32a;">
			<?php printf( esc_html__( 'Thank you for updating to version %s!', 'spacetree' ), esc_html( $current_version ) ); ?>
		</h2>
		<p style="font-size: 16px; color: #333; margin: 15px 0;">
			<?php esc_html_e( 'We\'re excited to bring you the latest improvements and features.', 'spacetree' ); ?>
		</p>
	</div>

	<div class="st-welcome-content" style="background: #fff; padding: 30px; margin: 20px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">
		<h2><?php esc_html_e( 'Current Version', 'spacetree' ); ?></h2>
		<p style="font-size: 24px; font-weight: bold; color: #0073aa; margin: 20px 0;">
			v<?php echo esc_html( $current_version ); ?>
		</p>
	</div>
</div>

<style>
.st-welcome-page {
	max-width: 1200px;
}
</style>

