<?php
/**
 * Wing Popup — Preset Templates
 * File: templates/presets/presets.php
 *
 * Each preset must have:
 * slug, title, description, preview_image, content
 *
 * Images in `content` use Unsplash CDN (free, no attribution required for use).
 * preview_image points to: templates/presets/previews/{filename}
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$black_friday_content = '<!-- wp:cover {"url":"https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=800\u0026q=80","dimRatio":70,"overlayColor":"black","minHeight":420,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"40px","bottom":"40px","left":"32px","right":"32px"}}}} -->
<div class="wp-block-cover alignfull" style="padding-top:40px;padding-right:32px;padding-bottom:40px;padding-left:32px;min-height:420px"><img class="wp-block-cover__image-background" alt="" src="https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=800&amp;q=80" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-black-background-color has-background-dim-70 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"13px","fontStyle":"normal","fontWeight":"700","letterSpacing":"4px","textTransform":"uppercase"},"color":{"text":"#ff3d3d"}}} -->
<p class="has-text-align-center has-text-color" style="color:#ff3d3d;font-size:13px;font-style:normal;font-weight:700;letter-spacing:4px;text-transform:uppercase">Limited time only</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"clamp(36px,6vw,64px)","fontWeight":"900","lineHeight":"1.05","textTransform":"uppercase"},"color":{"text":"#ffffff"},"spacing":{"margin":{"top":"8px","bottom":"4px"}}}} -->
<h1 class="wp-block-heading has-text-align-center has-text-color" style="color:#ffffff;margin-top:8px;margin-bottom:4px;font-size:clamp(36px,6vw,64px);font-weight:900;line-height:1.05;text-transform:uppercase">BLACK<br>FRIDAY</h1>
<!-- /wp:heading -->

<!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"clamp(18px,3vw,28px)","fontWeight":"400","letterSpacing":"6px","textTransform":"uppercase"},"color":{"text":"#cccccc"},"spacing":{"margin":{"top":"0px","bottom":"20px"}}}} -->
<h2 class="wp-block-heading has-text-align-center has-text-color" style="color:#cccccc;margin-top:0px;margin-bottom:20px;font-size:clamp(18px,3vw,28px);font-weight:400;letter-spacing:6px;text-transform:uppercase">S A L E</h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"clamp(48px,8vw,80px)","fontWeight":"900","lineHeight":"1"},"color":{"text":"#ff3d3d"},"spacing":{"margin":{"top":"0px","bottom":"8px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#ff3d3d;margin-top:0px;margin-bottom:8px;font-size:clamp(48px,8vw,80px);font-weight:900;line-height:1">50% OFF</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"14px"},"color":{"text":"#aaaaaa"},"spacing":{"margin":{"top":"0px","bottom":"28px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#aaaaaa;margin-top:0px;margin-bottom:28px;font-size:14px">on everything in store — this weekend only</p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{"background":"#ff3d3d","text":"#ffffff"},"typography":{"fontSize":"15px","fontWeight":"700","textTransform":"uppercase","letterSpacing":"2px"},"spacing":{"padding":{"top":"16px","bottom":"16px","left":"40px","right":"40px"}},"border":{"radius":"4px"}}} -->
<div class="wp-block-button"><a class="wp-block-button__link has-text-color has-background has-custom-font-size wp-element-button" href="#" style="border-radius:4px;color:#ffffff;background-color:#ff3d3d;padding-top:16px;padding-right:40px;padding-bottom:16px;padding-left:40px;font-size:15px;font-weight:700;letter-spacing:2px;text-transform:uppercase">Shop the Sale</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"12px"},"color":{"text":"#666666"},"spacing":{"margin":{"top":"20px","bottom":"0px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#666666;margin-top:20px;margin-bottom:0px;font-size:12px">Use code <strong style="color:#ffffff">BLACKFRI50</strong> at checkout  •  Ends midnight Friday</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->';


$winter_sale_content = '<!-- wp:cover {"url":"https://images.unsplash.com/photo-1418985991508-e47386d96a71?w=800\u0026q=80","dimRatio":60,"customOverlayColor":"#0a1628","minHeight":420,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"40px","bottom":"40px","left":"32px","right":"32px"}}}} -->
<div class="wp-block-cover alignfull" style="padding-top:40px;padding-right:32px;padding-bottom:40px;padding-left:32px;min-height:420px"><img class="wp-block-cover__image-background" alt="" src="https://images.unsplash.com/photo-1418985991508-e47386d96a71?w=800&amp;q=80" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-background-dim-60 has-background-dim" style="background-color:#0a1628"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"13px","fontWeight":"600","letterSpacing":"5px","textTransform":"uppercase"},"color":{"text":"#a8d8f0"},"spacing":{"margin":{"top":"0px","bottom":"12px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#a8d8f0;margin-top:0px;margin-bottom:12px;font-size:13px;font-weight:600;letter-spacing:5px;text-transform:uppercase">❄ Season Special</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"clamp(38px,6vw,66px)","fontWeight":"800","lineHeight":"1.05","textTransform":"uppercase","letterSpacing":"-1px"},"color":{"text":"#ffffff"},"spacing":{"margin":{"top":"0px","bottom":"6px"}}}} -->
<h1 class="wp-block-heading has-text-align-center has-text-color" style="color:#ffffff;margin-top:0px;margin-bottom:6px;font-size:clamp(38px,6vw,66px);font-weight:800;letter-spacing:-1px;line-height:1.05;text-transform:uppercase">Winter Sale</h1>
<!-- /wp:heading -->

<!-- wp:separator {"className":"is-style-wide","style":{"color":{"background":"#a8d8f0"},"width":"60px"}} -->
<hr class="wp-block-separator has-text-color has-alpha-channel-opacity has-background is-style-wide" style="background-color:#a8d8f0;color:#a8d8f0"/>
<!-- /wp:separator -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"clamp(15px,2.5vw,18px)","lineHeight":"1.6"},"color":{"text":"#c8dff0"},"spacing":{"margin":{"top":"16px","bottom":"8px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#c8dff0;margin-top:16px;margin-bottom:8px;font-size:clamp(15px,2.5vw,18px);line-height:1.6">Wrap up the season with savings up to</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"clamp(52px,9vw,88px)","fontWeight":"900","lineHeight":"1"},"color":{"text":"#a8d8f0"},"spacing":{"margin":{"top":"0px","bottom":"8px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#a8d8f0;margin-top:0px;margin-bottom:8px;font-size:clamp(52px,9vw,88px);font-weight:900;line-height:1">40% OFF</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"13px"},"color":{"text":"#7aafcc"},"spacing":{"margin":{"top":"0px","bottom":"28px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#7aafcc;margin-top:0px;margin-bottom:28px;font-size:13px">Coats • Scarves • Boots • Knitwear • Accessories</p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"style":{"spacing":{"blockGap":"12px"}},"layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{"background":"#a8d8f0","text":"#0a1628"},"typography":{"fontSize":"14px","fontWeight":"700","textTransform":"uppercase","letterSpacing":"1.5px"},"spacing":{"padding":{"top":"15px","bottom":"15px","left":"36px","right":"36px"}},"border":{"radius":"50px"}}} -->
<div class="wp-block-button"><a class="wp-block-button__link has-text-color has-background has-custom-font-size wp-element-button" href="#" style="border-radius:50px;color:#0a1628;background-color:#a8d8f0;padding-top:15px;padding-right:36px;padding-bottom:15px;padding-left:36px;font-size:14px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase">Shop Winter Sale</a></div>
<!-- /wp:button -->

<!-- wp:button {"className":"is-style-outline","style":{"color":{"text":"#a8d8f0"},"typography":{"fontSize":"14px","fontWeight":"600"},"spacing":{"padding":{"top":"15px","bottom":"15px","left":"28px","right":"28px"}},"border":{"radius":"50px","color":"#a8d8f0","width":"1px"}}} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-text-color has-border-color has-custom-font-size wp-element-button" href="#" style="border-color:#a8d8f0;border-width:1px;border-radius:50px;color:#a8d8f0;padding-top:15px;padding-right:28px;padding-bottom:15px;padding-left:28px;font-size:14px;font-weight:600">Maybe Later</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div></div>
<!-- /wp:cover -->';


$summer_sale_content = '<!-- wp:cover {"url":"https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=800\u0026q=80","dimRatio":55,"customOverlayColor":"#b34a00","minHeight":420,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"40px","bottom":"40px","left":"32px","right":"32px"}}}} -->
<div class="wp-block-cover alignfull" style="padding-top:40px;padding-right:32px;padding-bottom:40px;padding-left:32px;min-height:420px"><img class="wp-block-cover__image-background" alt="" src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=800&amp;q=80" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-background-dim-60 has-background-dim" style="background-color:#b34a00"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"28px","lineHeight":"1"},"spacing":{"margin":{"top":"0px","bottom":"8px"}}}} -->
<p class="has-text-align-center" style="margin-top:0px;margin-bottom:8px;font-size:28px;line-height:1">🌞 🏈 🌞</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"13px","fontWeight":"700","letterSpacing":"5px","textTransform":"uppercase"},"color":{"text":"#ffe066"},"spacing":{"margin":{"top":"0px","bottom":"10px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#ffe066;margin-top:0px;margin-bottom:10px;font-size:13px;font-weight:700;letter-spacing:5px;text-transform:uppercase">Hot Deals are here</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"clamp(40px,7vw,72px)","fontWeight":"900","lineHeight":"1","textTransform":"uppercase"},"color":{"text":"#ffffff"},"spacing":{"margin":{"top":"0px","bottom":"4px"}}}} -->
<h1 class="wp-block-heading has-text-align-center has-text-color" style="color:#ffffff;margin-top:0px;margin-bottom:4px;font-size:clamp(40px,7vw,72px);font-weight:900;line-height:1;text-transform:uppercase">Summer</h1>
<!-- /wp:heading -->

<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"clamp(40px,7vw,72px)","fontWeight":"900","lineHeight":"1","textTransform":"uppercase"},"color":{"text":"#ffe066"},"spacing":{"margin":{"top":"0px","bottom":"20px"}}}} -->
<h1 class="wp-block-heading has-text-align-center has-text-color" style="color:#ffe066;margin-top:0px;margin-bottom:20px;font-size:clamp(40px,7vw,72px);font-weight:900;line-height:1;text-transform:uppercase">Sale</h1>
<!-- /wp:heading -->

<!-- wp:group {"align":"center","className":"aligncenter","style":{"color":{"background":"#ffe066"},"spacing":{"padding":{"top":"10px","bottom":"10px","left":"28px","right":"28px"}},"border":{"radius":"50px"}},"layout":{"type":"constrained","contentSize":"fit-content"}} -->
<div class="wp-block-group aligncenter has-background" style="border-radius:50px;background-color:#ffe066;padding-top:10px;padding-right:28px;padding-bottom:10px;padding-left:28px"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"clamp(22px,4vw,32px)","fontWeight":"900","lineHeight":"1"},"color":{"text":"#8b3300"},"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#8b3300;margin-top:0px;margin-bottom:0px;font-size:clamp(22px,4vw,32px);font-weight:900;line-height:1">Up to 60% OFF</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"14px","lineHeight":"1.5"},"color":{"text":"#ffd4a8"},"spacing":{"margin":{"top":"16px","bottom":"28px"}}}} -->
<p class="has-text-align-center has-text-color" style="color:#ffd4a8;margin-top:16px;margin-bottom:28px;font-size:14px;line-height:1.5">Swimwear • Sunglasses • Sandals • Beachwear<br>Sale ends Sunday — don’t miss out!</p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"style":{"spacing":{"blockGap":"12px"}},"layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"color":{"background":"#ffffff","text":"#8b3300"},"typography":{"fontSize":"15px","fontWeight":"800","textTransform":"uppercase","letterSpacing":"1.5px"},"spacing":{"padding":{"top":"16px","bottom":"16px","left":"40px","right":"40px"}},"border":{"radius":"6px"}}} -->
<div class="wp-block-button"><a class="wp-block-button__link has-text-color has-background has-custom-font-size wp-element-button" href="#" style="border-radius:6px;color:#8b3300;background-color:#ffffff;padding-top:16px;padding-right:40px;padding-bottom:16px;padding-left:40px;font-size:15px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase">Grab the Deal</a></div>
<!-- /wp:button -->

<!-- wp:button {"className":"is-style-outline","style":{"color":{"text":"#ffffff"},"typography":{"fontSize":"13px","fontWeight":"500"},"spacing":{"padding":{"top":"16px","bottom":"16px","left":"28px","right":"28px"}},"border":{"radius":"6px","color":"rgba(255,255,255,0.4)","width":"1px"}}} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-text-color has-border-color has-custom-font-size wp-element-button" href="#" style="border-color:rgba(255,255,255,0.4);border-width:1px;border-radius:6px;color:#ffffff;padding-top:16px;padding-right:28px;padding-bottom:16px;padding-left:28px;font-size:13px;font-weight:500">No Thanks</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div></div>
<!-- /wp:cover -->';


return [

    /* =========================================================
     * 1. BLACK FRIDAY SALE
     * ========================================================= */
    [
        'slug'          => 'black-friday-sale',
        'title'         => 'Black Friday Sale',
        'description'   => 'Bold dark popup for Black Friday promotions with a discount headline and CTA button.',
        'preview_image' => 'black-friday-sale.jpg',
        'content'       => $black_friday_content,
    ],


    /* =========================================================
     * 2. WINTER SALE
     * ========================================================= */
    [
        'slug'          => 'winter-sale',
        'title'         => 'Winter Sale',
        'description'   => 'Elegant cold-toned popup for winter season promotions with a frosted overlay effect.',
        'preview_image' => 'winter-sale.jpg',
        'content'       => $winter_sale_content,
    ],


    /* =========================================================
     * 3. SUMMER SALE
     * ========================================================= */
    [
        'slug'          => 'summer-sale',
        'title'         => 'Summer Sale',
        'description'   => 'Bright, energetic popup for summer sales with warm tones and a bold discount offer.',
        'preview_image' => 'summer-sale.jpg',
        'content'       => $summer_sale_content,
    ],

];