<?php
/**
 * Public-facing functionality.
 *
 * @package MasterQuiz
 * @since   1.0.0
 */

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

/**
 * Class MasterQuiz_Public
 *
 * Registers and manages public-facing assets.
 *
 * @since 1.0.0
 */
class MasterQuiz_Public {

	/**
	 * Register public assets (scripts and styles).
	 *
	 * Assets are registered but NOT enqueued here — they are enqueued
	 * only when the shortcode is rendered (see MasterQuiz_Shortcode).
	 *
	 * @since 1.0.0
	 */
	public function register_assets() {
		wp_register_style(
			'masterquiz-public',
			MASTERQUIZ_PLUGIN_URL . 'public/css/masterquiz-public.css',
			array(),
			MASTERQUIZ_VERSION
		);

		wp_register_script(
			'masterquiz-public',
			MASTERQUIZ_PLUGIN_URL . 'public/js/masterquiz-public.js',
			array( 'jquery' ),
			MASTERQUIZ_VERSION,
			true
		);
	}
}
