<?php
/**
 * DROP PWA manifest — no full bootstrap (keeps JSON clean for installability).
 */
header('Content-Type: application/manifest+json; charset=utf-8');
header('Cache-Control: no-cache');

// Paths are relative to this file (/drop/manifest.php)
echo json_encode([
    'id' => './',
    'name' => 'DROP — Join room',
    'short_name' => 'DROP',
    'description' => 'Join your teacher\'s DROP room with a room code.',
    'start_url' => './',
    'scope' => './',
    'display' => 'standalone',
    'orientation' => 'any',
    'background_color' => '#f5f0e8',
    'theme_color' => '#0f766e',
    'lang' => 'en',
    'icons' => [
        [
            'src' => '../assets/images/icon-192.png',
            'sizes' => '192x192',
            'type' => 'image/png',
            'purpose' => 'any',
        ],
        [
            'src' => '../assets/images/icon-512.png',
            'sizes' => '512x512',
            'type' => 'image/png',
            'purpose' => 'any',
        ],
        [
            'src' => '../assets/images/icon-192.png',
            'sizes' => '192x192',
            'type' => 'image/png',
            'purpose' => 'maskable',
        ],
        [
            'src' => '../assets/images/icon-512.png',
            'sizes' => '512x512',
            'type' => 'image/png',
            'purpose' => 'maskable',
        ],
    ],
    'categories' => ['education', 'productivity'],
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
