<?php
/**
 * Admin Auto Seazonify Page Template - SEAZONIFY V11 EXPANDED FEATURES
 * Focused on density, expanded features, and responsive button fixes.
 */

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

$seazonify_settings = get_option('seazonify_settings', array());
$seazonify_admin = new Seazonify_Admin();
$seazonify_status_data = $seazonify_admin->get_connection_status();

$seazonify_is_connected = !empty($seazonify_status_data);
$seazonify_current_plan_slug = isset($seazonify_status_data['subscription']['slug']) ? $seazonify_status_data['subscription']['slug'] : (isset($seazonify_status_data['user']['plan']) ? $seazonify_status_data['user']['plan'] : 'free');

$seazonify_plans = array(
    array(
        'name' => 'Sprout',
        'slug' => 'sprout',
        'price' => '$12',
        'period' => 'mo',
        'description' => 'Seasons + Holidays for your sites',
        'intelligence' => 'Seasonal + Holiday',
        'features' => array(
            '✨ Seasonal effects',
            '🎉 Holiday effects',
            '⚙️ Custom scheduling',
            '🌐 Up to 2 sites',
            '🔌 50K API calls/month',
            '📊 Site Analytics'
        ),
        'buttonText' => 'Upgrade',
        'popular' => false
    ),
    array(
        'name' => 'Bloom',
        'slug' => 'bloom',
        'price' => '$29',
        'period' => 'mo',
        'description' => 'Add weather intelligence to sites',
        'intelligence' => 'Weather Intelligence',
        'features' => array(
            '✅ Everything in Sprout',
            '🌤️ Weather-responsive',
            '📍 Location-intelligence',
            '🌐 Up to 5 sites',
            '🔌 300K API calls/month',
            '📧 Email support'
        ),
        'buttonText' => 'Upgrade now',
        'popular' => true
    ),
    array(
        'name' => 'Thrive',
        'slug' => 'thrive',
        'price' => '$59',
        'period' => 'mo',
        'description' => 'Upload your own custom effects',
        'intelligence' => 'Custom Effects',
        'features' => array(
            '✅ Everything in Bloom',
            '🎨 Custom effect uploads',
            '💬 Live support',
            '🌐 Up to 10 sites',
            '🔌 1M API calls/month',
            '⚡ High Priority Engine'
        ),
        'buttonText' => 'Upgrade',
        'popular' => false
    ),
    array(
        'name' => 'Flourish',
        'slug' => 'flourish',
        'price' => '$99',
        'period' => 'mo',
        'description' => 'AI-powered optimization',
        'intelligence' => 'AI Intelligence',
        'features' => array(
            '✅ Everything in Thrive',
            '⭐ Priority support',
            '🌐 Up to 30 sites',
            '🔌 2M+ API calls/month',
            '🏷️ White labeling',
            '🤖 AI Automation'
        ),
        'buttonText' => 'Upgrade',
        'popular' => false
    )
);
?>

<div class="sz-v6-workspace auto-seazonify-view">
    <!-- Premium Coming Soon Hero -->
    <section class="sz-premium-hero upcoming">
        <div class="sz-hero-canvas"></div>
        <div class="sz-hero-content">
            <div class="sz-v11-badge-wrap">
                <span class="sz-v11-badge pulse"><?php esc_html_e('COMING SOON', 'seazonify'); ?></span>
            </div>
            <h1 class="sz-v11-title"><?php esc_html_e('Seasonal', 'seazonify'); ?> <span class="sz-text-gradient"><?php esc_html_e('Intelligence', 'seazonify'); ?></span></h1>
            <p class="sz-v11-subtitle"><?php esc_html_e('We\'re building the world\'s first AI-powered seasonal engine. Automated weather triggers, holiday sync, and location-aware atmosphere are arriving soon.', 'seazonify'); ?></p>
            
            <div class="sz-v11-coming-soon-features">
                <div class="cs-feature">
                    <span class="dashicons dashicons-marker"></span>
                    <strong><?php esc_html_e('Geo-Targeting', 'seazonify'); ?></strong>
                </div>
                <div class="cs-feature">
                    <span class="dashicons dashicons-cloud"></span>
                    <strong><?php esc_html_e('Weather API', 'seazonify'); ?></strong>
                </div>
                <div class="cs-feature">
                    <span class="dashicons dashicons-calendar-alt"></span>
                    <strong><?php esc_html_e('Holiday Sync', 'seazonify'); ?></strong>
                </div>
            </div>

            <div class="sz-hero-actions">
                <a href="https://discord.com/invite/HknBRy9h46" target="_blank" class="sz-v11-btn-primary sz-glow"><?php esc_html_e('Join the Discord', 'seazonify'); ?></a>
            </div>
        </div>
    </section>

    <!-- Value Propositions -->
    <section class="sz-v11-features-row">
        <div class="sz-v11-feature-item">
            <div class="icon-wrap blue"><span class="dashicons dashicons-calendar-alt"></span></div>
            <div class="text-wrap">
                <h3><?php esc_html_e('Hands-Free Atmosphere', 'seazonify'); ?></h3>
                <p><?php esc_html_e('Never worry about switching effects manually again. Our engine tracks global events for you.', 'seazonify'); ?></p>
            </div>
        </div>
        <div class="sz-v11-feature-item">
            <div class="icon-wrap purple"><span class="dashicons dashicons-performance"></span></div>
            <div class="text-wrap">
                <h3><?php esc_html_e('Vortex Optimization', 'seazonify'); ?></h3>
                <p><?php esc_html_e('Advanced asset loading ensures zero impact on your Core Web Vitals and SEO.', 'seazonify'); ?></p>
            </div>
        </div>
        <div class="sz-v11-feature-item">
            <div class="icon-wrap green"><span class="dashicons dashicons-awards"></span></div>
            <div class="text-wrap">
                <h3><?php esc_html_e('Enterprise Grade', 'seazonify'); ?></h3>
                <p><?php esc_html_e('The same infrastructure powering high-traffic brands, now available for your WordPress site.', 'seazonify'); ?></p>
            </div>
        </div>
    </section>

    <!-- Bottom Note -->
    <div class="sz-v11-footer-note">
        <span class="dashicons dashicons-lock"></span>
        <p><?php esc_html_e('This feature will be exclusive to Seazonify subscribers.', 'seazonify'); ?> <a href="<?php echo esc_url(admin_url('options-general.php?page=seazonify')); ?>"><?php esc_html_e('View Dashboard', 'seazonify'); ?> &rarr;</a></p>
    </div>
</div>
</div>
<?php
// Inline styles moved to admin.css
?>
</div>
