<?php defined( 'ABSPATH' ) || exit; ?>
<div class="wrap naseo-wrap">
    <h1>🤖 NemynAI SEO Autopilot</h1>

    <div class="naseo-stats">
        <div class="naseo-stat">
            <span class="naseo-stat__num"><?php echo absint( $stats['pending'] ); ?></span>
            <span class="naseo-stat__label"><?php esc_html_e( 'Очікує', 'nemynai-seo-autopilot' ); ?></span>
        </div>
        <div class="naseo-stat">
            <span class="naseo-stat__num"><?php echo absint( $stats['processing'] ); ?></span>
            <span class="naseo-stat__label"><?php esc_html_e( 'В процесі', 'nemynai-seo-autopilot' ); ?></span>
        </div>
        <div class="naseo-stat naseo-stat--green">
            <span class="naseo-stat__num"><?php echo absint( $stats['published'] ); ?></span>
            <span class="naseo-stat__label"><?php esc_html_e( 'Опубліковано', 'nemynai-seo-autopilot' ); ?></span>
        </div>
        <div class="naseo-stat naseo-stat--red">
            <span class="naseo-stat__num"><?php echo absint( $stats['error'] ); ?></span>
            <span class="naseo-stat__label"><?php esc_html_e( 'Помилки', 'nemynai-seo-autopilot' ); ?></span>
        </div>
    </div>

    <div class="naseo-actions">
        <a href="<?php echo esc_url( admin_url( 'admin.php?page=naseo-generate' ) ); ?>" class="naseo-btn">
            ✍️ <?php esc_html_e( 'Згенерувати статтю', 'nemynai-seo-autopilot' ); ?>
        </a>
        <button id="naseo-publish-now" class="naseo-btn naseo-btn--primary">
            🚀 <?php esc_html_e( 'Опублікувати зараз з черги', 'nemynai-seo-autopilot' ); ?>
        </button>
        <a href="<?php echo esc_url( admin_url( 'admin.php?page=naseo-import' ) ); ?>" class="naseo-btn">
            📥 <?php esc_html_e( 'Імпорт CSV', 'nemynai-seo-autopilot' ); ?>
        </a>
    </div>

    <div id="naseo-action-result" class="naseo-notice" style="display:none;"></div>
</div>
