/* =========================================================================
   INFOGUANA — project detail
   Cross-project memory system for LLM agents.
   ========================================================================= */

/* Header with mascot badge */
.infoguana-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
}
.infoguana-logo {
  /* no tile — the mascot's own cream outline reads against the dark page */
  width: 168px;
  height: auto;
  display: block;
}
.infoguana-header-text h1 { margin-bottom: var(--space-xs); }
.infoguana-header-text p { margin-bottom: var(--space-md); }

/* Section typography (mirrors the project-detail pattern) */
section { margin-bottom: var(--space-xl); }
section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
section h3 {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--paper);
  letter-spacing: -0.015em;
}
section p, section ul {
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 72ch;
}
section ul { padding-left: 1.2em; }
section ul li { margin-bottom: var(--space-xs); }

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

/* Overview lead-in */
.motivation-section { padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.motivation-section h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.motivation-section > p { font-size: var(--text-md); color: var(--text-secondary); max-width: 72ch; }

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: var(--space-lg) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.info-card {
  padding: var(--space-md);
  border-right: 1px solid var(--rule);
  transition: background var(--duration-fast) var(--ease-out);
}
.info-card:last-child { border-right: none; }
.info-card:hover { background: var(--ink-2); }
.info-card .card-icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  display: block;
  color: var(--accent);
  filter: grayscale(0.3);
}
.info-card h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}
.info-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Highlight box — emphasis quote */
.highlight-box {
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(230,180,76,0.06), transparent 80%);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.highlight-box p { margin-bottom: 0; color: var(--text-secondary); font-size: var(--text-md); line-height: 1.7; max-width: none; }
.highlight-box strong { color: var(--accent); }

/* MCP tool groups */
.tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.tool-group {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.tool-group h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.tool-group ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.tool-group ul li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px dashed var(--rule);
  line-height: 1.5;
}
.tool-group ul li:last-child { border-bottom: none; }
.tool-group code {
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
}

/* Repo call-to-action */
.repo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.repo-link::after {
  content: "↗";
  margin-left: 0.6rem;
  color: var(--accent);
  transition: transform var(--duration-fast) var(--ease-out);
}
.repo-link:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}
.repo-link:hover::after { color: var(--ink); transform: translate(2px, -2px); }

.repo-cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.repo-cta p { max-width: 60ch; margin: 0 auto var(--space-md); }

@media (max-width: 768px) {
  .infoguana-header { grid-template-columns: 1fr; justify-items: start; }
  .info-cards { grid-template-columns: 1fr; }
  .info-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .info-card:last-child { border-bottom: none; }
}
