<?php
/**
 * AURA FARMING — Header HTML
 * Inclua no topo de cada página:
 *   require_once ROOT_PATH . '/includes/header.php';
 *
 * Variáveis esperadas (opcionais):
 *   $pageTitle  — título da aba (padrão: "Aura Farming")
 *   $bodyClass  — classe extra no <body>
 *   $showNav    — false para ocultar navbar inferior
 */

$pageTitle  = $pageTitle  ?? 'Aura Farming';
$bodyClass  = $bodyClass  ?? '';
$showNav    = $showNav    ?? true;
if (!headers_sent()) {
  header('X-Frame-Options: SAMEORIGIN');
  header('X-Content-Type-Options: nosniff');
  header('Referrer-Policy: strict-origin-when-cross-origin');
  header('Permissions-Policy: camera=(self), microphone=(), geolocation=()');
}
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <meta name="theme-color" content="#000000">
  <meta name="description" content="Aura Farming — Entre. Farme. Expanda sua aura.">
  <meta name="app-base-url" content="<?= esc(SITE_URL) ?>">
  <meta name="csrf-token" content="<?= function_exists('gerarCsrfToken') ? esc(gerarCsrfToken()) : '' ?>">
  <title><?= esc($pageTitle) ?> | AURA FARMING</title>

  <!-- PWA / Ícone -->
  <link rel="icon" type="image/svg+xml" href="<?= SITE_URL ?>/assets/img/avatar_default.svg">
  <link rel="apple-touch-icon" href="<?= SITE_URL ?>/assets/img/apple-touch-icon.png">

  <!-- CSS principal -->
  <link rel="stylesheet" href="<?= SITE_URL ?>/assets/css/style.css?v=22.2">
  <?php foreach (($pageStyles ?? []) as $style): ?>
  <link rel="stylesheet" href="<?= esc($style) ?>">
  <?php endforeach; ?>
</head>
<body class="<?= esc($bodyClass) ?>">

<!-- Partículas de fundo -->
<div class="particles" aria-hidden="true"></div>
