/* ───────── Tools panel equal sizing + details row ───────── */

:root{
  --lspRowH: 40px;          /* same height for folder + file rows */
  --lspRowFS: 13px;         /* same text size */
  --lsp-details-h: 120px;   /* details row height (desktop) */
  --lsp-thumb-w: 120px;     /* thumb width */
}

/* ensure both columns stretch equally */
.lsp-toolsGrid{
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.lsp-toolsFolders,
.lsp-toolsFiles{
  align-self: stretch;
  min-height: 0;
}

/* equal height + font size */
.lsp-folderBtn,
.lsp-fileLink{
  min-height: var(--lspRowH);
  font-size: var(--lspRowFS);
  line-height: 1.1;
}

/* keep file rows single-line clean */
.lsp-fileLink span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* details row spans both columns */
.lsp-toolsDetails{
  grid-row: 2;
  grid-column: 1 / -1;

  height: var(--lsp-details-h);
  min-height: var(--lsp-details-h);

  display: grid;
  grid-template-columns: var(--lsp-thumb-w) minmax(0, 1fr);
  gap: 14px;

  padding: 12px;
  margin-top: 10px;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.lsp-toolsThumb{
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lsp-toolsThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* shown only when selected item has thumb */
}

.lsp-toolsInfo{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lsp-toolsDesc{
  min-height: 0;
  overflow: auto;
  color: rgba(255,255,255,0.9);
  font-size: var(--lspRowFS);
  line-height: 1.35;
}

.lsp-toolsDownload{
  align-self: flex-start;
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* active highlight for selected file */
.lsp-fileLink.active{
  border-color: rgb(255, 230, 0);
}

/* mobile: stack details */
@media (max-width: 820px){
  .lsp-toolsDetails{
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .lsp-toolsThumb{ height: 160px; }
}




/* ───────── BOOT SPLASH ───────── */
body.booting {
  background: #000;
}

#bootSplash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1);
}

#bootSplash.hide {
  opacity: 0;
  pointer-events: none;
}

#bootSplashCenter {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

#bootSplashGif {
  width: min(160px, 40vw);
  height: auto;
  image-rendering: auto;
}

#bootSplashText {
  font-family: var(--font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}

body.booting .stage,
body.booting #windowStack,
body.booting .topbar,
body.booting #socialDock,
body.booting #fsHoleOverlay {
  opacity: 0;
  pointer-events: none;
}

.stage,
#windowStack,
.topbar,
#socialDock,
#fsHoleOverlay {
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity;
}

body.booting .stage,
body.boot-done .stage {
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1), transform 520ms cubic-bezier(.22,.61,.36,1);
}

body.boot-done .stage {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── CARD FADE-IN ───────── */
.conveyor-item {
  --revealY: 10px;
  --hoverS: 1;
  opacity: 0;
  transform: translateY(var(--revealY)) scale(var(--hoverS));
  transition: opacity 420ms cubic-bezier(.22,.61,.36,1),
              transform 420ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.conveyor-item.appear {
  opacity: 1;
  --revealY: 0px;
}

.conveyor-item:hover {
  --hoverS: 1.03;
}

/* ───────── SOON OVERLAY ───────── */
#soonOverlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

body.hero-expanded #soonOverlay {
  opacity: 1;
}

#soonCard {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

#soonText {
  font-family: var(--font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: clamp(18px, 3.2vw, 44px);
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}

#soonText .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

body.hero-expanded #soonOverlay.play #soonText .char {
  animation: charIn 650ms cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--i) * 35ms);
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ───────── LIGHTBOX NAV ───────── */
#lightbox .lightbox-navbtn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 40px;
  line-height: 56px;
  cursor: pointer;
  z-index: 1002;
  user-select: none;
  pointer-events: auto;
}

#lightbox .lightbox-navbtn.prev {
  left: 18px;
}

#lightbox .lightbox-navbtn.next {
  right: 18px;
}
