/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Roboto';
    background-color: var(--fundo);
    color: var(--texto);
}

/* VARIÁVEIS DE COR */
:root {
    --laranja: #f39c26;
    --laranja-claro: #f6a741;
    --laranja-escuro:rgb(215, 87, 2);
    --cinza: #49494a;
    --cinza-claro: #989898;
    --cinza-escuro: #212121;
    --azul-escuro: #010067;
    --azul-claro: #2563eb;
    --vermelho: #ff000c;
    --texto: #575757;
    --texto-form: #94a3b8;
    --branco: #ffffff;
    --fundo: #f5f7fa;
    --amarelo: #facc15;
    --verde: rgb(34, 197, 94);
}

.cor-laranja{color: var(--laranja)}
.cor-laranja-claro{color: var(--laranja-claro)}
.cor-laranja-escuro{color: var(--laranja-escuro)}
.cor-cinza{color: var(--cinza)}
.cor-cinza-claro{color:var(--cinza-claro)}
.cor-cinza-escuro{color: var(--cinza-escuro)}
.cor-azul-escuro{color: var(--azul-escuro)}
.cor-azul-claro{color: var(--azul-claro)}
.cor-vermelho{color: var(--vermelho)}
.cor-texto{color: var(--texto)}
.cor-texto-form{color: var(--texto-form)}
.cor-branco{color: var(--branco)}
.cor-fundo{color: var(--fundo)}
.cor-amarelo{color: var(--amarelo)}
.cor-verde{color: var(--verde)}
.transparente{opacity: 0.6;}

.font-fina{font-weight: 100}
.font-media{font-weight: 500}
.font-grossa{font-weight: 900}
.italico{font-style: italic !important;}
.caixa-alta{text-transform: uppercase;}

.icone-giga, .texto-giga{font-size: 1.6rem !important;}
.icone-grande, .texto-grande{font-size: 1.4rem !important;}
.icone-medio, .texto-medio{font-size: 1rem !important;}
.icone-pequeno, .texto-pequeno{font-size: 0.875 !important;}

.sombra-texto{text-shadow: 2px 2px 8px rgba(0,0,0,0.6);}
.sombra-box{box-shadow: 0 20px 50px -12px #bebebe, 0 8px 10px -6px #bebebe;}

.borda-verde{border-color: var(--verde);}

.hidden {display: none !important;}
.relative{position: relative;}


/* Botão Hamburger - escondido por padrão em telas grandes */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001; /* Para ficar acima do menu flutuante */
}

/* HEADER */
.header {
    background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);
    color: #ffffff;
    text-align: center;
    padding: 0 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo img{
    height: 120px;
}

nav{
    color:#ffffff;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;

        a {padding: 0 20px;}
        a:hover{ color:var(--azul-escuro)}
}

.sociais{
    display: flex;
    gap: 20px;

    a:hover{color:red;}
}

.hero {
    width: 100%;
    max-height: 500px;
    aspect-ratio: 3 / 1; /* mantém proporção 1500x500 */
    background-color: var(--azul-escuro);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;

    margin: 0 auto; /* centraliza horizontalmente */

    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
}

/* IMAGENS DO HERO */
.hero-image {
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.hero-left {
    left: 0;
}

.hero-right {
    right: 0;
}

.hero-image img {
    max-height: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-txt{
    color: white;
    z-index: 1;
    position: relative;
    line-height: normal;
    text-align: center;
}

.sombra-texto{
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.sombra-box{
    box-shadow: 0 20px 50px -12px #bebebe,
               0 8px 10px -6px #bebebe;
}

.hero h1 {
    font-family: 'League Spartan';
    font-size: 4em;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;

    span{color: #f6a741;}
}

.hero h2 {
    font-family: 'Outfit';
    font-size: 1.2em;
    font-weight: 100;
}

main{
    padding: 4rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

.main-grid{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap:3rem;
    margin-bottom: 5rem;
}

.titulos{
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
    font-weight: 700;
}

.lista{
    line-height: 2.2rem;
}

.icone-list{
    font-size: 20px;
    margin-right: 10px;
}

.legenda{
    background-color:rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    font-style: italic;
    line-height: 1.25rem;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 200;
}

.comunidade {
    font-family: 'Roboto';
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    line-height: 1.625;

    h2{
    font-size: 1.9rem;
    text-transform: uppercase;
    font-style: italic;}

    p{
        color:#475569;
        font-size: 18px;
        margin-top: 24px;    
    }
}

.regras{
    color: var(--branco);
    background-color: var(--azul-claro);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 0;
    padding: 2.2rem;
    border-radius: 1.5rem;

    h2{
    font-size: 1.4rem;
    text-transform: uppercase;
    font-style: italic;}
}

.interacao{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

.top5{
    background-color: #0f172a;
    width: 32%;
    padding: 2rem;
    border-radius: 2.5rem;

    h3{
    font-size: 1.5rem;
    line-height: 2rem;
    font-style: italic;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 0.5rem;
    }
}
.form-voto{
    background-color: white;
    padding: 3rem;
    border-radius: 2.5rem;
    flex-grow: 1;

    h3{
        font-style: italic;
        text-transform: uppercase;
        font-weight: 900;
        font-size: 2.25rem;
        line-height: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

#tit-form{
    margin-bottom: 2.5rem;
}

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

.form-label{
    letter-spacing: 0.1em;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-left: 0.5rem;
    color: var(--texto-form);
}

.form-field{
    margin-top: 0.5rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    width: 100%;

    &:focus{
        outline: 1px solid #2563eb;
        outline-offset: -2px;
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
        box-shadow: 0 2px 5px -3px #bebebe, 0 1px 3px -2px #bebebe;
    }
}

.col-2{
    grid-column: span 2;
}


.form-button{
    width: 100%;
    height: 4.5rem;
    background-color: var(--azul-claro); /*rgba(29 78 216 1);*/
    color: white;
    border: 0;
    border-radius: 1rem;
    padding-top: 1.25rem 0;
    font-size: 1.2em;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;

    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;

    box-shadow: 0 20px 25px -5px #bebebe, 8px 10px -6px #bebebe;

    &:hover{
        background-color: rgb(29 78 216);
    }
}

.spotify-flutuante{    
    position: absolute;    
    width: 100%;    
    max-height: 15rem;
    margin-top: 0.25rem;    
    z-index: 10;
    background-color: white;
    color: black;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    overflow-y: auto;

    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
    
.spotify-linha{    
    display: flex;
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: center;
    border-bottom-width: 1px;
    border: 1px solid rgb(229 231 235);
    cursor: pointer;

    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;

    :hover{background-color: rgb(243 244 246);}
}

.capa-album{
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    max-width: 100%;
    border-radius: 0.25rem;
    cursor: pointer;
}

.track{
    flex: 1 1 0%;
    min-width: 0px;
}

.song{
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
   
    font-weight: bolder;
}

.band{
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    
}

.spotify-mensagem{
    padding: 0.75rem;
    font-size: 0.87rem;
    font-weight: 500;
    text-align: center;
}

footer{
    color: #fff;
    background-color: var(--laranja);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

footer > div{
    max-width: 80rem;
    padding: 0 1rem;
    margin: 0 auto;

}

.dados{  
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 4rem;
    border-bottom-width: 1px;
    border-color: rgba(255,255,255,0.05);
    gap:4rem;
}

.dados > div:nth-child(1){ /*coluna 1*/
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dados div img{
    height: 1.5em;
}

.dados p{
    color:var(--texto);
    line-height: 1.625;
}

.dados a, .dados h4{
    color: var(--laranja-escuro);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 2rem;
}

.professor{
    font-size: 1.4rem !important;
    font-style: italic;
    margin-bottom: 0.875rem !important;
}

.contato a{
    display: inline-block;
    color: var(--laranja-escuro);
    text-transform: none;
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-style: italic;
}

footer .assinatura{
    color: var(--cinza);
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
}



@media (max-width: 768px) {

    /* HEADER - Layout para Mobile */
    .header {
        flex-direction: row; /* Volta a ser linha */
        justify-content: space-between; /* Espaça os itens */
        align-items: center;
        padding: 10px 20px; /* Menos padding vertical */
        gap: 15px;
        position: relative; /* Necessário para o menu flutuante */
    }

    /* Botão Hamburger */
    .hamburger {
        display: block; /* Mostra o botão no mobile */
        order: 1; /* Coloca na esquerda */
    }

    /* Logo */
    .logo {
        order: 2; /* Coloca no meio */
    }

    .logo img {
        height: 60px; /* Um pouco menor no mobile */
    }

    /* Ícones Sociais */
    .sociais {
        order: 3; /* Coloca na direita */
        justify-content: flex-end; /* Alinha à direita */
        gap: 12px; /* Menos espaço entre ícones */
    }

    /* Menu de Navegação */
    nav#main-nav {
        display: none; /* Esconde o menu por padrão */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Começa logo abaixo do header */
        left: 0;
        width: 100%;
        background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
        gap: 15px;
        text-align: center;
    }

    /* Classe para mostrar o menu */
    nav#main-nav.is-open {
        display: flex;
    }

    nav#main-nav a {
        padding: 10px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* HERO - Ajustar tamanhos de texto */
    .hero {
        width: 100%;
        aspect-ratio: 16 / 9; /* melhor proporção no celular */
        background-position: right center; /* 🔥 AQUI ESTÁ A MÁGICA */
        padding: 15px;
    }

    /* Faz a imagem do telefone preencher toda a altura e cortar na direita */
    .hero-right {
        height: 100%;
        width: auto; /* Liberado: a largura se adapta sozinha à altura */
    }

    .hero-right img {
        width: auto;
        height: 100%;
        max-width: none; /* Impede que o navegador tente espremer a imagem */
    }

    /* Diminuir ícones em geral no mobile */
    .icone-grande {
        font-size: 1.1rem !important;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero h2 {
        font-size: 1rem;
    }

    /* GRIDS PRINCIPAIS - Transformar tudo em 1 coluna */
    .main-grid,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .col-2 {
        grid-column: span 1; /* Campos que ocupavam a tela toda no form agora se comportam normalmente */
    }

    /* ÁREA DE INTERAÇÃO E FORMULÁRIO - Empilhar um sobre o outro */
    .interacao {
        flex-direction: column;
    }

    .top5 {
        width: 100%;
        padding: 1.5rem;
    }

    .form-voto {
        padding: 1.5rem;
    }

    /* FOOTER - Empilhar colunas e centralizar textos */
    .dados {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .dados > div:nth-child(1) {
        align-items: center;
    }

}