<?php
require __DIR__ . '/../bootstrap.php';
?>
<!doctype html>
<html lang="fi">
<head>
  <meta charset="utf-8">
  <title>Pesisportaali UI Kit</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    :root{
      --base-bg:#0b0f14;
      --base-panel:#121821;
      --base-panel2:#18212d;
      --base-text:#f5f7fa;
      --base-muted:#9aa7b4;
      --base-line:rgba(255,255,255,.12);
      --brand-primary:#21d4a3;
      --brand-secondary:#2f80ed;
      --brand-dark:#081018;
      --radius:8px;
      --font-ui:Inter,Arial,sans-serif;
      --font-display:"Barlow Condensed",Arial,sans-serif;
    }

    *{box-sizing:border-box}
    body{
      margin:0;
      background:
        radial-gradient(circle at 20% 0%,rgba(33,212,163,.18),transparent 30%),
        radial-gradient(circle at 80% 0%,rgba(47,128,237,.16),transparent 34%),
        var(--base-bg);
      color:var(--base-text);
      font-family:var(--font-ui);
    }

    .wrap{max-width:1440px;margin:0 auto;padding:40px}
    .top{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;margin-bottom:46px}
    .eyebrow{color:var(--brand-primary);font-weight:900;text-transform:uppercase;letter-spacing:.16em;font-size:13px}
    h1{font-family:var(--font-display);font-size:72px;line-height:.9;margin:12px 0 18px;text-transform:uppercase}
    .lead{max-width:760px;color:var(--base-muted);font-size:18px;line-height:1.6}
    .badge{border:1px solid var(--base-line);background:rgba(255,255,255,.04);padding:14px 18px;border-radius:999px;color:var(--base-muted)}

    .section{margin:42px 0}
    .section h2{font-size:30px;text-transform:uppercase;margin:0 0 18px;border-left:5px solid var(--brand-primary);padding-left:14px}

    .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
    .panel{
      background:linear-gradient(180deg,var(--base-panel),rgba(18,24,33,.78));
      border:1px solid var(--base-line);
      border-radius:var(--radius);
      padding:22px;
    }
    .panel h3{margin:0 0 10px;font-size:20px}
    .panel p{margin:0;color:var(--base-muted);line-height:1.5}

    .swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
    .swatch{height:110px;border-radius:var(--radius);border:1px solid var(--base-line);padding:12px;display:flex;align-items:flex-end;font-weight:900}
    .s1{background:var(--brand-primary);color:#06120e}
    .s2{background:var(--brand-secondary)}
    .s3{background:var(--base-panel)}
    .s4{background:var(--base-panel2)}
    .s5{background:#f5f7fa;color:#111}
    .s6{background:#f58220}

    .brand-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
    .brand-card{border:1px solid var(--base-line);border-radius:var(--radius);overflow:hidden;background:var(--base-panel)}
    .brand-head{height:88px;padding:22px;font-weight:950;font-size:26px;text-transform:uppercase;display:flex;align-items:end}
    .brand-body{padding:18px;color:var(--base-muted)}
    .maju .brand-head{background:#0b0b0d;color:#fff;border-left:8px solid #f58220}
    .www .brand-head{background:linear-gradient(135deg,#06d6a0,#2f80ed);color:#fff}
    .siipe .brand-head{background:#083c8c;color:#fff;border-left:8px solid #ffffff}

    .component-preview{
      display:grid;
      grid-template-columns:360px 1fr;
      border:1px solid var(--base-line);
      border-radius:var(--radius);
      overflow:hidden;
      background:#0d0e10;
    }
    .player-side{
      background:#101114;
      padding:24px;
      border-right:1px solid var(--base-line);
    }
    .photo{
      height:360px;
      background:linear-gradient(135deg,rgba(245,130,32,.28),transparent),#24262b;
      display:grid;
      place-items:center;
      font-size:82px;
      font-weight:950;
      margin-bottom:22px;
    }
    .pname{font-size:42px;line-height:.92;font-weight:950;text-transform:uppercase;margin-bottom:18px}
    .meta{color:#d8d8d8;line-height:1.6;margin-bottom:22px}
    .sponsor{border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18);padding:18px 0;font-size:22px;font-weight:900}
    .stats-side{background:#f4f4f2;color:#111;padding:26px}
    .stat-box{background:#fff;border:1px solid rgba(0,0,0,.08);margin-bottom:12px}
    .stat-title{background:#f58220;color:#fff;padding:16px 18px;font-weight:950;text-transform:uppercase}
    .stat-row{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid rgba(0,0,0,.08);color:#555}
    .stat-row strong{color:#e66a0d}
    .closed{padding:17px 18px;font-weight:950;text-transform:uppercase}

    @media(max-width:900px){
      .grid,.swatches,.brand-row{grid-template-columns:1fr 1fr}
      .component-preview{grid-template-columns:1fr}
      h1{font-size:48px}
    }
    @media(max-width:600px){
      .wrap{padding:22px}
      .grid,.swatches,.brand-row{grid-template-columns:1fr}
    }
  </style>
</head>
<body>
<div class="wrap">
  <header class="top">
    <div>
      <div class="eyebrow">Pesisportaali Design System</div>
      <h1>UI Kit v1</h1>
      <div class="lead">
        Pesisportaali on neutraali järjestelmä. Jokainen seura saa oman brandin: värit, logot, korostukset ja komponenttien ilme vaihtuvat asetuksista.
      </div>
    </div>
    <div class="badge">Base + Brand Engine</div>
  </header>

  <section class="section">
    <h2>Base-värit</h2>
    <div class="swatches">
      <div class="swatch s1">Primary</div>
      <div class="swatch s2">Secondary</div>
      <div class="swatch s3">Panel</div>
      <div class="swatch s4">Panel 2</div>
      <div class="swatch s5">Light</div>
      <div class="swatch s6">Asiakasväri</div>
    </div>
  </section>

  <section class="section">
    <h2>Brandit</h2>
    <div class="brand-row">
      <div class="brand-card www">
        <div class="brand-head">WWW Design</div>
        <div class="brand-body">Pesisportaalin omistajan / palvelualustan oma brändi.</div>
      </div>
      <div class="brand-card maju">
        <div class="brand-head">Mailajuniorit</div>
        <div class="brand-body">Asiakasteema: musta, valkoinen ja MaJun oranssi.</div>
      </div>
      <div class="brand-card siipe">
        <div class="brand-head">SiPe</div>
        <div class="brand-body">Esimerkki toisesta seurasta eri värimaailmalla.</div>
      </div>
    </div>
  </section>

  <section class="section">
    <h2>Järjestelmäkortit</h2>
    <div class="grid">
      <div class="panel"><h3>Pelaajat</h3><p>Pelaajaprofiilit, kuvat, kummiyritykset ja tilastot.</p></div>
      <div class="panel"><h3>Ottelut</h3><p>Ottelulistat, tulokset, kokoonpanot ja live-data.</p></div>
      <div class="panel"><h3>Seurat</h3><p>Seurakohtaiset asetukset ja brandit.</p></div>
      <div class="panel"><h3>Komponentit</h3><p>Upotettavat verkkosivu- ja weblayer-komponentit.</p></div>
    </div>
  </section>

  <section class="section">
    <h2>Mailajuniorit / pelaajaprofiilin suunta</h2>
    <div class="component-preview">
      <div class="player-side">
        <div class="photo">SH</div>
        <div class="pname">Siiri<br>Heininen</div>
        <div class="meta">Mailajuniorit B-tytöt<br>16 vuotta<br>Pelaajaprofiili</div>
        <div class="sponsor">Kummiyritys Oy</div>
      </div>
      <div class="stats-side">
        <div class="stat-box">
          <div class="stat-title">Sarjan tilastot</div>
          <div class="stat-row"><span>Ottelut</span><strong>12</strong></div>
          <div class="stat-row"><span>K+L</span><strong>3+14</strong></div>
          <div class="stat-row"><span>Tuodut</span><strong>18</strong></div>
          <div class="stat-row"><span>Kärkilyönnit</span><strong>42 / 71</strong></div>
        </div>
        <div class="stat-box"><div class="closed">Kauden kaikki tilastot</div></div>
        <div class="stat-box"><div class="closed">Uratilastot</div></div>
        <div class="stat-box"><div class="closed">Otteluhistoria</div></div>
      </div>
    </div>
  </section>
</div>
</body>
</html>
