<?php
// Footer section - can be customized per page
?>
    <!-- Footer -->
    <footer class="site-footer">
        <div class="footer-container">
            <div class="footer-grid">
                <div class="footer-section">
                    <h4><i class="fas fa-cow"></i> Bishnupriya manipuri Foundation</h4>
                    <p>Dedicated to cow protection and community development since 2024.</p>
                    <div class="social-links">
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                        <a href="#"><i class="fab fa-youtube"></i></a>
                        <a href="#"><i class="fab fa-whatsapp"></i></a>
                    </div>
                </div>

                <div class="footer-section">
                    <h4><i class="fas fa-link"></i> Quick Links</h4>
                    <ul>
                        <li><a href="index.php"><i class="fas fa-angle-right"></i> Home</a></li>
                        <li><a href="#features"><i class="fas fa-angle-right"></i> Features</a></li>
                        <li><a href="#transactions"><i class="fas fa-angle-right"></i> Transactions</a></li>
                        <li><a href="#contact"><i class="fas fa-angle-right"></i> Contact</a></li>
                        <?php if(!isset($_SESSION['user_id'])): ?>
                            <li><a href="login.php"><i class="fas fa-angle-right"></i> Login</a></li>
                            <li><a href="register.php"><i class="fas fa-angle-right"></i> Register</a></li>
                        <?php endif; ?>
                    </ul>
                </div>

                <div class="footer-section">
                    <h4><i class="fas fa-hand-holding-heart"></i> Support</h4>
                    <ul>
                        <li><a href="#"><i class="fas fa-angle-right"></i> FAQ</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> Terms & Conditions</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> Privacy Policy</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> Refund Policy</a></li>
                        <li><a href="#"><i class="fas fa-angle-right"></i> Cancellation Policy</a></li>
                    </ul>
                </div>

                <div class="footer-section">
                    <h4><i class="fas fa-address-card"></i> Contact Us</h4>
                    <div class="contact-info">
                        <p><i class="fas fa-map-marker-alt"></i> 123, Cow Protection Colony,<br>Vrindavan, Mathura - 281121</p>
                        <p><i class="fas fa-phone"></i> +91 98765 43210</p>
                        <p><i class="fas fa-envelope"></i> contact@gauseva.org</p>
                        <p><i class="fas fa-clock"></i> Mon-Sat: 9:00 AM - 6:00 PM</p>
                    </div>
                </div>
            </div>

            <div class="footer-bottom">
                <div class="footer-bottom-content">
                    <p>&copy; <?= date('Y') ?> Bishnupriya Manipuri Foundation. All rights reserved.</p>
                    <p>Made with <i class="fas fa-heart" style="color: #ffd700;"></i> for Cow Protection</p>
                </div>
                <div class="payment-methods">
                    <i class="fab fa-cc-visa"></i>
                    <i class="fab fa-cc-mastercard"></i>
                    <i class="fab fa-cc-amex"></i>
                    <i class="fab fa-cc-paypal"></i>
                    <i class="fas fa-qrcode"></i>
                    <i class="fas fa-mobile-alt"></i>
                </div>
            </div>
        </div>
    </footer>

    <style>
        /* Footer Styles */
        .site-footer {
            background: #1a1a1a;
            color: #ccc;
            margin-top: 3rem;
            position: relative;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 2rem 1rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: #ffd700;
            margin-bottom: 1rem;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-section p {
            line-height: 1.6;
            font-size: 0.85rem;
            color: #aaa;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: #aaa;
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .footer-section ul li a:hover {
            color: #ffd700;
            transform: translateX(5px);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            width: 35px;
            height: 35px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background: #ffd700;
            color: #1a1a1a;
            transform: translateY(-3px);
        }

        .contact-info p {
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.8rem;
        }

        .contact-info p i {
            width: 25px;
            color: #ffd700;
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding-top: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-bottom-content p {
            font-size: 0.75rem;
            color: #888;
        }

        .payment-methods {
            display: flex;
            gap: 1rem;
            font-size: 1.5rem;
            color: #888;
        }

        .payment-methods i {
            transition: all 0.3s;
            cursor: pointer;
        }

        .payment-methods i:hover {
            color: #ffd700;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
            background: #2c5f2d;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: #ffd700;
            color: #1a3a1a;
            transform: translateY(-3px);
        }

        /* Responsive Footer */
        @media (max-width: 768px) {
            .footer-container {
                padding: 1.5rem;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .payment-methods {
                justify-content: center;
            }
        }
    </style>

    <!-- Back to Top Button -->
    <a href="#" class="back-to-top" id="backToTop">
        <i class="fas fa-arrow-up"></i>
    </a>

    <script>
        // Back to Top Button
        const backToTop = document.getElementById('backToTop');
        
        window.addEventListener('scroll', () => {
            if (window.scrollY > 300) {
                backToTop.classList.add('show');
            } else {
                backToTop.classList.remove('show');
            }
        });

        backToTop.addEventListener('click', (e) => {
            e.preventDefault();
            window.scrollTo({ top: 0, behavior: 'smooth' });
        });

        // Set current year in footer
        document.querySelector('.footer-bottom-content p:first-child').innerHTML = 
            '&copy; ' + new Date().getFullYear() + ' Gau Seva Foundation. All rights reserved.';
    </script>
</body>
</html>