<!doctype html>
<html lang="pt-BR">
<head>
<meta name="robots" content="noindex">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My Studio</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..800&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="/theme/theme.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Ícones (traço, estilo Feather): usar com <svg class="icon"><use href="#i-nome"/></svg> -->
  <svg class="icon-sprite" aria-hidden="true">
    <symbol id="i-pen" viewBox="0 0 24 24"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></symbol>
    <symbol id="i-folder" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></symbol>
    <symbol id="i-folder-plus" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/><line x1="12" y1="11" x2="12" y2="17"/><line x1="9" y1="14" x2="15" y2="14"/></symbol>
    <symbol id="i-image" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></symbol>
    <symbol id="i-book" viewBox="0 0 24 24"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></symbol>
    <symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></symbol>
    <symbol id="i-star" viewBox="0 0 24 24"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></symbol>
    <symbol id="i-calendar" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></symbol>
    <symbol id="i-download" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></symbol>
    <symbol id="i-upload" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></symbol>
  </svg>

  <header class="top">
    <div class="brand">
      <p class="eyebrow" id="greeting">Studio</p>
      <h1>My <em>Studio</em></h1>
    </div>

    <div class="stats">
      <div class="stat">
        <span class="stat-value" id="stat-active">–</span>
        <span class="stat-label"><svg class="icon"><use href="#i-clock"/></svg> projetos em andamento</span>
      </div>
      <div class="stat">
        <span class="stat-value" id="stat-year">–</span>
        <span class="stat-label"><svg class="icon"><use href="#i-pen"/></svg> <span id="stat-year-label">desenhos no ano</span></span>
      </div>
      <div class="stat">
        <span class="stat-value" id="stat-fav">–</span>
        <span class="stat-label"><svg class="icon"><use href="#i-star"/></svg> favoritos</span>
      </div>
    </div>
  </header>

  <!-- Ações rápidas: criar sem precisar entrar no app primeiro -->
  <div class="quick">
    <button class="btn btn-accent" id="new-drawing" title="Atalho: D"><svg class="icon"><use href="#i-pen"/></svg> Novo desenho</button>
    <a class="btn" id="new-project" href="#" title="Atalho: P"><svg class="icon"><use href="#i-folder-plus"/></svg> Novo projeto</a>
    <span class="quick-hint">ou arraste/cole uma imagem aqui</span>
  </div>

  <!-- Grade em 2 colunas: espaços + projetos à esquerda; desafio + desenhos recentes à direita -->
  <div class="overview">
    <section class="section overview-apps">
      <h2 class="section-title">Seus <em>espaços</em></h2>
      <div class="apps" id="apps"></div>
    </section>

    <!-- Desafio: o de hoje, o próximo agendado ou nenhum -->
    <section class="section overview-challenge" id="challenge" hidden>
      <h2 class="section-title" id="challenge-title">Desafio do <em>mês</em></h2>
      <div class="challenge">
        <p class="eyebrow"><svg class="icon"><use href="#i-calendar"/></svg> <span id="challenge-meta"></span></p>
        <h3 class="challenge-prompt" id="challenge-prompt"></h3>
        <div class="challenge-progress" id="challenge-progress" aria-hidden="true"><div id="challenge-bar"></div></div>
        <div class="challenge-foot">
          <p class="challenge-count" id="challenge-count"></p>
          <a class="btn" id="challenge-link" href="#"></a>
        </div>
      </div>
    </section>

    <section class="section overview-projects">
      <div class="section-head">
        <h2 class="section-title">Projetos em <em>andamento</em></h2>
        <a class="btn" id="notebook-link" href="#">Ver todos →</a>
      </div>
      <div class="projects" id="projects"></div>
    </section>

    <!-- Desenhos: abas Últimos 12 meses / Favoritos -->
    <section class="section overview-recent">
      <div class="section-head">
        <h2 class="section-title">Seus <em>desenhos</em></h2>
        <div class="section-actions">
          <div class="strip-tabs" id="strip-tabs" role="tablist">
            <button class="is-active" data-tab="recent" role="tab"><svg class="icon"><use href="#i-clock"/></svg> Últimos 12 meses</button>
            <button data-tab="favorites" role="tab"><svg class="icon"><use href="#i-star"/></svg> Favoritos</button>
          </div>
          <a class="btn" id="gallery-link" href="#">Ver todos →</a>
        </div>
      </div>
      <div class="strip" id="recent"></div>
      <div class="strip" id="favorites" hidden></div>
    </section>
  </div>

  <!-- Backup completo: Sketchbook + Notebook num .zip só -->
  <section class="backup">
    <div>
      <h2 class="section-title">Backup <em>completo</em></h2>
      <p class="backup-info" id="backup-info">Desenhos, editáveis, projetos e documentos num único .zip.</p>
    </div>
    <a class="btn" id="backup-btn" href="api/backup" download><svg class="icon"><use href="#i-download"/></svg> Baixar backup</a>
  </section>

  <div class="drop-overlay" id="drop-overlay" hidden>
    <p><svg class="icon"><use href="#i-upload"/></svg> Solte para adicionar ao <em>Sketchbook</em></p>
  </div>
  <input type="file" id="file-input" multiple hidden>
  <div class="toast" id="toast" hidden></div>

  <script src="app.js"></script>
<script src="/theme/readonly.js"></script>
</body>
</html>
