<?php
/**
 * Default copy and styling for newsletter designer templates.
 *
 * @package SuiteMkt3k
 */

namespace SuiteMkt3k\Email;

defined( 'ABSPATH' ) || exit;

final class Newsletter_Template_Presets {

	/**
	 * Presets applied when the user picks a template in the newsletter designer.
	 *
	 * @return array<string, array<string, string>>
	 */
	public static function all(): array {
		$home = home_url( '/' );

		return array(
			'classic'  => array(
				'subject'           => __( 'Our latest news for you', 'suitemkt3k' ),
				'heading'           => __( 'Big news from us', 'suitemkt3k' ),
				'body'              => __( "Hi {{name}},\n\nWe have fresh updates and stories we think you'll enjoy. Tap the button below to read the full article on our site.", 'suitemkt3k' ),
				'cta_label'         => __( 'Read the full story', 'suitemkt3k' ),
				'cta_url'           => $home,
				'accent'            => '#2AB2E5',
				'header_color'      => '#2AB2E5',
				'secondary_accent'  => '#2AB2E5',
				'badge_label'       => '',
				'cta_radius'        => '10',
				'preheader'         => __( 'You are receiving this email because you subscribed to our newsletter.', 'suitemkt3k' ),
				'footer_color'      => '#94A3B8',
				'unsubscribe_text'  => __( 'You no longer want to receive these emails?', 'suitemkt3k' ),
				'unsubscribe_cta'   => __( 'Unsubscribe', 'suitemkt3k' ),
			),
			'welcome'  => array(
				'subject'           => __( 'Welcome — glad you are here', 'suitemkt3k' ),
				'heading'           => __( 'Welcome to our community!', 'suitemkt3k' ),
				'body'              => __( "Hi {{name}},\n\nThanks for subscribing. Over the next days we'll share tips, resources and exclusive offers so you can get the most from your account.", 'suitemkt3k' ),
				'cta_label'         => __( 'Complete your profile', 'suitemkt3k' ),
				'cta_url'           => $home,
				'accent'            => '#10B981',
				'header_color'      => '#10B981',
				'secondary_accent'  => '#10B981',
				'footer_color'      => '#94A3B8',
				'badge_label'       => __( 'New subscriber', 'suitemkt3k' ),
				'cta_radius'        => '999',
				'preheader'         => __( 'We send useful content at most once a week — you can unsubscribe anytime.', 'suitemkt3k' ),
				'unsubscribe_text'  => __( 'Prefer fewer emails?', 'suitemkt3k' ),
				'unsubscribe_cta'   => __( 'Unsubscribe', 'suitemkt3k' ),
			),
			'reminder' => array(
				'subject'           => __( 'Still interested? We saved this for you', 'suitemkt3k' ),
				'heading'           => __( 'A friendly reminder', 'suitemkt3k' ),
				'body'              => __( "Hi {{name}},\n\nWe noticed you have not stopped by in a while. This offer is still available for a limited time — come back when it suits you.", 'suitemkt3k' ),
				'cta_label'         => __( 'See what is new', 'suitemkt3k' ),
				'cta_url'           => $home,
				'accent'            => '#F59E0B',
				'header_color'      => '#F59E0B',
				'secondary_accent'  => '#F59E0B',
				'badge_label'       => __( 'Limited offer', 'suitemkt3k' ),
				'cta_radius'        => '8',
				'preheader'         => __( 'Limited-time reminder — act before this offer expires.', 'suitemkt3k' ),
				'footer_color'      => '#94A3B8',
				'unsubscribe_text'  => __( 'Not interested in reminders?', 'suitemkt3k' ),
				'unsubscribe_cta'   => __( 'Unsubscribe', 'suitemkt3k' ),
			),
			'announce' => array(
				'subject'           => __( 'Important announcement inside', 'suitemkt3k' ),
				'heading'           => __( 'Something new is coming', 'suitemkt3k' ),
				'body'              => __( "Hi {{name}},\n\nWe are excited to share an important update with you. Press the button below for all the details and next steps.", 'suitemkt3k' ),
				'cta_label'         => __( 'View announcement', 'suitemkt3k' ),
				'cta_url'           => $home,
				'accent'            => '#6366F1',
				'header_color'      => '#6366F1',
				'secondary_accent'  => '#0F172A',
				'footer_color'      => '#94A3B8',
				'badge_label'       => __( 'Announcement', 'suitemkt3k' ),
				'cta_radius'        => '8',
				'preheader'         => __( 'Official announcement — please read before our next update.', 'suitemkt3k' ),
				'unsubscribe_text'  => __( 'You can opt out of announcement emails here:', 'suitemkt3k' ),
				'unsubscribe_cta'   => __( 'Unsubscribe', 'suitemkt3k' ),
			),
		);
	}

	/**
	 * @return array<string, string>
	 */
	public static function get( string $key ): array {
		$all = self::all();
		return $all[ $key ] ?? $all['classic'];
	}
}
