<!DOCTYPE html>
<html lang="ms">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Poutrecs Golf Series | Episode 1</title>
    <!-- Font Awesome untuk Ikon Trofi -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Montserrat:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/style.css">
</head>
<body style="margin: 0; padding: 0; background-color: #050505;">

<!-- BAR NAVIGASI PREMIUM FIXED -->
<nav style="
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 8%; 
    background: linear-gradient(to bottom, rgba(5,5,5,0.98) 0%, rgba(12,12,12,0.92) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
">
    <!-- KIRI: BRAND/LOGO -->
    <div style="font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 2px;">
        <a href="index.php" style="color: #fff; text-decoration: none;">
            POUTRECS <span style="color: #D4AF37; text-shadow: 0 0 10px rgba(212,175,55,0.2);">GOLF</span>
        </a>
    </div>

    <!-- KANAN: MENU LINKS -->
    <ul style="
        display: flex; 
        align-items: center; 
        list-style: none; 
        gap: 35px; 
        margin: 0; 
        padding: 0;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1.5px;
    ">
        <li>
            <a href="index.php" class="custom-nav-link" style="color: #bbb; text-decoration: none; transition: 0.3s;">HOME</a>
        </li>
        <li>
            <a href="index.php#shirts" class="custom-nav-link" style="color: #bbb; text-decoration: none; transition: 0.3s;">SUPPORTER PACKAGE</a>
        </li>
        <li>
            <a href="scoreboard.php" class="custom-nav-btn-gold" style="
                display: flex;
                align-items: center;
                gap: 8px;
                background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
                color: #000;
                padding: 10px 24px;
                border-radius: 50px;
                font-weight: 700;
                text-decoration: none;
                box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
                transition: transform 0.2s, box-shadow 0.2s;
            ">
                <i class="fa fa-trophy" style="font-size: 0.9rem;"></i> E1 SCOREBOARD
            </a>
        </li>
    </ul>
</nav>

<style>
    /* Kesan Hover & Skrol Jauh Lebih Professional */
    .custom-nav-link:hover {
        color: #D4AF37 !important;
        text-shadow: 0 0 8px rgba(212,175,55,0.4);
    }
    .custom-nav-btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
    }
    
    /* Elakkan banner/hero content terbenam di bawah fixed navbar */
    body {
        padding-top: 85px !important;
    }
</style><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

<style>
    :root {
        --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        --gold-solid: #D4AF37;
    }

    /* Gallery Section Style */
    .gallery-section {
        padding: 80px 20px;
        background: radial-gradient(circle at center, #110e07 0%, #050505 100%);
        text-align: center;
        border-top: 1px solid #1a1a1a;
    }
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        max-width: 1200px;
        margin: 40px auto;
    }
    .gallery-item {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 4/3;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        background: #111;
        transition: transform 0.3s ease;
    }
    .gallery-item:hover {
        transform: scale(1.03);
        border-color: var(--gold-solid);
    }
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
</style>

<section class="hero">
    <p class="episode">PSRP PRESENTS</p>
    <h1>POUTRECS GOLF SERIES</h1>
    <p class="episode">EPISODE 1: HALF YEAR MEDAL 2026</p>
    
    <p style="color: #aaa; font-family: 'Montserrat', sans-serif; font-size: 1rem; max-width: 650px; margin: 25px auto 0 auto; line-height: 1.6; padding: 0 15px;">
        Kejohanan pembukaan tirai yang berlangsung dengan gilang-gemilang di Bangi Golf Resort telah pun melabuhkan tirainya. Tahniah diucapkan kepada semua pemenang!
    </p>
    
    <div style="margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 0 15px;">
        <a href="scoreboard.php" class="btn-book" style="background: var(--gold-gradient); color: #000; box-shadow: 0 10px 20px rgba(212,175,55,0.2);"><i class="fa fa-list-ol"></i> VIEW OFFICIAL SCOREBOARD</a>
        <a href="#gallery" class="btn-whatsapp" style="border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.02);"><i class="fa fa-images"></i> VIEW EVENT GALLERY</a>
    </div>
</section>

<div class="info-bar">
    <div><i class="fa fa-calendar"></i> CONCLUDED: 6 JUN 2026</div>
    <div><i class="fa fa-trophy"></i> 1 CHAMPION CROWNED</div>
    <div><i class="fa fa-map-marker-alt"></i> BANGI GOLF RESORT</div>
</div>

<section class="gallery-section" id="gallery">
    <h2 style="font-family: 'Cinzel', serif; color: #fff; font-size: 2.2rem; letter-spacing: 2px; margin: 0;">OFFICIAL PHOTO GALLERY</h2>
    <div style="width: 50px; height: 2px; background: var(--gold-solid); margin: 15px auto 0 auto;"></div>
    
    <div class="gallery-grid" id="liveGalleryGrid">
        <div style="grid-column: 1/-1; padding: 40px; color: #666;">
            <i class="fa fa-spinner fa-spin fa-2x"></i><br><br>Loading images from Google Drive cloud...
        </div>
    </div>

    <div style="margin-top: 50px;">
        <a href="https://drive.google.com/drive/folders/12pu-nrGwCI_P4NsQb_Qr-TsKZNIil1b9?usp=drive_link" target="_blank" class="btn-whatsapp" style="border: 1px solid var(--gold-solid); color: #fff; display: inline-block; padding: 15px 40px;">
            <i class="fa fa-images"></i> VIEW FULL EVENT ALBUM (GOOGLE DRIVE)
        </a>
    </div>
</section>

<section id="shirts" style="padding: 80px 20px; background: #111; text-align: center; border-top: 1px solid #222;">
    <h2 style="font-family: 'Cinzel', serif; color: var(--gold-solid); margin-bottom: 10px; font-size: 2.5rem;">SUPPORTER PACKAGE</h2>
    <p style="color: #ccc; margin-bottom: 50px; letter-spacing: 2px;">WEAR THE JOURNEY. COLLECT THE LEGACY.</p>
    
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto;">
        <div class="shirt-card">
            <div class="shirt-img-container">
                <img src="assets/images/design1.jpeg" alt="Luxe Black" style="width:100%; border-radius: 8px;">
            </div>
            <p style="color:var(--gold-solid); font-weight:bold; margin-top:15px; letter-spacing: 1px;">DESIGN: Black Gold Classic</p>
        </div>
        <div class="shirt-card">
            <div class="shirt-img-container">
                <img src="assets/images/design2.jpeg" alt="Pure White" style="width:100%; border-radius: 8px;">
            </div>
            <p style="color:var(--gold-solid); font-weight:bold; margin-top:15px; letter-spacing: 1px;">DESIGN: White Gold Elite</p>
        </div>
        <div class="shirt-card">
            <div class="shirt-img-container">
                <img src="assets/images/design3.jpeg" alt="Forest Green" style="width:100%; border-radius: 8px;">
            </div>
            <p style="color:var(--gold-solid); font-weight:bold; margin-top:15px; letter-spacing: 1px;">DESIGN: Emerald Signature</p>
        </div>
        <div class="shirt-card">
            <div class="shirt-img-container">
                <img src="assets/images/design4.jpeg" alt="Deep Navy" style="width:100%; border-radius: 8px;">
            </div>
            <p style="color:var(--gold-solid); font-weight:bold; margin-top:15px; letter-spacing: 1px;">DESIGN: Midnight Premium</p>
        </div>
    </div>

    <div style="margin-top: 60px; max-width: 900px; margin-left: auto; margin-right: auto; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;">
        <div style="background: #0a0a0a; border: 1px solid #333; padding: 30px; border-radius: 15px; flex: 1; min-width: 280px;">
            <h4 style="color: #fff; margin-bottom: 10px; font-family: 'Cinzel';">COLLECT INDIVIDUALLY</h4>
            <div style="font-size: 2.5rem; font-weight: 800; color: var(--gold-solid);">RM88 <span style="font-size: 0.9rem; color: #666;">/ EACH</span></div>
        </div>

        <div style="background: linear-gradient(135deg, #1a150a 0%, #0a0a0a 100%); border: 2px solid var(--gold-solid); padding: 30px; border-radius: 15px; flex: 1; min-width: 280px; position: relative; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);">
            <div style="position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gold-solid); color: #000; padding: 5px 15px; font-size: 0.7rem; font-weight: 900; border-radius: 5px; text-transform: uppercase;">Founding Collection</div>
            <h4 style="color: #fff; margin-bottom: 10px; font-family: 'Cinzel';">OWN THE COMPLETE SET</h4>
            <div style="font-size: 3rem; font-weight: 800; color: var(--gold-solid);">RM350</div>
            <p style="color: #fff; font-size: 0.85rem; margin-top: 5px; font-weight: bold;">(GET ALL 4 DESIGNS)</p>
            <div style="margin-top: 20px; color: #25d366; font-size: 0.95rem; font-weight: bold; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px;">
                <i class="fa fa-check-circle"></i> Includes Exclusive Dinner Invitation
            </div>
        </div>
    </div>

    <div style="margin-top: 40px; border-bottom: 1px solid #222; padding-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;">
        <p style="color: #ff4d4d; font-weight: 800; letter-spacing: 3px; font-size: 1.2rem; margin-bottom: 5px; text-transform: uppercase;">Limited Production</p>
        <p style="color: #ff4d4d; font-weight: 400; font-size: 0.9rem;">NO REPRODUCTION ONCE SOLD OUT</p>
    </div>

    <div class="size-guide-container" style="margin-top: 60px; max-width: 950px; margin-left: auto; margin-right: auto; background: #0a0a0a; padding: 40px; border-radius: 15px; border: 1px solid #222;">
        <h3 style="color: var(--gold-solid); margin-bottom: 25px; font-family: 'Cinzel', serif;">OFFICIAL SIZE CHART ADULTS</h3>
        <div style="overflow-x: auto;">
            <table class="size-table" style="width: 100%; border-collapse: collapse; color: #ccc; text-align: center;">
                <thead>
                    <tr style="background: var(--gold-gradient); color: #000;">
                        <th style="padding: 12px; border: 1px solid #222;">SIZE</th>
                        <th style="padding: 12px; border: 1px solid #222;">CHEST</th>
                        <th style="padding: 12px; border: 1px solid #222;">SLEEVE</th>
                        <th style="padding: 12px; border: 1px solid #222;">LONG SLEEVE</th>
                        <th style="padding: 12px; border: 1px solid #222;">LABUH</th>
                    </tr>
                </thead>
                <tbody>
                    <tr><td>2XS</td><td>34"</td><td>7.5"</td><td>21.5"</td><td>25"</td></tr>
                    <tr><td>XS</td><td>36"</td><td>7.5"</td><td>21.5"</td><td>26"</td></tr>
                    <tr><td>S</td><td>38"</td><td>8"</td><td>22"</td><td>27"</td></tr>
                    <tr><td>M</td><td>40"</td><td>8"</td><td>22"</td><td>28"</td></tr>
                    <tr><td>L</td><td>42"</td><td>8.5"</td><td>22.5"</td><td>29"</td></tr>
                    <tr><td>XL</td><td>44"</td><td>8.5"</td><td>22.5"</td><td>30"</td></tr>
                    <tr><td>2XL</td><td>46"</td><td>9.0"</td><td>23"</td><td>31"</td></tr>
                    <tr><td>3XL</td><td>48"</td><td>9.0"</td><td>23"</td><td>32"</td></tr>
                    <tr><td>4XL</td><td>50"</td><td>10"</td><td>24"</td><td>33"</td></tr>
                    <tr><td>5XL</td><td>52"</td><td>10"</td><td>24"</td><td>34"</td></tr>
                    <tr><td>6XL</td><td>54"</td><td>10.5"</td><td>24"</td><td>35"</td></tr>
                    <tr><td>7XL</td><td>56"</td><td>10.5"</td><td>24.5"</td><td>36"</td></tr>
                    <tr><td>8XL</td><td>58"</td><td>11"</td><td>24.5"</td><td>37"</td></tr>
                    <tr><td>9XL</td><td>60"</td><td>11"</td><td>24.5"</td><td>38"</td></tr>
                    <tr><td>10XL</td><td>62"</td><td>11.5"</td><td>24.5"</td><td>39"</td></tr>
                </tbody>
            </table>
        </div>
        <div style="margin-top: 25px; text-align: center;">
            <p style="font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 5px;">SIZE MAY DIFFERENT +/- 5% FROM THE ACTUAL PRODUCT</p>
            <p style="color: #ff4d4d; font-weight: 800; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;">ALL MEASUREMENT ARE IN INCHES</p>
        </div>
    </div>

    <div style="margin-top: 60px; background: linear-gradient(rgba(212,175,55,0.1), rgba(0,0,0,0)); padding: 40px; border: 1px solid rgba(212,175,55,0.3); border-radius: 15px; max-width: 800px; margin-left: auto; margin-right: auto;">
        <h4 style="color: var(--gold-solid); font-family: 'Cinzel'; margin-bottom: 20px;">🏆 RECOGNITION & REWARDS</h4>
        <p style="color: #fff; margin-bottom: 25px;">Exclusive privileges for the 4-Piece Collection Owners:</p>
        <div style="text-align: left; display: inline-block; color: #ccc; line-height: 2.2;">
            <div><i class="fa fa-check" style="color: var(--gold-solid);"></i> Complimentary Invitation to the Exclusive Dinner Session</div>
            <div><i class="fa fa-check" style="color: var(--gold-solid);"></i> Early Supporter Recognition in PSRP Hall of Fame</div>
            <div><i class="fa fa-check" style="color: var(--gold-solid);"></i> Founding Episode Collector Status</div>
        </div>
    </div>
</section>

<section id="medal" style="padding: 80px 20px; background: #050505; text-align: center; border-top: 1px solid #1a1a1a;">
    <h2 style="font-family: 'Cinzel', serif; color: var(--gold-solid); margin-bottom: 10px; font-size: 2.5rem;">FOUNDING EPISODE</h2>
    <p style="color: #ccc; margin-bottom: 50px; letter-spacing: 2px; text-transform: uppercase;">COLLECTOR’S MEDAL</p>
    
    <div style="max-width: 950px; margin: 0 auto; background: rgba(212, 175, 55, 0.03); padding: 50px; border-radius: 20px; border: 1px solid rgba(212, 175, 55, 0.1);">
        <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; align-items: center;">
            <div style="position: relative;">
                <img src="assets/images/medal.jpeg" alt="Poutrecs Official Medal" style="width: 100%; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.6);">
            </div>

            <div style="text-align: left;">
                <p style="color: #bbb; line-height: 1.8; margin-bottom: 25px; font-size: 1.1rem;">
                    A limited-edition **acrylic collector medal** awarded exclusively to golfers participating in Episode 1. Designed to commemorate the beginning of a new golfing legacy.
                </p>
                <ul style="list-style: none; padding: 0; color: #fff; font-size: 1rem;">
                    <li style="margin-bottom: 15px; display: flex; align-items: center;"><i class="fa fa-star" style="color: var(--gold-solid); margin-right: 15px;"></i> Premium Acrylic Collector Medal</li>
                    <li style="margin-bottom: 15px; display: flex; align-items: center;"><i class="fa fa-star" style="color: var(--gold-solid); margin-right: 15px;"></i> Antique Gold Finish</li>
                    <li style="margin-bottom: 15px; display: flex; align-items: center;"><i class="fa fa-star" style="color: var(--gold-solid); margin-right: 15px;"></i> Double-Sided Artwork</li>
                </ul>
                <p style="color: var(--gold-solid); font-style: italic; margin-top: 30px; border-left: 3px solid var(--gold-solid); padding-left: 15px;">
                    “Forged for pioneers. Reserved for finishers.”
                </p>
            </div>
        </div>
    </div>
</section>

<section style="padding: 80px 20px; background: #0a0a0a; text-align: center;">
    <div style="max-width: 800px; margin: 0 auto;">
        <h2 style="font-family: 'Cinzel', serif; color: var(--gold-solid); margin-bottom: 10px;">🎁 SURPRISE AWAITS</h2>
        <p style="color: #ccc; letter-spacing: 2px; margin-bottom: 40px;">BEYOND THE TEE OFF</p>
        
        <p style="color: #999; line-height: 1.8; font-size: 1.1rem; margin-bottom: 30px;">
            Not everything will be revealed before tee off. Selected golfers may walk away with exclusive surprise rewards, sponsor gifts, and unexpected experiences throughout the event day.
        </p>
        
        <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; color: var(--gold-solid); font-weight: bold; text-transform: uppercase; font-size: 0.8rem;">
            <span><i class="fa fa-gift"></i> Random Giveaways</span>
            <span><i class="fa fa-trophy"></i> Founding Experience</span>
            <span><i class="fa fa-users"></i> Exclusive Collectibles</span>
        </div>
        
        <p style="margin-top: 40px; font-style: italic; color: #555;">“Some rewards can’t be listed on a poster.”</p>
    </div>
</section>

<section class="contact-section">
    <div style="max-width: 800px; margin: 0 auto; position: relative; z-index: 2;">
        <h3 style="font-family: 'Cinzel'; color: var(--gold-solid); font-size: 2rem; margin-bottom: 20px;">📲 CONNECT WITH US</h3>
        <p style="color: #ddd; max-width: 600px; margin: 20px auto; line-height: 1.8; font-size: 1.1rem;">
            Community-driven. Passion-powered. <br>
            Our team operates independently and may take some time to respond during peak periods. Thank you for your support.
        </p>
        <a href="https://wa.me/601167478550" class="btn-whatsapp" style="display: inline-block; margin-top: 30px; padding: 20px 60px;">
            <i class="fab fa-whatsapp"></i> MESSAGE OUR TEAM
        </a>
    </div>
</section>

<a href="https://wa.me/601167478550" style="position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); z-index: 9999; text-decoration: none;">
    <i class="fab fa-whatsapp"></i>
</a>

<script>
function loadDriveGallery() {
    try {
        // 👑 ARRAY 6 BUAH GAMBAR RASMI KEJOHANAN
        const galleryData = [
            {
                "title": "Tournament Highlights - Episode 1",
                "drive_id": "10zP8zMm2EUQa_-AewZCbcK_aplxH3SB2"
            },
            {
                "title": "Tournament Highlights - Episode 2",
                "drive_id": "1FQh8uQ_37dK1QvrElfOX7Q4s8M_TANp2"
            },
            {
                "title": "Tournament Highlights - Episode 3",
                "drive_id": "1X9Rs-Dl4nlm_jfQ9YSFyVv6eVO5XVxvC"
            },
            {
                "title": "Tournament Highlights - Episode 4",
                "drive_id": "1atdniQj-u551nS-LnF40_2LJbhDG2s-f"
            },
            {
                "title": "Tournament Highlights - Episode 5",
                "drive_id": "1GmgaSMLYgOLeBb1oGTs-5WOJWuVh71Wa"
            },
            {
                "title": "Tournament Highlights - Episode 6",
                "drive_id": "1hnWxq_ewynNumEyr89lpReh182roDlkM"
            }
        ];
        
        if (!galleryData || galleryData.length === 0) {
            document.getElementById('liveGalleryGrid').innerHTML = '<p style="color: #666; padding: 20px;">No photos uploaded yet.</p>';
            return;
        }

        let galleryHtml = '';

        galleryData.forEach(item => {
            // Menggunakan format langsung Google Drive Thumbnail yang kalis sekatan
            let directImgUrl = `https://drive.google.com/thumbnail?sz=w1000&id=${item.drive_id}`;

            galleryHtml += `
                <div class="gallery-item">
                    <img src="${directImgUrl}" alt="${item.title}" loading="lazy" onerror="this.onerror=null; this.src='https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?w=500';">
                </div>
            `;
        });

        document.getElementById('liveGalleryGrid').innerHTML = galleryHtml;

    } catch (error) {
        console.error('Error loading gallery:', error);
        document.getElementById('liveGalleryGrid').innerHTML = `<p style="color: #ff4d4d; padding: 20px;">Ralat Sistem: ${error.message}</p>`;
    }
}

// Jalankan fungsi galeri serta-merta
loadDriveGallery();
</script>

<footer class="main-footer">
        <div class="footer-container">
            <div class="footer-info">
                <h3 class="footer-logo-text">POUTRECS GOLF</h3>
                <p class="footer-collab">
                    Organised by Putrajaya Recreational Sports Association (PSRP) in collaboration with Putrajaya Golf Association (PGA).
                </p>
                
                <div class="footer-contact-info">
                    <span><i class="fa fa-phone"></i> +6011 6747 8550</span>
                    <span class="separator">|</span>
                    <span><i class="fa fa-globe"></i> golf.poutrecs.com</span>
                </div>
            </div>
        </div>

        <div class="footer-bottom">
            <p>&copy; 2026 Persatuan Sukan Rekreasi Putrajaya. All Rights Reserved.</p>
        </div>
    </footer>
</body>
</html>