/*
 * Estilo das páginas estáticas (src/site/render.ts) e da seção "Sobre" do
 * index.html. Fica em public/ para funcionar sem o JavaScript da IDE.
 * Mesmas cores do App.css.
 */
.site,
.site-about {
  --bg: #1b2327;
  --surface: #263238;
  --border-soft: #34444c;
  --text: #d8dee2;
  --muted: #8a9ba4;
  --accent: #2ed3a0;
  --link: #29b6f6;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.site { margin: 0; }
.site *,
.site-about * { box-sizing: border-box; }

.site a,
.site-about a { color: var(--link); }

.site h1,
.site-about h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin: 0.4em 0 0.6em; }
.site h2,
.site-about h2 { font-size: 1.3rem; margin: 2em 0 0.6em; }

.site code,
.site-about code {
  font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 0.92em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* Cabeçalho e rodapé */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 16px;
  background: #1f292e;
  border-bottom: 1px solid #11181c;
}
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text) !important; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current='page'] { color: var(--accent); }

.site-main,
.site-about { max-width: 860px; margin: 0 auto; padding: 16px 16px 48px; }
.site-footer { border-top: 1px solid var(--border-soft); padding: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }

.breadcrumbs { color: var(--muted); font-size: 0.85rem; margin: 0; }
.breadcrumbs a { text-decoration: none; }

/* Blocos de código e saída */
.site pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: #11181c;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  line-height: 1.45;
}
.site pre code { background: none; padding: 0; font-size: 0.9rem; }
.site pre.output { color: var(--accent); }
.note { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.4em; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #11181c !important;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.1); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.tags span { background: var(--surface); border-radius: 999px; padding: 2px 10px; color: var(--text); }

details { margin: 10px 0; border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 14px; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6em 0 0.2em; }

/* Cartões de exemplos */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  text-decoration: none;
}
.cards a:hover { border-color: var(--accent); }
.cards strong { color: var(--text); }
.cards span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* Tabela comparativa */
.table-wrap { overflow-x: auto; }
.site table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.site th,
.site td { border: 1px solid var(--border-soft); padding: 8px 10px; text-align: left; vertical-align: top; }
.site thead th { background: var(--surface); }

/* Seção "Sobre" do index.html, abaixo da IDE */
.site-about { border-top: 1px solid var(--border-soft); }
.site-about ul { padding-left: 1.2em; }
