/* LA BoardView — complementos da página (galeria, temas e ampliação). Usa os tokens de styles.css. */

.bv-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}

.bv-shot-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Capturas da janela do programa são quase quadradas: mostra o topo em 16:10 e amplia inteira */
.sl-shot--app img {
  aspect-ratio: 16 / 10;
  object-position: top left;
}

.bv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bv-gallery li {
  min-width: 0;
}

.bv-gallery .sl-shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.bv-gallery .sl-shot.bv-fit img {
  object-fit: contain;
  object-position: center;
  background: #0b0b12;
}

.bv-gallery .bv-shot-btn:hover img {
  transform: scale(1.03);
}

.bv-gallery .sl-shot figcaption {
  min-height: 3.6em;
}

.bv-gallery-group {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bv-gallery-group:first-of-type {
  margin-top: 0;
}

.bv-themes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bv-themes .sl-shot img {
  aspect-ratio: 1 / 1;
  object-position: center;
}

@media (max-width: 640px) {
  .bv-themes {
    grid-template-columns: minmax(0, 1fr);
  }

  .bv-themes .sl-shot img {
    aspect-ratio: 16 / 10;
  }
}

.bv-formats {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .bv-formats {
    grid-template-columns: 1.2fr 1fr;
  }
}

.bv-formats code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

.bv-note {
  margin: 1rem auto 0;
  max-width: 62ch;
  font-size: 0.88rem;
  color: var(--faint);
  text-align: center;
}

.bv-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bvstep;
}

@media (min-width: 760px) {
  .bv-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bv-steps li {
  counter-increment: bvstep;
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 14, 20, 0.6);
  color: var(--mute);
  font-size: 0.95rem;
}

.bv-steps li::before {
  content: counter(bvstep);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.bv-steps strong {
  color: var(--ink);
  font-weight: 600;
}

.bv-release {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 12px;
  background: rgba(8, 22, 28, 0.55);
}

.bv-release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.bv-release-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.bv-release-date {
  font-size: 0.85rem;
  color: var(--faint);
}

.bv-release ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--mute);
}

.bv-release li + li {
  margin-top: 0.45rem;
}

/* —— Ampliação —— */
.bv-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 4, 8, 0.94);
  color: var(--ink);
  overflow: hidden;
}

.bv-lightbox::backdrop {
  background: rgba(4, 4, 8, 0.8);
}

.bv-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.bv-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.bv-lb-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 3.5rem;
  touch-action: pan-y pinch-zoom;
}

.bv-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: #0a0a10;
}

.bv-lb-caption {
  margin: 0;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.92rem;
  max-width: 70ch;
  justify-self: center;
}

.bv-lb-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 28, 0.85);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bv-lb-btn:hover,
.bv-lb-btn:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.bv-lb-prev,
.bv-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.bv-lb-prev {
  left: 0.5rem;
}

.bv-lb-next {
  right: 0.5rem;
}

@media (max-width: 640px) {
  .bv-lb-stage {
    padding: 0 0.5rem;
  }

  .bv-lb-prev,
  .bv-lb-next {
    top: auto;
    bottom: 0.5rem;
    transform: none;
  }
}

body.bv-lb-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .bv-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .bv-gallery .sl-shot figcaption {
    min-height: 0;
    padding: 0.5rem 0.6rem 0.6rem;
    font-size: 0.74rem;
  }
}
