<?php
/**
 * Résumé du profil d'accès.
 *
 * @package PCC
 * @license GPL-2.0-or-later
 * @var string $access
 * @var string $access_label
 */

defined( 'ABSPATH' ) || exit;

$summaries = array(
	'guest'     => __( 'Free mode: scan active plugins and your theme against the next PHP version. JSON export included — no account required.', 'php-compatibility-checker-by-volade' ),
	'connected' => __( 'Volade account: scan all plugins and themes, any PHP 8.x target, mark false positives, and scan premium code.', 'php-compatibility-checker-by-volade' ),
	'premium'   => __( 'V+ Premium: scan history, CSV export, and WP-CLI for agencies and CI.', 'php-compatibility-checker-by-volade' ),
);

$summary     = $summaries[ $access ] ?? $summaries['guest'];
$chip_class  = 'pcc-profile-chip';
if ( 'premium' === $access ) {
	$chip_class .= ' pcc-profile-premium';
} elseif ( 'guest' === $access ) {
	$chip_class .= ' pcc-profile-guest';
}
?>
<div class="<?php echo esc_attr( $chip_class ); ?>">
	<span class="pcc-profile-chip-label"><?php esc_html_e( 'Your profile', 'php-compatibility-checker-by-volade' ); ?></span>
	<strong class="pcc-profile-chip-value"><?php echo esc_html( $access_label ); ?></strong>
	<p class="pcc-profile-chip-desc"><?php echo esc_html( $summary ); ?></p>
</div>
