<?php
/*
Plugin Name: Home Notice
Description: Renders the homepage notice and contact block.
Version: 1.0
*/

register_block('notice', function (): void {
    ?>
    <section>
        <h2 class="title-head" style="margin:0; border-radius:0;">Today Updated Notice</h2>
        <div class="card-box" style="text-align: center; padding: 20px;">
            
            <div style="color: red; font-size: 1.2rem; font-weight: bold; margin-bottom: 10px;">
                <?php echo date('d/m/Y H:i'); ?>
                <div style="font-size: 1rem; color: #333; margin-top: 5px;">BOOKING TIME: 08:30 AM to 03:00 PM.</div>
            </div>
            
            <hr style="border-top: 1px dashed var(--border); margin: 15px 0;">
            
            <div style="text-align: left; display: inline-block; font-size: 1.1rem; line-height: 1.8;">
                <div>➣ सिर्फ 1 जोडी और 2 पत्ती</div>
                <div>➣ ग्यारंटी के साथ पास होगा</div>
                <div>➣ एक दिन में पूरा लॉस कबर होगा</div>
                <div style="font-weight: bold; color: green; margin-top: 5px;">☞ एडवांस फीस 3500/- मात्र</div>
            </div>
            
            <div style="margin-top: 10px;">
                <small style="color: var(--text-muted);">एडवांस बुकिंग के बाद आपके मोबाइल पर SMS भेजा जाएगा</small>
            </div>
            
            <hr style="border-top: 1px dashed var(--border); margin: 15px 0;">
            
            <div style="color: blue; font-size: 1.1rem; line-height: 1.6; font-weight: bold;">
                <div>1 Day (3100/-)</div>
                <div>1 WEEK (5100/-)</div>
                <div>15 DAYS (10500/-)</div>
                <div>1 MONTH (15500/-)</div>
            </div>
            
            <h3 style="color: green; margin: 20px 0 15px 0; font-size: 1.5rem;">Contact Us</h3>
            
            <div style="display: flex; flex-direction: column; gap: 12px; align-items: center;">
                <a href="tel:+918144254620" target="_blank" style="width: 100%; max-width: 250px; text-decoration: none;">
                    <button class="btn-action" style="width: 100%; font-size: 1.2rem; padding: 10px;">☎️ 8144254620</button>
                </a>
                <a href="https://wa.me/+918144254620" target="_blank" style="width: 100%; max-width: 250px; text-decoration: none;">
                    <button class="btn-action" style="width: 100%; font-size: 1.2rem; padding: 10px; background: #25D366; color: white;">WhatsApp Now</button>
                </a>
            </div>

        </div>
    </section>
    <?php
});