/* =========================================================
   Vitrine — abas + navegador falso que exibe as demos
   ========================================================= */
.showcase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

/* Abas */
.tabs { display: flex; flex-direction: column; gap: 6px; }

.tab {
  all: unset;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 180px;
}
.tab .k {
  grid-row: span 2;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.tab strong { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.tab small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.tab[aria-selected="true"] { border-color: var(--yellow); background: var(--panel-2); }
.tab[aria-selected="true"] .k { color: var(--yellow); }
.tab:focus-visible { outline: 2px solid var(--yellow); }

/* Navegador */
.browser {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 30px 80px -30px rgba(58, 116, 255, .35);
}
.chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots span:first-child { background: var(--yellow); }

.url {
  flex: 1;
  min-width: 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url b { color: var(--fg); font-weight: 400; }

.devices { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.devices button {
  all: unset;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 6px 9px;
  color: var(--muted);
}
.devices button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.stage {
  background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 10px, var(--panel-2) 10px, var(--panel-2) 20px);
  padding: 18px;
  display: flex;
  justify-content: center;
  min-height: 440px;
}
.viewport {
  width: 100%;
  max-width: 100%;
  transition: max-width .35s ease;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.viewport.mobile { max-width: 375px; }

/* Responsivo */
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 640px) {
  .devices { display: none; }
}
