<?php include 'header.php'; ?>

<form action="../settings_process.php" method="POST">
    <div class="control-box">
        <h4 style="color:var(--accent); margin-top:0;"><i class="fas fa-play-circle"></i> BACKGROUND MEDIA</h4>
        <label>Background Video URL (MP4)</label>
        <input type="text" name="bg_video" value="<?= htmlspecialchars($theme['bg_video']) ?>" placeholder="Direct .mp4 link">
        
        <label>Background Music (YouTube ID)</label>
        <input type="text" name="youtube_bgm" value="<?= htmlspecialchars($theme['youtube_bgm']) ?>" placeholder="E.g. dQw4w9WgXcQ">
    </div>

    <div class="control-box">
        <h4 style="color:var(--accent); margin-top:0;"><i class="fas fa-share-alt"></i> SOCIAL & APP LINKS</h4>
        <label><i class="fab fa-facebook"></i> Facebook Link</label>
        <input type="text" name="social_fb" value="<?= htmlspecialchars($theme['social_fb']) ?>">

        <label><i class="fab fa-telegram"></i> Telegram Link</label>
        <input type="text" name="social_tg" value="<?= htmlspecialchars($theme['social_tg']) ?>">

        <label><i class="fab fa-youtube"></i> YouTube Channel</label>
        <input type="text" name="social_yt" value="<?= htmlspecialchars($theme['social_yt']) ?>">

        <label><i class="fab fa-discord"></i> Discord Server</label>
        <input type="text" name="social_ds" value="<?= htmlspecialchars($theme['social_ds']) ?>">

        <label><i class="fas fa-mobile-alt"></i> App Download Link</label>
        <input type="text" name="app_link" value="<?= htmlspecialchars($theme['app_link']) ?>">
    </div>
    
    <button class="btn" name="update_settings">SAVE ALL LINKS</button>
</form>

<?php include 'footer.php'; ?>