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

defined( 'ABSPATH' ) || exit;

$summaries = array(
	'guest'     => __( 'Free mode: version picker, presets, diagnostics, plugin preflight, JSON export/import, WP-CLI, and multisite work without a Volade account.', 'core-version-switcher-by-volade' ),
	'connected' => __( 'Volade account connected: same core features plus synced settings across your Volade workspace.', 'core-version-switcher-by-volade' ),
	'premium'   => __( 'V+ Premium: custom ZIP URL, auto-clear pin after switch, extended switch log (50 entries).', 'core-version-switcher-by-volade' ),
	'network'   => __( 'Network configuration: subsites that inherit network policy see this pinned version on Updates.', 'core-version-switcher-by-volade' ),
);

$summary = $summaries[ $access ] ?? $summaries['guest'];
?>
<div class="cvs-profile-chip">
	<span class="cvs-profile-chip-label"><?php esc_html_e( 'Your profile', 'core-version-switcher-by-volade' ); ?></span>
	<strong class="cvs-profile-chip-value"><?php echo esc_html( $access_label ); ?></strong>
	<p class="cvs-profile-chip-desc"><?php echo esc_html( $summary ); ?></p>
</div>
