<?php
require 'config.php';
?>
<!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
    <title>Promo Spesial - FIFA World Cup 2026</title>
    <meta name="csrf-token" content="<?php echo $_SESSION['csrf_token'] ?? ''; ?>">
    <script src="https://cdn.tailwindcss.com"></script>
    <link
        href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
        rel="stylesheet">
    <style>
        body {
            background: #030610;
            font-family: 'Inter', sans-serif;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 2rem;
            transition: all 0.3s;
        }

        .glass-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .detail-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            padding: 0 !important;
            margin: 0 !important;
        }

        .detail-content.show {
            max-height: 1500px;
            padding: 1.5rem !important;
            margin-top: 0.75rem !important;
        }

        @media (min-width: 768px) {
            .detail-content.show {
                padding: 2rem !important;
            }
        }

        .banner-img {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .banner-img:hover {
            transform: scale(1.01);
            box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.5);
        }

        .detail-center {
            text-align: center;
        }

        .detail-center .border-b {
            text-align: left;
        }

        .detail-center .border-b p,
        .detail-center .border-b .grid {
            text-align: left;
        }

        .detail-center .max-w-2xl,
        .detail-center .max-w-md {
            margin-left: auto;
            margin-right: auto;
        }
    </style>
</head>

<body class="min-h-screen text-white">

    <nav class="sticky top-0 z-50 px-4 pt-4">
        <div class="max-w-7xl mx-auto glass-card rounded-[40px] px-5 sm:px-10 h-20 flex items-center justify-between">
            <div class="flex items-center gap-2 cursor-pointer" onclick="window.location.href='index.php'">
                <img src="fifa-world-cup-2026-logo-white.png" alt="Logo" class="h-10 w-auto">
                <span class="text-xs font-black text-white tracking-wider">WORLD CUP 2026</span>
            </div>
            <div class="flex items-center gap-4">
                <a href="index.php"
                    class="bg-white/10 px-4 py-2 rounded-full text-xs font-black hover:bg-white/20 transition">Beranda</a>
                <?php if (!isset($_SESSION['user_id'])): ?>
                    <button onclick="window.location.href='index.php?showAuth=1'"
                        class="bg-amber-500 text-black px-4 py-2 rounded-full text-xs font-black">Masuk</button>
                <?php endif; ?>
            </div>
        </div>
    </nav>

    <main class="max-w-7xl mx-auto px-4 py-8">
        <!-- Banner 1 -->
        <div class="mb-6">
            <img src="https://i.postimg.cc/9fnVz4GH/banneratas.jpg" alt="Banner TITAN SCORE ROYALE"
                class="w-full h-auto object-cover banner-img rounded-3xl shadow-2xl" id="promoBanner1">
            <div class="flex gap-3 mt-1">
                <button onclick="window.location.href='predict.php'"
                    class="bg-amber-500 text-black px-4 py-2 rounded-full font-black uppercase tracking-wider text-[6px] hover:bg-amber-400 transition shadow-md">
                    Join Event
                </button>
                <button
                    class="lihatDetailBtn1 bg-white/20 backdrop-blur-sm border border-white/15 px-4 py-2 rounded-full font-black uppercase tracking-wider text-[6px] hover:bg-white/30 transition">
                    Lihat Detail
                </button>
            </div>
            <div id="detailContent1" class="detail-content glass-card rounded-3xl detail-center">
                <div class="flex justify-center items-center gap-3 mb-2">
                    <span class="text-3xl">👑</span>
                    <div class="text-2xl font-black text-white uppercase tracking-tight">TITAN SCORE ROYALE – WORLD CUP
                        EDITION</div>
                </div>
                <p class="text-amber-400 font-bold text-lg mb-6 text-center">“Prediksi Akurat, Kumpulkan Point, Rebut
                    Hadiah Eksklusif!”</p>
                <div class="space-y-4 text-slate-300 text-sm leading-relaxed">
                    <div class="border-b border-white/10 pb-4">
                        <div class="font-black text-amber-500 text-base mb-3 flex justify-center items-center gap-2">⚽
                            SYARAT & KETENTUAN EVENT PREDIKSI PIALA DUNIA</div>
                        <div class="text-left max-w-2xl mx-auto">
                            <p>✅ Seluruh member aktif dapat mengikuti event.</p>
                            <p>✅ Wajib Sudah Terdaftar di NAMA TOKO</p>
                            <p>✅ Setiap member mendapatkan 1 Tiket Prediksi Gratis setiap hari.</p>
                            <p>✅ Untuk Mendapatkan Tiket tambahan member wajib deposit minimal 20.000 di NAMA TOKO.</p>
                            <p>✅ Tiket tambahan wajib di klaim melalui LiveChat Untuk memperoleh Kode Redeem Tiket
                                Prediksi.</p>
                            <p>✅ Tiket tambahan maksimal claim 2x sehari.</p>
                        </div>
                    </div>
                    <div class="border-b border-white/10 pb-4">
                        <div class="font-black text-amber-500 text-base mb-3 text-center">⚽ AKUMULASI POINT ⚽</div>
                        <div class="grid grid-cols-1 sm:grid-cols-2 gap-2 max-w-md mx-auto text-left">
                            <p>🎯 Tebak Gol = 2 Point</p>
                            <p>🎯 Tebak Score = 4 Point</p>
                            <p>🎯 Tebak Pemenang = 2 Point</p>
                            <p>🎯 Tendangan Pojok = 7 Point</p>
                            <p>🎯 Kartu Merah = 9 Point</p>
                            <p>🎯 Kartu Kuning = 9 Point</p>
                            <p>🎯 Offside = 11 Point</p>
                        </div>
                    </div>
                    <div class="border-b border-white/10 pb-4">
                        <div class="space-y-2 text-left max-w-2xl mx-auto">
                            <p>✅ Setiap 5 Point yang sudah di kumpulkan dapat ditukarkan menjadi 1 Tiket Mesin Capit.
                            </p>
                            <p>✅ Seluruh point yang diperoleh akan diakumulasikan dan diupdate pada Leaderboard Event.
                            </p>
                            <p>✅ 10 member dengan point tertinggi akan mendapatkan hadiah spesial.</p>
                            <p>✅ Hadiah leaderboard akan dibagikan setelah seluruh pertandingan Piala Dunia selesai.</p>
                        </div>
                    </div>
                    <div>
                        <div class="space-y-2 text-left max-w-2xl mx-auto">
                            <p>✅ Multi akun, IP sama, manipulasi sistem, atau kecurangan lainnya akan menyebabkan point
                                hangus.</p>
                            <p>✅ Keputusan sistem dan admin bersifat mutlak dan tidak dapat diganggu gugat.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Banner 2 - Penukaran Point -->
        <div class="mb-6">
            <img src="https://i.postimg.cc/MXkhVVG1/bannerbesar.jpg" alt="Banner Promo 2"
                class="w-full h-auto object-cover banner-img rounded-3xl shadow-2xl" id="promoBanner2">
            <div class="flex gap-3 mt-1">
                <!-- Tombol Tukar Poin -> arah ke profile.php -->
                <button onclick="window.location.href='profile.php'"
                    class="bg-amber-500 text-black px-4 py-2 rounded-full font-black uppercase tracking-wider text-[6px] hover:bg-amber-400 transition shadow-md">
                    Tukar Poin
                </button>
                <button
                    class="lihatDetailBtn2 bg-white/20 backdrop-blur-sm border border-white/15 px-4 py-2 rounded-full font-black uppercase tracking-wider text-[6px] hover:bg-white/30 transition">
                    Lihat Detail
                </button>
            </div>
            <div id="detailContent2" class="detail-content glass-card rounded-3xl">
                <div class="flex items-center gap-3 mb-4">
                    <span class="text-3xl">🎁</span>
                    <div class="text-2xl font-black text-white uppercase tracking-tight">PENUKARAN POINT</div>
                </div>
                <div class="space-y-3 text-slate-300 text-sm leading-relaxed text-left max-w-3xl mx-auto">
                    <p>✅ 5 Point = 1 Tiket Mesin Capit</p>
                    <p>✅ Sebelum melakukan penukaran Tiket Mesin Capit, member wajib melakukan deposit minimal Rp25.000.
                    </p>
                    <p>✅ Penukaran point dilakukan di livechat, dengan menyertakan bukti jumlah point dan bukti deposit.
                    </p>
                    <p>✅ Point hanya dapat ditukarkan maksimal 2x dalam 1 hari</p>
                    <p>✅ Multi akun, IP sama, manipulasi sistem, atau kecurangan lainnya akan menyebabkan point hangus.
                    </p>
                    <p>✅ Keputusan sistem dan admin bersifat mutlak dan tidak dapat diganggu gugat.</p>
                </div>
            </div>
        </div>
        <div class="mb-6">
            <img src="https://i.postimg.cc/Y0Gq5x6k/BANNER-SAKTI-(1).jpg" alt="Banner Promo 2"
                class="w-full h-auto object-cover banner-img rounded-3xl shadow-2xl" id="promoBanner2">
            <div class="flex gap-3 mt-1">

                <button onclick="window.open('https://cutt.ly/moneysitesakti123', '_blank')"
                    class="bg-amber-500 text-black px-4 py-2 rounded-full font-black ...">
                    Join Sekarang
                </button>
            </div>
            <div id="detailContent2" class="detail-content glass-card rounded-3xl">
                <div class="flex items-center gap-3 mb-4">
                    <span class="text-3xl">🎁</span>
                    <div class="text-2xl font-black text-white uppercase tracking-tight">PENUKARAN POINT</div>
                </div>

            </div>
        </div>
    </main>

    <footer
        class="border-t border-white/10 mt-12 py-8 text-center text-slate-500 text-[9px] font-black uppercase tracking-wider">
        <p>FIFA World Cup 2026 © All Rights Reserved. Promo hanya berlaku sesuai syarat dan ketentuan.</p>
    </footer>

    <script>
        // Banner 1 - toggle detail
        const detailBtn1 = document.querySelector('.lihatDetailBtn1');
        const detail1 = document.getElementById('detailContent1');
        const banner1 = document.getElementById('promoBanner1');
        let isOpen1 = false;

        if (detailBtn1) {
            detailBtn1.addEventListener('click', function (e) {
                e.stopPropagation();
                if (!isOpen1) {
                    detail1.classList.add('show');
                    detailBtn1.textContent = 'Tutup Detail';
                    isOpen1 = true;
                } else {
                    detail1.classList.remove('show');
                    detailBtn1.textContent = 'Lihat Detail';
                    isOpen1 = false;
                }
            });
        }

        if (banner1) {
            banner1.addEventListener('click', function () {
                if (!isOpen1) {
                    detail1.classList.add('show');
                    if (detailBtn1) detailBtn1.textContent = 'Tutup Detail';
                    isOpen1 = true;
                } else {
                    detail1.classList.remove('show');
                    if (detailBtn1) detailBtn1.textContent = 'Lihat Detail';
                    isOpen1 = false;
                }
            });
        }

        // Banner 2 - toggle detail (hanya untuk tombol Lihat Detail)
        const detailBtn2 = document.querySelector('.lihatDetailBtn2');
        const detail2 = document.getElementById('detailContent2');
        const banner2 = document.getElementById('promoBanner2');
        let isOpen2 = false;

        if (detailBtn2) {
            detailBtn2.addEventListener('click', function (e) {
                e.stopPropagation();
                if (!isOpen2) {
                    detail2.classList.add('show');
                    detailBtn2.textContent = 'Tutup Detail';
                    isOpen2 = true;
                } else {
                    detail2.classList.remove('show');
                    detailBtn2.textContent = 'Lihat Detail';
                    isOpen2 = false;
                }
            });
        }

        if (banner2) {
            banner2.addEventListener('click', function () {
                if (!isOpen2) {
                    detail2.classList.add('show');
                    if (detailBtn2) detailBtn2.textContent = 'Tutup Detail';
                    isOpen2 = true;
                } else {
                    detail2.classList.remove('show');
                    if (detailBtn2) detailBtn2.textContent = 'Lihat Detail';
                    isOpen2 = false;
                }
            });
        }
    </script>
</body>

</html>