@import url("./utils.css");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body, html{
    width: 100%;
    height: 100%;
}

body > header{
    width: 100%;
    height: 80px;
    transition: 0.5s;
}

header > nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding-left: 2.5rem;
    padding-right: 0;
    background-color: #b5722b;
    height: 100%;
    transition: 0.2s;
}

nav > a{
    font-size: 3.5rem;
    text-decoration: none;
    color: black;
    letter-spacing: 0.5rem;
}

.tooltip {
    display: none;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 3px;
    position: relative;
    top: 25%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 10;
    font-size: 14px;
    left: -12%;
    font-family: Arial, Helvetica, sans-serif;
}

.tooltip-body {
    display: none;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 14px;
    position: absolute;
    bottom: 28%;
    transform: translateY(-50%);
    font-family: Arial, Helvetica, sans-serif;
}

#home:hover + .tooltip {
    display: block;
}

#logo-tooltip:hover + .tooltip-body {
    display: block;
} 

div.nav-itens{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 2.5rem;
    transition: 0.2s;

}


div.nav-itens > button{
    display: flex;
    justify-content: right;
    margin-left: 2rem;
    align-items: center;
    flex-direction: column;
    background-color: #b5722b;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

nav i{
    display: none !important;
}


body > section {
    width: 100%;
    background-color: #b5722b;
    height: calc(100% - 80px);
}

section > article{
    height: 98%;
    width: 98%;
    margin: 0 auto;
    background-image: url("./../img/background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    

}

div.caixaTexto{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.721);
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 15%;
    padding-bottom: 5%;
    backdrop-filter: blur(6px);
}

div.caixaTexto > h1{
    font-size: 3rem;
    color: #e69138;
    font-weight: 700;
    font-family: Inter, sans-serif;
    max-width: 60%;
    margin-bottom: 100px;
}

div.caixaTexto > h1:last-of-type{
    font-size: 6rem;
    text-decoration: underline;
    letter-spacing: 1rem;
}

div.menuDropdown{
    display: none;
    position: absolute;
    top: 150%;
    left: transformX(0);
    width: 300px;
    background-color: #e69138;
    z-index: 1;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

button#podcast > div.menuDropdown{
    left: -200px;
}

div.menuDropdown > a{
    display: block;
    text-align: center;
    color: black;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
    padding: 0.5rem 0;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
}


/* 1. Define a largura da barra (Essencial para funcionar) */
div.menuDropdown::-webkit-scrollbar {
  width: 10px; /* Largura da barra vertical */
  height: 10px; /* Altura da barra horizontal (se houver) */
}

/* 2. O "trilho" por onde a barra corre */
/* div.menuDropdown::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px gray;
  border-radius: 10px;
  background: #f1f1f1; /* Cor de fundo opcional para o trilho 
}
/* 3. A "pega" ou "polegar" da barra */
div.menuDropdown::-webkit-scrollbar-thumb {
  background: #e69138;
  border-radius: 10px;
}

/* 4. Efeito ao passar o mouse (Substitui o transition que não funciona) */
div.menuDropdown::-webkit-scrollbar-thumb:hover {
  background: #e69138; /* Uma cor ligeiramente mais escura */
}

div.menuDropdown {
  /* Padrão W3C (Firefox) */
  scrollbar-width: thin; /* ou 'auto' */
  scrollbar-color: #e69138 #FFFFFF; /* cor-da-barra cor-do-trilho */
}


/* Mediaquery e hovers */

div.nav-itens > button:hover{
    color: white;
    
}

div.menuDropdown > a:hover{
    background-color: white;
}

nav.nav-mobile{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 1rem 2.5rem !important;

}

nav.nav-mobile > a#home{
    grid-column: 1;
    grid-row: 1;
}

nav.nav-mobile div.nav-itens{
    grid-column: span 2;
    grid-row: 2;
}

nav.nav-mobile i{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

header.header-mobile-clicou{
    height: 300px !important;
}

nav div.nav-itens > button.ativo{
    display: flex !important;
}

@media Screen and (max-width: 1414px){
    div.caixaTexto > h1{
        font-size: 2.5rem;
        color: #e69138;
        font-weight: 700;
        font-family: Inter, sans-serif;
        max-width: 60%;
        margin-bottom: 100px;
    }
    
}

@media Screen and (max-width: 1280px){
    div.caixaTexto > h1{
        font-size: 2.5rem;
        color: #e69138;
        font-weight: 700;
        font-family: Inter, sans-serif;
        max-width: 80%;
        margin-bottom: 100px;
    }
    
}

@media Screen and (max-width: 820px){
    div.caixaTexto > h1{
        font-size: 2rem;
        color: #e69138;
        font-weight: 700;
        font-family: Inter, sans-serif;
        max-width: 80%;
        margin-bottom: 100px;
    }

    nav {
        padding: 0.5rem 2.5rem !important;
    }

    nav > i{
        display: inline-block !important;
        font-size: 2rem;
        cursor: pointer;
        
    }

    nav div.nav-itens{
        flex-direction: column;
        align-items: end;
        padding: 0;
    }

    nav div.nav-itens > button{
        display: none;
        padding: 10px 0;
        border-bottom: 1px solid black;
        width: 100%;
        align-items: end;
    }

    nav div.nav-itens > button div.menuDropdown{
        top: 100% !important;
    }
    
    .tooltip {
        display: none;
    }

    nav.nav-mobile button#podcast > div.menuDropdown{
        left: inherit !important;
    }
    
}

@media Screen and (max-width: 500px){
    a#home{
        font-size: 2rem;
    }

    nav i{
        font-size: 1.5rem;
    }

    div.caixaTexto > h1{
        font-size: 1.5rem;
        width: 95% !important;
    }

    article .caixaTexto > h1:last-of-type{
        font-size: 3rem;
    }

    .tooltip {
        display: none;
    }
}