<!-- Simple Footer Style -->
<footer class="mt-auto py-4 bg-light border-top">
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                <?php if (defined('USE_LOGO') && USE_LOGO && defined('LOGO_URL') && !empty(LOGO_URL)): ?>
                    <img src="<?php echo LOGO_URL; ?>" alt="<?php echo SITE_NAME; ?>" 
                        <?php echo (defined('FOOTER_LOGO_WIDTH') && FOOTER_LOGO_WIDTH) ? 'width="' . FOOTER_LOGO_WIDTH . '"' : ''; ?> 
                        class="mb-2">
                <?php else: ?>
                    <h6 class="fw-bold text-primary"><?php echo SITE_NAME; ?></h6>
                <?php endif; ?>
                <p class="text-muted mb-0"><?php echo defined('SITE_TAGLINE') ? SITE_TAGLINE : ($lang_navigation['FOOTER_DEFAULT_TAGLINE'] ?? 'Your support portal for tickets and projects'); ?></p>
            </div>
            <div class="col-md-4 text-md-end">
                <h6 class="fw-bold"><?php echo $lang_navigation['FOOTER_LINKS_HEADING'] ?? 'Links'; ?></h6>
                <div class="d-flex flex-column">
                    <a href="<?php echo getCleanUrl('tickets'); ?>" class="text-decoration-none text-muted mb-1"><?php echo $lang_navigation['FOOTER_LINK_SUPPORT'] ?? 'Support'; ?></a>
                    <?php if (defined('ENABLE_FAQS') && ENABLE_FAQS): ?>
                    <a href="<?php echo getCleanUrl('faq'); ?>" class="text-decoration-none text-muted mb-1"><?php echo $lang_navigation['FOOTER_LINK_HELP'] ?? 'Help'; ?></a>
                    <?php endif; ?>
                    <?php if (defined('ENABLE_CONTACT') && ENABLE_CONTACT): ?>
                    <a href="<?php echo getCleanUrl('contact'); ?>" class="text-decoration-none text-muted mb-1"><?php echo $lang_navigation['FOOTER_LINK_CONTACT'] ?? 'Contact'; ?></a>
                    <?php endif; ?>
                    <?php if (defined('ENABLE_STORE') && ENABLE_STORE): ?>
                    <a href="<?php echo getCleanUrl('store'); ?>" class="text-decoration-none text-muted mb-1"><?php echo $lang_navigation['NAV_STORE'] ?? 'Store'; ?></a>
                    <?php endif; ?>
                </div>
            </div>
        </div>
        <hr class="my-3">
        <div class="text-center">
            <small class="text-muted">&copy; <?php echo date('Y'); ?> <?php echo SITE_NAME; ?>. <?php echo $lang_navigation['FOOTER_POWERED_BY'] ?? 'Powered by'; ?> <a href="https://supportengine.cloud" target="_blank" class="text-decoration-none"><?php echo $lang_navigation['FOOTER_SUPPORTENGINE_LINK_TEXT'] ?? 'SupportEngine'; ?></a></small>
        </div>
    </div>
</footer> 