/* ==========================================================================
   Growarq Cloud — Barra lateral (seções, Studio, Plugin) + aba Lumion
   ========================================================================== */

/* ---- Barra lateral ---- */
/* Logos vetorizadas (Studio e Plugin): preenchidas, na cor do texto */
.nav-item svg.nav-logo {
  stroke: none;
  fill: currentColor;
}
.nav-item svg.nav-ext {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--text-muted);
}

/* ---- Aba Lumion ---- */
.lm-root { color: var(--text-primary); }
.lm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lm-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0;
}

.lm-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.lm-info {
  display: flex;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.lm-info h2 { font-size: 0.95rem; font-weight: 600; margin: 0 0 6px; }
.lm-info p { font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.lm-info b, .lm-opcao b { color: var(--text-primary); font-weight: 600; }
.lm-info-ico {
  flex: 0 0 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-info-ico svg { width: 18px; height: 18px; }
.lm-info-ico-neutro { background: var(--bg-input); color: #374151; }

.lm-acoes {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.lm-h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.lm-busca {
  flex: 0 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-muted);
}
.lm-busca svg { width: 16px; height: 16px; flex-shrink: 0; }
.lm-busca input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  width: 100%;
}
.lm-busca:focus-within { background: var(--bg-input-focus); box-shadow: 0 0 0 2px var(--primary-border); }

.lm-chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.lm-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid #D9DBE1;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}
.lm-chip:hover { background: var(--bg-subtle); }
.lm-chip.on { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }

.lm-secao { margin-top: 2rem; }
.lm-secao-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.lm-secao-head h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.lm-secao-head span { font-size: 0.82rem; color: #6B7280; }

.lm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.lm-card-wrap { position: relative; display: flex; }
.lm-card-wrap .lm-card { flex: 1 1 auto; min-width: 0; }

.lm-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px;
  font: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lm-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.lm-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lm-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #F1F2F4;
}
.lm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-card-nome { display: block; padding: 12px 8px 8px; font-size: 0.875rem; font-weight: 600; }
.lm-card-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lm-card-pe .gc-ex-selo { margin-right: 4px; }

.lm-sem-img {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6B7280;
  background: #F1F2F4;
}
.lm-rodape { margin-top: 3rem; }
.lm-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* ---- Detalhe ---- */
.lm-det { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.lm-det-media { flex: 1.4 1 480px; min-width: 0; position: sticky; top: 24px; }
.lm-det-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.lm-det-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lm-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.lm-det-titulo { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }

.lm-opcao {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lm-opcao-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lm-opcao h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.lm-opcao p { font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.lm-fmt { font-size: 0.7rem; font-weight: 600; color: #4B5563; background: #F1F2F4; border-radius: 6px; padding: 3px 7px; }

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.lm-btn svg { width: 16px; height: 16px; }
.lm-btn:disabled { opacity: 0.7; cursor: progress; }
.lm-btn-pri { background: var(--primary); color: #fff; }
.lm-btn-pri:hover:not(:disabled) { background: var(--primary-hover); }
.lm-btn-sec { background: #fff; color: var(--text-primary); border-color: #D9DBE1; }
.lm-btn-sec:hover:not(:disabled) { background: var(--bg-subtle); }

.lm-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: #6B7280; margin: 0; }
.lm-meta a { color: var(--primary); font-weight: 600; text-decoration: none; }
.lm-relacionados { margin-top: 3rem; }
.lm-det-img.lm-sem-img { display: flex; }

/* ---- Paginação por categoria (2 linhas por página) ---- */
.lm-pag {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lm-pag-seta,
.lm-pag-num {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lm-pag-seta { border-color: var(--border-light); background: #fff; min-width: 56px; }
.lm-pag-seta svg { width: 16px; height: 16px; }
.lm-pag-prox svg { transform: rotate(180deg); }
.lm-pag-seta:hover:not(:disabled), .lm-pag-num:hover { background: var(--bg-subtle); color: var(--text-primary); }
.lm-pag-seta:disabled { opacity: 0.4; cursor: default; }
.lm-pag-num.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lm-pag-gap { color: var(--text-muted); padding: 0 4px; }

/* Favoritar sobre a imagem + downloads compactos */
.lm-fav-img { position: absolute; top: 14px; right: 14px; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(17,24,39,.16); font: 600 13px var(--font-body, Inter, system-ui, sans-serif); color: #111827; cursor: pointer; }
.lm-fav-img svg { width: 18px; height: 18px; color: #6B7280; }
.lm-fav-img.on svg { color: #E11D48; fill: currentColor; }
.lm-fav-img:hover { background: #fff; }
.lm-opcao-dupla { padding: 0; gap: 0; overflow: hidden; }
.lm-opcao-topo { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.lm-opcao-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid #ECEDF0; background: #FAFAFB; }
.lm-opcao-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-opcao-txt span { font-size: 0.8rem; color: var(--text-secondary); }
.lm-opcao-linha .lm-btn { flex: 0 0 auto; width: auto; }
@media (max-width: 1024px) { .lm-det-media { position: relative; top: 0; } }
