@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');


/* ========== ESTRUTURA GERAL ========== */

#blogPage{
    flex-direction: column;
}


/* ========== CABEÇALHO ========== */

#infoblogHeader{
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: center;
    align-items: center;

    width: 90vw;
    max-width: 2000px;

    font-size: clamp(1em, 6vw, 2.7em);

    margin: auto;
}


/* ========== LOGO ========== */

#logo{
    grid-column: 1;

    flex-direction: column;

    max-width: 200px;
    width: 50%;

    padding: 10px;
}

#infoblog{
    padding: 5px;
    transform: translateX(-30%);
}

#evolution{
    width: 60%;
}

#logoName{
    width: 100%;
}

#logoLamp{
    width: 20%;
}


/* ========== TÍTULOS ========== */

#INFO{
    font-family: 'Times New Roman', Times, serif;
    color: var(--blue2);
    font-weight: bold;
    font-style: italic;
}

#blog{
    font-family: "Niconne", cursive;
    font-weight: 400;
    font-style: italic;
    color: var(--red2);
}


/* ========== NAVEGAÇÃO DO BLOG ========== */

#blogNav{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    width: 1000px;
    max-width: 96%;
}

#blogNav button{
    display: flex;
    gap: 10px;

    padding: 0px 10px;

    color: white;
    font-weight: bold;

    background-color: var(--blue2);

    border: 2px solid var(--blue2);
    border-radius: 3px;
}

#blogNav button[aria-expanded="true"]{
    background-color: var(--blue3);
}


/* ========== FORMULÁRIO DE FILTRO ========== */

.filter-form{
    z-index: 100;
    position: absolute;
    flex-direction: column;
    align-items: flex-start;

    padding-top: 0;
    padding: 5px;

    color: white;
    background-color: var(--blue2);

    border: 2px solid white;
    outline: 2px solid var(--blue2);
    border-radius: 5px;
}

.filter-form fieldset{
    width: 100%;
    padding: 10px;
}

legend{
    font-weight: bold;
    padding: 0px 5px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--green1);
    color: red;
}

fieldset label{
    display: block;
    width: 100%;
    padding: 3px;
    padding-right: 30px;
    cursor: pointer;
}


/* ========== CAMPO DE PESQUISA ========== */

#searchField{
    justify-self: end;
    font-weight: bold;
    gap: 5px;
}

#searchInput{
    width: 100%;
    padding: 3px;

    border: 2px solid var(--blue2);
    border-radius: 4px;
}

#searchField button{
    padding: 3px;
}

#searchInputIco{
    display: none;
}


/* ========== OPÇÕES DE FILTRO ========== */

#Options{
    grid-row: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.5s ease, visibility 0.3s ease;
}

#Options.visible{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#btnArrow{
    transition: transform 0.5s ease;
}


/* ========== CONTEÚDO PRINCIPAL ========== */

main{
    margin-top: 5px;
}

mark{
    background-color: var(--green2);
    color: var(--font-green);
}

.empty{
    text-align: center;
    color: var(--red2);
}


/* ========== RESPONSIVIDADE ========== */

@media screen and (max-width: 600px){
    #infoblogHeader{
        width: 100vw;
        grid-template-columns: 35% 65%;
    }

    #logo{
        width: 100%;
    }

    #infoblog{
        transform: none;
        text-align: center;
    }

    #searchField button{
        padding: 0;
    }

    #searchInputIco{
        display: inline;
    }

    #searchInputText{
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    #blogNav button:hover,
    fieldset label:hover{
        background-color: var(--blue3);
    }
}
