<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
/**
 * Customize Upgrade control class.
 * Displays a styled "Upgrade to Pro" message in the Customizer.
 *
 * @package pawfect
 *
 * @see     WP_Customize_Control
 * @access  public
 */

/**
 * Class pawfect_Customize_Upgrade_Control
 */
class pawfect_Customize_Upgrade_Control extends pawfect_Customize_Base_Control {

	/**
	 * Customize control type.
	 *
	 * @access public
	 * @var    string
	 */
	public $type = 'pawfect-upgrade';

	/**
	 * Render the control content.
	 */
	protected function render_content() {
		?>
		<div class="pawfect-upgrade-pro-message" style="margin: 0; padding: 12px 16px; background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%); border-left: 4px solid #0073aa; border-radius: 4px;">
			<?php if ( ! empty( $this->label ) ) : ?>
			<p style="margin: 0; font-size: 13px; color: #1e1e1e; font-weight: 600;"><?php echo esc_html( $this->label ); ?></p>
			<?php endif; ?>
			<p style="margin: 6px 0 0; font-size: 12px; color: #50575e;">
				<?php printf(
					/* translators: %s: upgrade link */
					esc_html__( 'Upgrade to %s for unlimited items and premium features!', 'pawfect' ),
					'<a href="https://wpmatcha.com/wordpress-themes/pawfect/" target="_blank" style="color: #0073aa; text-decoration: none; font-weight: 600;">Pawfect Pro</a>'
				); ?>
			</p>
		</div>
		<?php
	}

	/**
	 * Empty content_template - using render_content() instead
	 */
	protected function content_template() {
		// Empty - using render_content() instead
	}
}
