@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg-page: #02021C;
    --bg-menu: linear-gradient(40deg, #311E6D, #C17AE4);
    --font-color: #C1B3D6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

div, img {
  -webkit-tap-highlight-color: transparent;
}



body {
    background-color: var(--bg-page);
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #ffffff;
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden; /* Previne rolagem horizontal no desktop */
}

img {
    max-width: 100%; /* Boa prática para responsividade */
    height: auto;
}

/* Logo específico no header */
img.logo-ecos {
    width: 100%;
    max-width: 300px;
}


header {
    width: 35vw;
    max-width: 500px;
    height: 100vh;
    /* border: #C17AE4 solid 1px; */
    background: linear-gradient(96deg, #311E6D 00%, #C17AE4 110%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 75px;
}

section {
    width: 65vw;
    height: 100vh;
    padding: 70px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: auto; /* Mantém a rolagem interna SÓ da seção */
}

/* --- Estilização da barra de rolagem da seção --- */
section::-webkit-scrollbar {
    width: 8px;
}

section::-webkit-scrollbar-track {
    background: #0c081c;
    border-radius: 10px;
}

section::-webkit-scrollbar-thumb {
    background-color: #5a4b7d;
    border-radius: 10px;
}

section::-webkit-scrollbar-thumb:hover {
    background-color: #A96BD0;
}

section {
    scrollbar-width: thin;
    scrollbar-color: #5a4b7d #0c081c;
}


section.catalogo {
    display: flex;
}

section.sobre {
    display: none;
}

section.mapa {
    display: none;
}

section.inscricao {
    display: none;
}

section.sobre h3,
section.inscricao h3 {
    margin-top: 50px;
    font-size: 35px;
}

section.sobre .texto-sobre {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section.sobre .texto-sobre p {
    font-size: 18px;
    line-height: 29px;
    font-weight: 300;
    color: var(--font-color);
}

section.inscricao .texto p {
    font-size: 18px;
    line-height: 29px;
    font-weight: 300;
    color: var(--font-color);
    margin-bottom: 10px;
    width: 80%;
}

section.inscricao .texto p:last-of-type {
    margin-bottom: 25px;
}



section.inscricao .texto a {
    padding: 6px 22px;
    background-color: #bd9ecd;
    color: var(--bg-page);
    text-decoration: none;
    border-radius: 6px;
    margin-top: 30px;
    font-weight: 600;
    transition: background-color 0.3s; /* Adiciona transição */
    line-height: 38px;
}

section.inscricao .texto a:hover {
    background-color: #ffffff;
}


h2 {
    font-size: 19px;
    font-weight: 400;
    color: var(--font-color);
}

div.line {
    border-top: 1px solid #9f62bd;
    margin: 50px 0;
}

div.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 70px;
}

div.menu div.btn {
    text-transform: uppercase;
    cursor: pointer;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 200;
    font-size: 18px;
    transition: all 0.2s;
}


div.menu div.btn.active {
    background-color: #A96BD0;
    font-weight: 500;
}

div.menu div.btn:hover {
    background-color: #A96BD0;
}

.logos p {
    font-style: italic;
    color: var(--font-color);
    font-size: 14px;
}

.logos img {
    width: 100%;
    max-width: 380px;
}

h3 {
    font-size: 26px;
}

div.container-grupos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    margin-top: 5px;
    position: relative; /* Essencial para posicionar as setas */
}

div.container-grupos.grafite {
    border-top: 1px solid #40365f;
}


/* --- Carrossel horizontal --- */
div.container-grupos .lista {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Impede que os itens quebrem para a linha de baixo */
    gap: 18px;
    overflow-x: auto; /* Adiciona a rolagem horizontal */
    padding-bottom: 40px; /* Espaço para a barra de rolagem não ficar colada */
    scroll-behavior: smooth; /* Para a rolagem ser suave */
    border-bottom: 1px solid #4c2a62;
}


/* Esconde a barra de rolagem do carrossel */
div.container-grupos .lista::-webkit-scrollbar {
    display: none;
}

/* Para Firefox */
div.container-grupos .lista {
    scrollbar-width: none;
}


div.chapeu {
    padding: 5px 25px;
    background-color: #A96BD0;
    width: fit-content;
    text-transform: uppercase;
    border-radius: 15px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Card do artista */
div.lista .artista {
  position: relative;
  width: 220px; /* Largura fixa */
  height: 150px; /* Altura fixa */
  flex-shrink: 0; /* Impede que o item encolha */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

div.lista .artista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

div.lista .artista:hover img {
  transform: scale(1.08);
}

/* Degradê preto suave na parte inferior */
div.lista .artista::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  pointer-events: none;
}

/* Nome sobreposto à imagem */
div.lista .artista .nome {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* --- Estilos das Setas de Navegação --- */
.scroll-arrow {
    position: absolute;
    top: 56%; /* Centraliza um pouco abaixo do meio, para não cobrir o chapéu */
    transform: translateY(-50%);
    background-color: rgba(49, 30, 109, 0.7); /* Cor do tema com transparência */
    color: #C1B3D6;
    border: 1px solid #C1B3D6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex; /* Usar flex para centralizar o ícone */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    user-select: none; /* Impede que o texto da seta seja selecionado */
    
    /* Começam escondidas até o JS adicionar a classe 'has-overflow' */
    display: none; 
}

/* O JS adiciona 'has-overflow' no container-grupos se a rolagem for necessária */
.container-grupos.has-overflow .scroll-arrow {
    display: flex;
}

.scroll-arrow:hover {
    background-color: rgba(193, 122, 228, 0.7); /* Cor mais clara no hover */
    color: #fff;
    border-color: #fff;
}

.scroll-arrow.left {
    left: -22px; /* Posição da seta esquerda */
}

.scroll-arrow.right {
    right: -22px; /* Posição da seta direita */
}

/* --- Estilos do Popup --- */
div.popup {
    position: fixed; /* Mudei para fixed para cobrir a tela inteira, mesmo com rolagem */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000cc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}



div.popup .container {
    width: 800px;
    height: 550px;
    background-color: var(--bg-page);
    padding: 60px 60px 60px 50px;
    border-radius: 25px;
    border: 3.5px solid #C1B3D6;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    position: relative; /* Contexto para o botão fechar */
}

div.popup .container .btn-close {
    position: absolute; /* Relativo ao .container */
    width: 30px;
    height: 30px;
    background-color: #C1B3D6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 22px; /* Padding menor */
    font-weight: 600;
    color: var(--bg-page);
    border-radius: 50%;
    cursor: pointer;
    right: 20px; /* Posição mais simples */
    top: 20px; /* Posição mais simples */
    z-index: 110;
    transition: all 0.3s;
}

div.popup .container .btn-close:hover {
    background-color: #ab9dc0;
    /* transform: rotate(90deg); */
}

div.popup .container .imagem {
    width: 45%;
    /* left: -29px; */
    position: relative;
}


div.popup .container .infos {
    width: 55%;
    padding-left: 20px;
}


div.popup .container .imagem .container-foto {
    position: relative;
    width: 288px;
    height: 417px;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 10px;

}

div.popup .container .imagem .container-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

div.popup p.credito {
    font-size: 12px;
    color: var(--font-color);
    margin-left: 13px;
    opacity: 0.6;
}

div.popup div.chapeu {
    font-size: 13px;
}

div.popup p.nome{
    font-size: 35px;
    font-weight: 500;
}

div.popup p.bairro {
    font-size: 16px;
    font-weight: 500;
    color: #736c85;
}

div.popup .biografia {
    margin: 20px 0;
    height: 240px;
    padding-right: 15px;
    overflow: auto;
}

div.popup .biografia::-webkit-scrollbar {
    width: 8px;
}

div.popup .biografia::-webkit-scrollbar-track {
    background: #000; /* fundo da área da barra */
    border-radius: 10px;
}

div.popup .biografia::-webkit-scrollbar-thumb {
    background-color: #bd9ecd; /* rosa */
    border-radius: 10px;
}

/* Para Firefox */
div.popup .biografia {
    scrollbar-width: thin;
    scrollbar-color: #bd9ecd #35263c;
}

div.popup .biografia p {
    font-size: 15px;
    line-height: 23px;
    font-weight: 300;
    color: var(--font-color);
    margin-bottom: 12px;
}

div.redes-sociais {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 33px;
}

div.redes-sociais a {
    font-style: normal;
    color: #FFFFFF;
    text-decoration: none;
}

div.redes-sociais p {
    padding: 5px 16px;
    background-color: #9f62bd;
    width: fit-content;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

div.redes-sociais p:hover {
    opacity: 0.8;
}

div.redes-sociais p.instagram {
    background-color: #CB3C8A;
}

div.redes-sociais p.spotify {
    background-color: #24D15F;
    color: #02021C;
}

.logos-mobile {
    background: linear-gradient(96deg, #311E6D 00%, #C17AE4 110%);
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}


.logos-mobile p {
    font-style: italic;
    color: var(--font-color);
    font-size: 14px;
}

.logos-mobile img {
    width: 100%;
    max-width: 380px;
}


/* --- INÍCIO: Media Queries para Responsividade --- */

@media (max-width: 900px) {

    /* 1. Layout Principal */
    body {
        flex-direction: column; /* Empilha header e section */
        height: auto; /* Permite que o conteúdo cresça */
        overflow-x: hidden; /* Evita rolagem horizontal */
    }

    header {
        width: 100vw; /* Ocupa toda a largura */
        max-width: none; /* Remove o limite */
        height: auto; /* Altura automática */
        padding: 30px 20px 0px 10px; /* Reduz o padding */
        position: relative; /* Para contexto de posicionamento, se necessário */
        background: linear-gradient(62deg, #311E6D 00%, #C17AE4 110%);
    }


    section {
        width: 100vw; /* Ocupa toda a largura */
        height: auto; /* Altura automática */
        min-height: 50vh; /* Garante uma altura mínima */
        padding: 40px 20px 40px 20px; /* Reduz o padding */
        overflow: visible; /* Remove a rolagem interna da seção */
    }

    section.sobre,
    section.inscricao,
    section.mapa {

         padding: 40px 40px 40px 30px;

    }

    section.inscricao .texto a {
        padding: 6px 10px;
        font-size: 15px;
    }

    .logos-mobile {
        display: flex;
    }

    /* 2. Menu do Header */
    header .container {
        align-items: center; /* Centraliza itens do header */
        display: flex;
        flex-direction: column;
    }

    img.logo-ecos {
        width: 55%;
        max-width: 300px;
    }

    h2 {
        font-size: 14px;
        text-align: center;
        max-width: 70%;
    }

    div.line {
        margin: 30px 0;
        width: 80%;
    }
    
    div.menu {
        flex-direction: row; /* Menu horizontal */
        flex-wrap: wrap; /* Permite quebrar a linha */
        justify-content: center; /* Centraliza os botões */
        gap: 6px; /* Espaçamento menor */
        margin-bottom: 30px; /* Reduz margem inferior */
        max-width: 100%;
    }

    div.menu div.btn {
        font-size: 12px;
        padding: 4px 6px;
    }

    .logos {
        display: none;
        flex-direction: column;
        align-items: center; /* Centraliza logos */
    }

    body > header > div > div:nth-child(5) {
        display: none;
    }

    /* 3. Conteúdo das Seções */
    section.sobre h3,
    section.inscricao h3,
    section.mapa h3,
    section.catalogo h3 {
        margin-top: 0; /* Remove margem extra */
        font-size: 28px; /* Reduz fonte do título da seção */
        text-align: center;
    }

    section.sobre .texto-sobre,
    section.inscricao .texto {
        max-width: 100%;
        width: 100%;
    }
    
    section.inscricao .texto p {
         width: 100%; /* Ocupa toda a largura */
         font-size: 16px;
         line-height: 26px;
    }

    section.sobre .texto-sobre p {
        font-size: 16px;
        line-height: 26px;
    }

    /* 4. Carrossel do Catálogo */
    div.container-grupos .lista {
        /* padding-left: 5px; */
        padding-right: 5px;
    }

    .scroll-arrow.left {
        left: 5px; /* Move seta para dentro */
        display: none;
    }

    .scroll-arrow.right {
        right: 5px; /* Move seta para dentro */
        display: none;
    }

    .container-grupos.has-overflow .scroll-arrow {
        display: none;
    }

    /* Reduz um pouco o tamanho dos cards */
    div.lista .artista {
        width: 143px;
        height: 215px;
    }

    div.lista .artista .nome {
        font-size: 15px;
    }

    /* 5. Popup Responsivo */
    div.popup .container {
        flex-direction: column; /* Empilha imagem e infos */
        width: 90vw;
        max-width: 450px;
        height: auto; /* Altura automática */
        max-height: 90vh; /* Limite de altura */
        padding: 40px 20px 20px 20px;
        overflow-y: auto; /* Permite rolagem *dentro* do popup */
        position: relative; /* Contexto para o botão de fechar */
    }

    /* Botão de fechar */
    div.popup .container .btn-close {
        /* Posição mais robusta */
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        padding: 0; /* Remove padding antigo */
    }

    /* Seção da Imagem no Popup */
    div.popup .container .imagem {
        width: 100%;
        left: 0; /* Reseta posicionamento */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza a imagem */
    }

    div.popup .container .imagem .container-foto {
        width: 95%;
        height: 230px;
    }

    div.popup p.credito {
        text-align: center; /* Centraliza crédito */
        margin-left: 0;
    }

    /* Seção de Informações no Popup */
    div.popup .container .infos {
        width: 100%;
        padding-left: 0; /* Reseta padding */
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza conteúdo */
    }
    
    div.popup div.chapeu {
        margin: 0 auto; /* Centraliza o chapéu */
    }

    div.popup p.nome {
        font-size: 26px;
        text-align: center;
        padding: 8px 0px 0px 0px;
    }

    div.popup p.bairro {
        text-align: center;
        font-size: 14px;
    }

    div.popup .biografia {
        height: 180px; /* Reduz altura */
        padding-right: 5px;
    }
    
    div.popup .biografia p {
        font-size: 14px;
        line-height: 21px;
    }

    div.redes-sociais {
        justify-content: center; /* Centraliza redes */
        margin-top: 20px;
    }

}
