/* ==========================================================================
   Ensombro — folha de estilos
   Estrutura: base · layout · cabeçalho · menu · páginas · responsivo (≤760px)
   ========================================================================== */

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
}

a,
button {
  cursor: pointer;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  background: #000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color: #fff;
}

/* Elementos que aparecem com fade quando a página termina de carregar (ver script.js) */
[data-fade] {
  opacity: 0;
  transition: opacity 1s ease-in;
}

[data-fade].fade-in {
  opacity: 1;
}

/* ---------- Layout ---------- */
/* o cabeçalho é fixo e fica por cima do conteúdo */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.hero {
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}

.centro {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* ---------- Cabeçalho ---------- */
header.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  padding: 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.header-left {
  display: flex;
  align-items: center;
  height: 24px;
}

.nav-pc {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-pc a {
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.nav-pc a:hover {
  opacity: 0.6;
}

.menu-wrap {
  position: relative;
}

.menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.menu-btn span {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.menu-btn svg {
  width: 14px;
  height: 14px;
}

.menu-btn .icon-close {
  display: none;
}

.menu-wrap.open .menu-btn {
  z-index: 700; /* fica acima do painel aberto */
}

.menu-wrap.open .menu-btn .icon-menu,
.menu-wrap.open .menu-btn .icon-link {
  display: none;
}

.menu-wrap.open .menu-btn .icon-close {
  display: block;
}

/* evita animações de hover logo ao carregar a página */
body.loading .menu-btn {
  transition: none;
  pointer-events: none;
}

.header-icones {
  position: relative;
  top: -1px; /* alinha ao centro óptico do texto do menu */
  display: flex;
  align-items: center;
  gap: 26px;
  height: 24px;
  margin-left: auto;
}

.header-icones a {
  display: inline-flex;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-icones a:hover {
  opacity: 1;
  transform: scale(1.12);
}

.header-icones svg {
  width: 21px;
  height: 21px;
}

/* ---------- Painéis de menu (tela cheia) ---------- */
.menu-drop {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-wrap.open .menu-drop {
  opacity: 1;
  pointer-events: auto;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.menu a {
  display: inline-block;
  color: #fff;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

.menu a:hover {
  transform: translateX(8px);
}

/* ---------- Home ---------- */
.hero-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-home {
  display: block;
  width: min(80vw, 900px);
  height: auto;
  will-change: transform; /* a logo se inclina em direção ao mouse (inicio.js) */
}

/* ---------- Loja e páginas sem conteúdo ---------- */
.loja-texto {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1;
  text-align: justify;
  overflow-wrap: break-word;
}

/* ---------- Shows ---------- */
.shows-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.show-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
  border-bottom: 1px solid #fff;
}

.show-data {
  flex: 1;
  font-size: 0.9em;
  text-align: left;
}

/* o texto mais largo fica centralizado; o menor começa na mesma borda esquerda */
.show-local {
  flex: 2;
  display: grid;
  justify-content: center;
  text-align: left;
}

.show-local .cidade {
  font-size: 1em;
}

.show-local .lugar {
  font-size: 0.9em;
  color: #ccc;
}

.show-btn {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.show-btn a,
.show-btn span {
  min-width: 124px;
  padding: 8px 20px;
  border: 1px solid #fff;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  transition: 0.3s;
}

.show-btn a:hover {
  background: #fff;
  color: #000;
}

.show-btn.sold span {
  opacity: 0.5;
}

/* ---------- Integrantes ---------- */
.integrantes-centro {
  width: 100%;
}

.integrantes-bloco {
  width: fit-content;
  max-width: 94%;
}

.titulo-integrantes {
  margin-bottom: 0;
  line-height: 1;
  text-align: left;
}

.titulo-integrantes span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  padding: 12px; /* mesmo espaçamento das células da tabela */
  border: 1px solid #555;
  border-bottom: 0; /* a borda de cima da tabela faz a divisão */
  background: #222;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.titulo-integrantes span::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulsar-ponto 1.8s ease-in-out infinite;
}

@keyframes pulsar-ponto {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  50% { opacity: 0.35; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); }
}

.tabela-integrantes {
  width: auto;
  margin: 0 auto;
  border-collapse: collapse;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.tabela-integrantes th,
.tabela-integrantes td {
  padding: 12px;
  border: 1px solid #555;
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.tabela-integrantes th {
  background: #111;
  color: #d4d4d4;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.tabela-integrantes td {
  text-align: left;
}

.tabela-integrantes td:first-child {
  color: #fff;
}

.tabela-integrantes td.nao-anunciado {
  color: #a8a8a8;
}

.tabela-integrantes img {
  display: block;
  width: auto;
  height: 22px;
  margin: 0 auto;
}

.tabela-integrantes .papeis {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: max-content;
}

.tabela-integrantes .papeis img {
  margin: 0;
}

/* dica instantânea ao passar o mouse nos ícones (posição definida em integrantes.js) */
.tabela-integrantes .dica {
  position: relative;
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.tabela-integrantes .dica::after {
  content: attr(data-dica);
  display: none;
  position: fixed;
  left: calc(var(--x, 0px) + 16px);
  top: calc(var(--y, 0px) + 22px);
  z-index: 20;
  padding: 2px 8px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.tabela-integrantes .dica:hover::after {
  display: block;
}

/* ---------- Contato ---------- */
.contato-form {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.contato-tabela {
  border: 1px solid #555;
  background: #000;
}

.contato-linha {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #555;
  cursor: text;
}

.contato-rot {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  padding: 12px;
  border-right: 1px solid #555;
  background: #111;
  color: #d4d4d4;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.contato-linha input,
.contato-linha select,
.contato-linha textarea {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease;
}

.contato-linha select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.contato-linha select option {
  background: #000;
  color: #fff;
}

.contato-linha textarea {
  min-height: 130px;
  resize: none;
}

.contato-linha:focus-within .contato-rot {
  background: #222;
  color: #fff;
}

/* background-color (e não "background"), para não apagar a seta do select */
.contato-linha input:focus,
.contato-linha select:focus,
.contato-linha textarea:focus {
  background-color: #0c0c0c;
}

.contato-linha .erro {
  background-color: #1a0a0a;
}

.contato-linha:has(.erro) .contato-rot {
  color: #ff7a7a;
}

.contato-enviar {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 0;
  background: #222;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s ease;
}

.contato-enviar:hover {
  background: #333;
}

/* fora do fluxo, para a tabela ficar centralizada na tela */
.contato-aviso {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-height: 18px;
  margin: 12px 0 0;
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Discografia ---------- */
.discografia-centro {
  --capa: clamp(130px, 23vh, 200px);   /* tamanho da capa acompanha a altura da tela */
  --passo: calc(var(--capa) * 1.04);   /* distância entre os centros das capas */
  position: relative;
  top: 28px; /* um pouco abaixo do centro da tela */
  width: 100%;
  flex-direction: column;
  gap: 26px;
}

.carrossel-trilha {
  position: relative;
  width: calc(100% + 40px); /* vai até as bordas da tela */
  height: calc(var(--capa) + 30px);
  margin: 0 -20px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.carrossel-item {
  --o: 0;
  --escala: 1;
  position: absolute;
  top: 15px;
  left: 50%;
  width: var(--capa);
  transform: translateX(calc(-50% + var(--o) * var(--passo))) scale(var(--escala));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.carrossel-item[data-pos="-1"],
.carrossel-item[data-pos="1"] {
  --escala: 0.82;
  opacity: 0.8;
  pointer-events: auto;
  cursor: pointer;
}

.carrossel-item[data-pos="0"] {
  opacity: 1;
  z-index: 2;
}

.carrossel-item[data-pos="-1"] { --o: -1; }
.carrossel-item[data-pos="1"] { --o: 1; }
.carrossel-item[data-pos="oculto-esq"] { --o: -2; --escala: 0.7; }
.carrossel-item[data-pos="oculto-dir"] { --o: 2; --escala: 0.7; }

.capa {
  position: relative;
  width: 100%;
  height: var(--capa);
  border-radius: 8px;
  overflow: hidden;
  background: url('First_album.png') center / cover no-repeat, linear-gradient(135deg, #4a4a4a, #8a8a8a);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.45s ease;
}

.capa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 42%),
    linear-gradient(to top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.carrossel-item[data-pos="0"] .capa {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.carrossel-info {
  text-align: center;
}

.carrossel-info h3 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.carrossel-info p {
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.carrossel-controles {
  display: flex;
  align-items: center;
  gap: 18px;
}

.carrossel-pontos {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carrossel-ponto {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #555;
  transition: width 0.3s ease, background 0.3s ease;
}

.carrossel-ponto.ativo {
  width: 18px;
  background: #fff;
}

.carrossel-seta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  transition: opacity 0.25s ease;
}

.carrossel-seta:hover {
  opacity: 0.8;
}

.carrossel-seta svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Desktop (≥761px)
   ========================================================================== */
@media (min-width: 761px) {
  /* no PC existe só o botão LINKS, ao lado das abas, separado por uma linha */
  .wrap-menu {
    display: none;
  }

  .wrap-links {
    display: flex;
    align-items: center;
  }

  .wrap-links::before {
    content: "";
    flex: none;
    width: 1px;
    height: 16px;
    margin: 0 26px;
    background: #fff;
    opacity: 0.5;
  }
}

/* ==========================================================================
   Mobile (≤760px)
   ========================================================================== */
@media (max-width: 760px) {
  .hero {
    padding: 20px 10px;
  }

  .logo-home {
    width: 80vw;
  }

  header.header-bar {
    padding: 18px;
  }

  .header-left {
    gap: 16px;
  }

  .nav-pc {
    display: none;
  }

  .header-icones {
    gap: 14px;
  }

  .header-icones svg {
    width: 19px;
    height: 19px;
  }

  .menu a {
    font-size: 20px;
  }

  .menu {
    padding: 0 24px;
  }

  .loja-texto {
    padding: 0 10px;
    font-size: 13px;
  }

  .show-item {
    max-width: 90%;
    padding: 12px 0;
  }

  .show-data {
    font-size: 0.7em;
  }

  .show-local .cidade {
    font-size: 0.8em;
  }

  .show-local .lugar {
    font-size: 0.7em;
  }

  .show-btn a,
  .show-btn span {
    min-width: 93px;
    padding: 5px 12px;
    font-size: 0.65em;
  }

  .titulo-integrantes span {
    padding: 10px 12px;
    font-size: 10px;
  }

  .tabela-integrantes {
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }

  .tabela-integrantes th,
  .tabela-integrantes td {
    padding: 10px 8px;
    font-size: 11px;
  }

  .tabela-integrantes img {
    height: 18px;
  }

  .contato-form {
    max-width: 290px;
  }

  .contato-rot {
    flex-basis: 78px;
    padding: 9px 8px;
    font-size: 9.5px;
  }

  .contato-linha input,
  .contato-linha select,
  .contato-linha textarea {
    padding: 9px 8px;
    font-size: 11px;
  }

  .contato-linha select {
    padding-right: 30px;
    background-position: right 8px center;
  }

  .contato-linha textarea {
    min-height: 110px;
  }

  .contato-enviar {
    padding: 12px 8px;
    font-size: 12px;
  }

  /* discografia: mesmo visual do PC, menor (as três capas cabem na tela) */
  .discografia-centro {
    --capa: clamp(86px, 27vw, 130px);
    top: 20px;
    gap: 14px;
  }

  .carrossel-trilha {
    height: calc(var(--capa) + 24px);
  }

  .carrossel-item {
    top: 12px;
  }

  .capa {
    border-radius: 5px;
  }

  .carrossel-info h3 {
    font-size: 13px;
  }

  .carrossel-info p {
    font-size: 11.5px;
  }

  .carrossel-ponto {
    width: 5px;
    height: 5px;
  }

  .carrossel-ponto.ativo {
    width: 14px;
  }

  .carrossel-seta {
    width: 28px;
    height: 28px;
  }

  .carrossel-seta svg {
    width: 17px;
    height: 17px;
  }
}
