/* Estilos da galeria SQLVS (sqlvs/index.html) */

/* Título "Senta Que Lá Vem Som" — texto corrido (não SVG com viewBox fixo
   como BLOG/RESUME/SQLVS-botão), porque é uma frase longa: clamp() deixa
   ele encolher e quebrar linha sozinho no mobile, sem precisar recalcular
   viewBox/font-size manualmente por breakpoint. */
.sqlvs-title {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.1rem, 4.5vw, 2rem);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--hero-color);
  text-shadow: 0 0 8px var(--hero-shadow), 0 0 18px var(--hero-shadow);
  margin-bottom: 2rem;
}

.sqlvs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  justify-content: center;
  gap: 28px;
  padding-top: 8px;
}

.show-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid #2a2a2a;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.show-card::before,
.show-card::after {
  content: "+";
  position: absolute;
  font-family: monospace;
  font-size: 10px;
  font-weight: 900;
  color: #444;
  z-index: 5;
  transition: color 0.3s ease;
  pointer-events: none;
}

.show-card::before {
  top: 5px;
  left: 6px;
}

.show-card::after {
  top: 5px;
  right: 6px;
}

.show-card:hover,
.show-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--hero-color);
  box-shadow: 0 0 20px var(--hero-shadow);
}

.show-card:hover::before,
.show-card:hover::after {
  color: var(--hero-color);
}

/* "Monitor" montado no rack — janela fixa (280x373, proporção ~3:4) que
   recorta um preview ao vivo do artifact real via iframe escalado. Cada
   show usa uma paleta CSS própria (--accent, --neon, --cyan... nomes
   diferentes por artifact), então renderizar o HTML de verdade num iframe
   evita ter que extrair essas variáveis não padronizadas uma a uma. */
.show-screen {
  width: 280px;
  height: 373px;
  overflow: hidden;
  position: relative;
  background: #000;
  border-bottom: 1px solid #2a2a2a;
}

.show-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 840px;
  height: 1119px;
  border: 0;
  pointer-events: none;
  transform: scale(0.3333);
  transform-origin: top left;
}

/* Vinheta + scanline sutil por cima do preview, pra reforçar a leitura de
   "tela" e disfarçar o corte abrupto do iframe escalado */
.show-screen-glare {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.show-card:hover .show-screen-glare {
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.5) 100%);
}

.show-plate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-family: "Space Mono", monospace;
}

.show-plate .led-dot {
  flex-shrink: 0;
}

.show-plate-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.show-band {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.show-card:hover .show-band {
  color: var(--hero-color);
  text-shadow: 0 0 8px var(--hero-shadow);
}

.show-date {
  font-size: 0.65rem;
  color: #666;
  letter-spacing: 1px;
}

.show-open-hint {
  margin-left: auto;
  font-size: 0.65rem;
  color: #444;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.show-card:hover .show-open-hint {
  opacity: 1;
  transform: translateX(0);
  color: var(--hero-color);
}

.sqlvs-empty {
  color: #666;
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

/* ========================================= */
/* TUNER (dial ano/mês, estilo rádio antigo) */
/* ========================================= */
.sqlvs-tuner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}

.tuner-year-display {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tuner-year-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #2a2a2a;
  color: #999;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

a.tuner-year-nav:hover {
  border-color: var(--hero-color);
  color: var(--hero-color);
  background: color-mix(in srgb, var(--hero-color) 8%, transparent);
  box-shadow: 0 0 15px var(--hero-shadow);
}

.tuner-year-nav.is-disabled {
  color: #333;
  border-color: #1c1c1c;
  cursor: not-allowed;
}

.tuner-year-lcd {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 6px;
  color: var(--hero-color);
  text-shadow: 0 0 10px var(--hero-shadow);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #2a2a2a;
  padding: 6px 20px;
  min-width: 140px;
  text-align: center;
}

.tuner-months {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tuner-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 54px;
  padding: 8px 4px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.02);
  color: #999;
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

a.tuner-preset:hover {
  border-color: var(--hero-color);
  color: var(--hero-color);
  background: color-mix(in srgb, var(--hero-color) 8%, transparent);
  box-shadow: 0 0 12px var(--hero-shadow);
}

.tuner-preset.is-current {
  border-color: var(--hero-color);
  color: var(--hero-color);
  background: color-mix(in srgb, var(--hero-color) 12%, transparent);
  box-shadow: 0 0 15px var(--hero-shadow);
}

.tuner-preset.is-empty {
  color: #444;
  border-color: #1c1c1c;
  cursor: not-allowed;
  opacity: 0.6;
}

.tuner-preset-count {
  font-size: 0.6rem;
  opacity: 0.7;
}

.sqlvs-month-heading {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ========================================= */
/* PAGINAÇÃO (15 shows por página/mês)      */
/* ========================================= */
.sqlvs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: "Space Mono", monospace;
}

.page-nav {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #999;
  text-decoration: none;
  transition: all 0.25s ease;
}

a.page-nav:hover {
  color: var(--hero-color);
  text-shadow: 0 0 8px var(--hero-shadow);
}

.page-nav.is-disabled {
  color: #444;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 6px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #2a2a2a;
  color: #999;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.25s ease;
}

a.page-link:hover {
  border-color: var(--hero-color);
  color: var(--hero-color);
}

.page-link.is-current {
  border-color: var(--hero-color);
  color: var(--hero-color);
  background: color-mix(in srgb, var(--hero-color) 12%, transparent);
  box-shadow: 0 0 10px var(--hero-shadow);
}

@media (max-width: 767px) {
  .sqlvs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .show-screen,
  .show-screen iframe {
    width: 100%;
  }

  .show-screen {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .show-screen iframe {
    width: 300%;
    height: 300%;
    transform: scale(0.3333);
  }

  .tuner-year-lcd {
    font-size: 1.2rem;
    letter-spacing: 4px;
    min-width: 100px;
  }

  .tuner-preset {
    width: 46px;
    padding: 6px 2px;
  }
}
