/* App header — brand, title, primary actions */

function AppHeader({ onCopyLink, onExportPDF, onReset }) {
  return (
    <header className="app-header">
      <a href="/" className="brand brand--link" title="Sicosa Energy — home">
        <img src="assets/sicosa-logo.png" alt="Sicosa Energy" className="brand__mark" />
        <div className="brand__text">
          <div className="brand__wordmark">Sicosa Energy</div>
          <div className="brand__sub">Trading desk · Yerevan</div>
        </div>
      </a>
      <div className="header__right">
        <button className="btn btn--ghost btn--sm" onClick={onReset} title="Reset to defaults">
          <i data-lucide="rotate-ccw"></i>
          Reset
        </button>
        <button className="btn btn--ghost btn--sm" onClick={onCopyLink} title="Copy shareable link">
          <i data-lucide="link"></i>
          Copy Link
        </button>
        <button className="btn btn--primary btn--sm" onClick={onExportPDF} title="Export PDF report">
          <i data-lucide="file-down"></i>
          Export PDF
        </button>
      </div>
    </header>
  );
}

window.AppHeader = AppHeader;
