<footer class="bg-white dark:bg-surface-dark border-t border-border-light dark:border-border-dark mt-12 pt-16 pb-8">
    <div class="w-full max-w-[1440px] mx-auto px-6 lg:px-10">
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 mb-16">
            <div class="space-y-4">
                <div class="flex items-center gap-3">
                    <div class="size-8 text-primary bg-primary/10 rounded-lg flex items-center justify-center">
                        <span class="material-symbols-outlined text-[20px]">dataset</span>
                    </div>
                    <h2 class="text-text-main dark:text-white text-lg font-bold">{{ setting('app.name', 'DigitalStore') }}</h2>
                </div>
                <p class="text-text-muted dark:text-gray-400 text-sm leading-relaxed">
                    {{ setting('app.description', 'Curated digital assets for creators, developers, and designers. Elevate your next project with premium quality.') }}
                </p>
                <div class="flex gap-4 pt-2">
                    @if(setting('social.twitter'))
                        <a class="text-gray-400 hover:text-primary transition-colors" href="{{ setting('social.twitter') }}"><span class="sr-only">Twitter</span>
                            <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"></path></svg>
                        </a>
                    @endif
                    @if(setting('social.facebook'))
                        <a class="text-gray-400 hover:text-primary transition-colors" href="{{ setting('social.facebook') }}"><span class="sr-only">Facebook</span>
                            <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" clip-rule="evenodd"></path></svg>
                        </a>
                    @endif
                    @if(setting('social.instagram'))
                        <a class="text-gray-400 hover:text-primary transition-colors" href="{{ setting('social.instagram') }}"><span class="sr-only">Instagram</span>
                            <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772 4.902 4.902 0 011.772-1.153c.636-.247 1.363-.416 2.427-.465C9.673 2.013 10.03 2 12.315 2zm-4.192 11.96L11.53 16h-.995v1.96h5.86V16h-1l3.41-2.04v4.04c0 .54-.45 1-1 1H6.06c-.55 0-1-.46-1-1v-4.04l3.05 2.04z" clip-rule="evenodd"></path></svg>
                        </a>
                    @endif
                </div>
            </div>
            
            {{-- Dynamic Footer Menu 1 --}}
            <div>
                <h3 class="font-semibold text-text-main dark:text-white mb-4">@lang('footer.Site Pages')</h3>
                <ul class="space-y-3">
                    @foreach(get_menu('footer1') as $item)
                        <li>
                            <a class="text-text-muted dark:text-gray-400 hover:text-primary transition-colors text-sm" href="{{ $item['url'] }}">
                                {{ $item['title'] }}
                            </a>
                        </li>
                    @endforeach
                </ul>
            </div>

            {{-- Dynamic Footer Menu 2 --}}
            <div>
                <h3 class="font-semibold text-text-main dark:text-white mb-4">@lang('footer.Support')</h3>
                <ul class="space-y-3">
                    @foreach(get_menu('footer2') as $item)
                        <li>
                            <a class="text-text-muted dark:text-gray-400 hover:text-primary transition-colors text-sm" href="{{ $item['url'] }}">
                                {{ $item['title'] }}
                            </a>
                        </li>
                    @endforeach
                </ul>
            </div>

            <div>
                <h3 class="font-semibold text-text-main dark:text-white mb-4">Stay in the loop</h3>
                <p class="text-text-muted dark:text-gray-400 text-sm mb-4">Join our newsletter for new product drops and exclusive discounts.</p>
                <form class="flex flex-col gap-2">
                    <input class="w-full px-3 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg text-sm focus:ring-1 focus:ring-primary focus:outline-none" placeholder="Your email address" type="email" />
                    <button class="w-full bg-primary hover:bg-primary-dark text-white font-medium py-2 rounded-lg text-sm transition-colors" type="submit">Subscribe</button>
                </form>
            </div>
        </div>
        <div class="border-t border-gray-100 dark:border-gray-800 pt-8 flex flex-col md:flex-row items-center justify-between gap-4">
            <p class="text-text-muted dark:text-gray-500 text-xs">&copy; {{ date('Y') }} {{ setting('app.name', 'ChargePanda') }}. @lang('footer.All rights reserved.')</p>
            <div class="flex gap-4">
                <span class="text-text-muted dark:text-gray-500 text-xs">
                    Powered by <a href="https://www.chargepanda.com/?utm_source={{ setting('app.name', 'ChargePanda') }}" target="_blank">ChargePanda</a>
                </span>
            </div>
        </div>
    </div>
</footer>
