/* Minecraft Tools, the suite shell.
   A left sidebar picks a tool; each tool lives in a .mt-panel that shows/hides.
   The tools themselves are styled by minecraft.css, minecraft-avatar.css and
   minecraft-exp.css; this sheet only styles the shell (sidebar + layout).
   Class prefix `mt-`. Mirrors darkroom.css. */

#mc-suite {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 34px);
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(12px, 2.4vmin, 24px) 16px 20px;
}

/* ---------- Sidebar ---------- */
.mt-nav {
  flex: none;
  width: 236px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mt-brand { padding: 4px 6px 0; }
.mt-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ededed;
  text-shadow: -0.7px 0 rgba(255, 0, 70, 0.5), 0.7px 0 rgba(0, 235, 220, 0.45);
}
.mt-brand p {
  margin: 5px 0 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}

.mt-tools { display: flex; flex-direction: column; gap: 8px; }
.mt-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: #d0d0d0;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.mt-tool:hover { border-color: var(--line-hover); transform: translateY(-1px); }
.mt-tool .mt-ic {
  flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.mt-tool .mt-ic svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt-tool .mt-tt { min-width: 0; }
.mt-tool .mt-tt b { display: block; font-size: 13px; font-weight: 700; color: #ededed; letter-spacing: 0.01em; }
.mt-tool .mt-tt span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }

.mt-tool.on {
  background: linear-gradient(135deg, rgba(83, 141, 78, 0.22), rgba(83, 141, 78, 0.06));
  border-color: rgba(122, 189, 108, 0.55);
}
.mt-tool.on .mt-ic { background: #6aa84f; border-color: #6aa84f; }
.mt-tool.on .mt-ic svg { stroke: #0a0a0a; }
.mt-tool.on .mt-tt b { color: #fff; }

.mt-note {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px;
  font-size: 11px; line-height: 1.5; color: var(--muted);
}
.mt-note svg { flex: none; width: 15px; height: 15px; stroke: var(--good, #6aa84f); fill: none; stroke-width: 2; }

/* ---------- Main / panels ---------- */
.mt-main { flex: 1; min-width: 0; }
.mt-panel { animation: mt-fade 0.28s ease; }
.mt-panel[hidden] { display: none; }
@keyframes mt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the tool app roots don't need their own outer centering inside the panel */
.mt-panel #mc-lookup,
.mt-panel #mc-avatar,
.mt-panel #mc-exp { padding-top: 0; max-width: none; }
/* pull each tool's FAQ in line with the narrower main column */
.mt-panel .info-accordion { margin-top: 2.6rem; }

/* ---------- Responsive: sidebar becomes a top row ---------- */
@media (max-width: 900px) {
  #mc-suite { flex-direction: column; gap: 14px; }
  .mt-nav {
    width: 100%; position: static; top: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px;
  }
  .mt-brand { flex: 1 1 100%; padding-bottom: 2px; }
  .mt-brand h1 { font-size: 1.25rem; }
  .mt-tools { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mt-tool { width: auto; flex: 1 1 200px; }
  .mt-note { flex-basis: 100%; }
}
@media (max-width: 560px) {
  #mc-suite { padding-left: 12px; padding-right: 12px; overflow-x: hidden; }
  .mt-tool .mt-tt span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-panel { animation: none; }
  .mt-tool { transition: none; }
}
