
/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg-color: #ffffff;
  --text-color: #24292f;
  --accent-color: #0969da;
  --card-bg: #f8f9fa;
  --border-color: #d0d7de;
  --code-bg: #f6f8fa;
  --code-text: #24292f;
  --shadow: rgba(0,0,0,0.06);
  --gh-btn-bg: #f6f8fa;
  --gh-btn-text: #24292f;
  --gh-btn-border: #d0d7de;
  --gh-btn-hover-bg: #f3f4f6;
  --gh-btn-active-bg: #ebecf0;
  --gh-btn-selected-bg: #ddf4ff;
  --gh-btn-selected-border: #0969da;
}

[data-theme="dark"] {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --accent-color: #2f81f7;
  --card-bg: #161b22;
  --border-color: #30363d;
  --code-bg: #0d1117;
  --code-text: #c9d1d9;
  --shadow: rgba(0,0,0,0.3);
  --gh-btn-bg: #21262d;
  --gh-btn-text: #c9d1d9;
  --gh-btn-border: #30363d;
  --gh-btn-hover-bg: #30363d;
  --gh-btn-active-bg: #3a3f45;
  --gh-btn-selected-bg: rgba(31, 111, 235, 0.2);
  --gh-btn-selected-border: #2f81f7;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background-color 0.3s, color 0.3s;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo h1 {
  color: var(--accent-color);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--gh-btn-bg);
  color: var(--gh-btn-text);
  border: 1px solid var(--gh-btn-border);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 0 rgba(27,31,36,0.04);
  font-family: inherit;
  font-size: 0.9rem;
}

.btn:hover { background: var(--gh-btn-hover-bg); }
.btn:active { background: var(--gh-btn-active-bg); }
.btn[aria-pressed="true"], .btn.active { background: var(--gh-btn-selected-bg); border-color: var(--gh-btn-selected-border); }
.btn-inline { padding: 0.2rem 0.5rem; font-weight: 600; }

/* ===== HERO BUTTON GROUP (novo) ===== */
.btn-group{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}
/* ===== ICONS (Nerd Fonts) =====
   Make sure you include the Nerd Fonts CSS in your <head>:
   <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/jetbrainsmono.css" crossorigin>
   <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/mshaugh/nerdfont-webfonts@v3.3.0/build/nerdfontssymbolsonly.css" crossorigin>
*/

/* Garante Nerd Fonts prioritário para os ícones */
.nf{
  font-family:
    'NerdFontsSymbols Nerd Font',
    'Symbols Nerd Font',
    'JetBrainsMono Nerd Font',
    'JetBrains Mono',
    ui-monospace,
    monospace;
  font-weight:400;
  font-size:1.05em;
  line-height:1;
  display:inline-block;
}

/* Mapas usados (iguais aos que você já tinha) */
.nf-github::before     { content: "\f09b"; } /* GitHub */
.nf-printer_3d_nozzle::before { content: "\f0e5b"; } /* nozzle */
.nf-timer::before      { content: "\f017"; } /* clock */
.nf-sun::before        { content: "\f185"; } /* sun */
.nf-moon::before       { content: "\f186"; } /* moon */
.nf-oct-file_directory::before { content: "\f07b"; } /* folder */
.nf-oct-file::before           { content: "\f15b"; } /* file */
.nf-oct-list_unordered::before { content: "\f03a"; } /* list */
/* Octicons / misc used in the page */
.nf-oct-file_directory::before { content: "\f07b"; }  /* Folder */
.nf-oct-file::before           { content: "\f15b"; }  /* File */
.nf-oct-list_unordered::before { content: "\f03a"; }  /* List */

/* Extra feature icons used in cards */
.nf-mdi-cube_outline::before          { content: "\f1b2"; } /* Cube (FA) */
.nf-mdi-circuit_board::before         { content: "\eae4"; } /* Circuit board (MDI patched) */
.nf-mdi-open_source_initiative::before { content: "\eaff"; } /* OSI (MDI patched) */
.nf-mdi-memory::before                { content: "\f108"; } /* Chip/Memory (FA) */

.ibom-inline { height: 1em; width: auto; display: inline-block; vertical-align: -0.15em; margin-right: 0.35rem; }

/* ===== MAIN CONTENT ===== */
main { padding: 2rem 0; }

.hero { text-align: center; padding: 3rem 0; animation: fadeIn 0.6s ease-out; }

.hero h2 { font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--accent-color); font-weight: 700; }
.hero p  { font-size: 1rem; margin-bottom: 2rem; opacity: 0.9; }

.version-badge {
  display: inline-block; background: var(--accent-color); color: #fff;
  padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
}

/* ===== SECTIONS ===== */
.section { margin: 3rem 0; }

.section h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent-color); font-weight: 700; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 1px 0 var(--shadow);
}

/* ===== TECH STACK ===== */
.tech-stack { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 1.1rem 0; }

.tech-item {
  background: var(--accent-color); color: #fff; padding: 0.35rem 0.8rem;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}

.tech-item.tech-logo {
  background: transparent; border: 1px solid var(--border-color); padding: 0.35rem 0.6rem;
}
.tech-item.tech-logo img { height: 18px; display: block; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 0.6rem; }

.feature-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 1.1rem; text-align: center; transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 12px var(--shadow); transform: translateY(-2px); }

.feature-icon { font-size: 3rem; margin-bottom: 0.5rem; color: var(--accent-color); }
.feature-logo { height: 3.1rem; object-fit: contain; display: inline-block; }

/* ===== IBOM SECTION ===== */
.ibom-container { padding: 0; overflow: hidden; }
.ibom-header {
  display: flex; align-items: center; gap: 0.5rem; background: var(--accent-color); color: #fff;
  padding: 0.8rem 1rem; font-weight: 700; border-radius: 8px 8px 0 0;
}
.ibom-icon { height: 18px; display: block; filter: brightness(0) invert(1); }
.ibom-container iframe { transition: filter 0.3s ease; border-radius: 0 0 8px 8px; border: none; width: 100%; height: 520px; }
[data-theme="dark"] .ibom-container iframe { filter: invert(1) hue-rotate(180deg) contrast(1.1) brightness(1.2) saturate(0.9); }

/* ===== 3D VIEWER ===== */
.viewer-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem;
  border: 1px solid var(--border-color); border-radius: 8px 8px 0 0; background: var(--card-bg);
}
.viewer-title { font-weight: 700; }
.viewer-controls { display: flex; gap: 0.5rem; }
.viewer-wrap {
  border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 8px 8px;
  background: transparent; overflow: hidden;
}
#pg-viewer { width: 100%; height: 520px; background: transparent; }

/* ===== CODE BLOCKS ===== */
.code-wrapper {
  position: relative; background: var(--code-bg); border: 1px solid var(--border-color);
  border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--shadow); margin: 0.7rem 0 1.1rem;
}
.code-wrapper .btn { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.8rem; padding: 0.3rem 0.6rem; z-index: 10; }
.code-wrapper pre { margin: 0; padding: 1rem; background: transparent; overflow-x: auto; }
.code-wrapper code { color: var(--code-text); font-family: 'JetBrains Mono', monospace; }

/* ===== REPOSITORY LIST ===== */
.repository-list { list-style: none; margin: 1rem 0; }
.repository-list li {
  padding: 0.5rem 0; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: 1rem;
}
.repository-list li:last-child { border-bottom: none; }
.folder-name { font-weight: 700; color: var(--accent-color); min-width: 150px; }

/* ===== REQUIREMENTS LIST ===== */
.req-list { margin: 1rem 0; padding-left: 1.5rem; }
.req-list li { margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* para quebrar no mobile */
}

.footer-text {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.footer-seal img {
  max-width: 120px; /* tamanho estilo selo */
  height: auto;
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out; }

/* ===== LOADING STATE ===== */
body.loaded { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h2 { font-size: 1.8rem; }
  .container { padding: 0 15px; }
  .header-content { flex-direction: column; gap: 1rem; }
  .hero { padding: 2rem 0; }
  .hero .btn { display: flex; justify-content: center; margin: 0.25rem 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .tech-stack { justify-content: flex-start; }
  .viewer-bar { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  #pg-viewer { height: 400px; }
}

