<?php
/**
 * Tam Rank Shared Footer Component
 *
 * Centralized footer that can be included on all admin pages
 * Edit this file once to update the footer everywhere
 */

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

/**
 * Render the Tam Rank footer
 *
 */
function tam_rank_render_footer() {
    ?>
    <footer class="tam-rank-footer">
        <div class="tam-rank-footer-inner">

            <!-- Left: logo + badge -->
            <div class="tam-footer-brand">
                <svg class="tam-footer-icon" width="30" height="30" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
                    <rect x="4" y="4" width="32" height="32" rx="8" class="tam-svg-bg"/>
                    <rect x="10" y="10" width="20" height="5" rx="2" class="tam-svg-dark"/>
                    <rect x="15" y="10" width="5" height="20" rx="2" class="tam-svg-dark"/>
                    <rect x="22" y="18" width="5" height="12" rx="2" class="tam-svg-dark-muted"/>
                </svg>
                <span class="tam-footer-brand-name">Tam<span class="tam-footer-brand-rank">Rank</span></span>
                <?php if (function_exists('tamrank_is_pro') && tamrank_is_pro()) : ?>
                <span class="tam-footer-pro-badge">Pro</span>
                <?php endif; ?>
            </div>

            <!-- Right: version + links -->
            <div class="tam-footer-links">
                <span class="tam-footer-version">v<?php echo esc_html(TAM_RANK_VERSION); ?></span>
                <a href="https://tamrank.com/documentation/" target="_blank" rel="noopener" class="tam-footer-link">
                    <?php tamrank_e('documentation', 'Documentation'); ?>
                </a>
                <a href="https://tamrank.com/contact/" target="_blank" rel="noopener" class="tam-footer-link">
                    <?php tamrank_e('support', 'Support'); ?>
                </a>
            </div>

        </div>
    </footer>
    <?php
}
