<?php
/**
 * Pro upsell banner partial
 *
 * @package WebEquipe\PDFSearch
 * @since 1.2.0
 *
 * @var array  $features    Feature labels for chips.
 * @var string $landing_url Pricing page URL.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div id="webequipe-pro-banner" class="webequipe-pdf-pro-banner">
	<button
		type="button"
		id="webequipe-pro-banner-dismiss"
		class="webequipe-pdf-pro-banner-dismiss"
		title="<?php esc_attr_e( 'Dismiss', 'webequipe-pdf-search' ); ?>"
		aria-label="<?php esc_attr_e( 'Dismiss Pro upgrade banner', 'webequipe-pdf-search' ); ?>"
	>
		<span aria-hidden="true">&times;</span>
	</button>

	<div class="webequipe-pdf-pro-banner-inner">
		<div class="webequipe-pdf-pro-banner-main">
			<p class="webequipe-pdf-pro-banner-title">
				<?php esc_html_e( 'PDF Search Pro is available', 'webequipe-pdf-search' ); ?>
			</p>
			<p class="webequipe-pdf-pro-banner-subtitle">
				<?php esc_html_e( 'Add OCR for scanned PDFs, private member-only search, and an analytics dashboard.', 'webequipe-pdf-search' ); ?>
			</p>
			<div class="webequipe-pdf-pro-banner-chips">
				<?php foreach ( $features as $webequipe_pdf_pro_feature ) : ?>
					<span class="webequipe-pdf-pro-banner-chip">
						<span class="webequipe-pdf-pro-banner-chip-check" aria-hidden="true">✓</span>
						<?php echo esc_html( $webequipe_pdf_pro_feature ); ?>
					</span>
				<?php endforeach; ?>
			</div>
		</div>

		<div class="webequipe-pdf-pro-banner-aside">
			<a
				href="<?php echo esc_url( $landing_url ); ?>"
				class="webequipe-pdf-pro-banner-cta"
				target="_blank"
				rel="noopener noreferrer"
			>
				<?php esc_html_e( 'View plans & pricing', 'webequipe-pdf-search' ); ?>
			</a>
			<p class="webequipe-pdf-pro-banner-trust">
				<?php esc_html_e( 'Separate Pro plugin. Install after purchase to replace this free version.', 'webequipe-pdf-search' ); ?>
			</p>
		</div>
	</div>
</div>
