:root {
    --azul: #000587;
    --laranja: #FF6734;
    --amarelo: #FFD94D;
    --verde: #19A22E;
    --cabeçalho: "Playfair Display", serif;
    --paragrafo: "HelveticaNeue-Light", Helvetica, Arial, sans-serif;
    --avenir: 'Avenir', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--paragrafo);
}


body:has(.ul-nav.active) {
    overflow: hidden;
}

/* ===== CLASSES DE CONTROLE RESPONSIVO ===== */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 1200px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* ===== HEADER ===== */
header {
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: fixed;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section {
    display: flex;
    height: 100%;
    align-items: center;
}

#leftSection {
    padding-left: 30px;
}

#logo {
    width: 200px;
    height: 100px;
    object-fit: contain;
    outline: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#logo:focus {
    outline: none;
    border-color: transparent;
}

#centerSection {
    flex-grow: 1;
    justify-content: center;
}

/* ===== NAVEGAÇÃO DESKTOP ===== */
.ul-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.li-nav {
    position: relative;
    width: 150px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.li-nav:hover {
    border-bottom: 2px solid black;
}

.li-nav.active {
    border-bottom: 2px solid black;
}

.li-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
    font-family: var(--paragrafo);
    font-size: 17px;
    font-weight: 400;
    height: 100%;
    padding: 10px 0;
}

/* ===== SELECT DE IDIOMA ===== */
select {
    background-color: #fff;
    color: var(--azul);
    font-size: 1rem;
    font-family: var(--avenir);
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

select:hover {
    background-color: #f5f5f5;
}

/* ===== MENU MOBILE ===== */
#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 20px;
    z-index: 100;
    color: var(--azul);
}

/* ===== RIGHT SECTION (IDIOMA DESKTOP) ===== */
#rightSection {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-right: 30px;
}
/* ===== BARRA DE PESQUISA ===== */
form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 30px 0;
}

.searchBar {
    height: 40px;
    width: 100%;
    border-radius: 20px;
    border: none;
    padding: 0 40px 0 20px;
    font-size: 18px;
    font-family: var(--avenir);
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.searchBar::placeholder {
    color: #666;
    font-family: var(--avenir);
}

.searchBar:focus {
    outline: none;
    background-color: #e0e0e0;
    box-shadow: 0 0 0 2px rgba(0,5,135,0.2);
}

.searchButton {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.searchButton:hover {
    color: var(--azul);
}

.searchButton i {
    font-size: 18px;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 100px;
    flex: 1;
}

/* ===== FILTROS ===== */
.filtro {
    width: 25%;
    padding: 30px;
    box-sizing: border-box;
    display: block !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#filtro {
    background-color: #f5ca82;
    border-radius: 15px;
    padding: 20px;
}

#filtro button {
    background-color: #ffffff;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    font-family: var(--avenir);
}

.botao.ativo {
    background-color: #28a745 !important;
    color: white;
}

.titulo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: var(--avenir);
    font-size: 18px;
    margin: 10px;
}

.titulo i {
    cursor: pointer;
}

#olimpiadas {
    width: 75%;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding: 0 70px 0 30px;
    box-sizing: border-box;
}

.imagem {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px;
    position: relative;
    transition: transform 0.3s ease;
}

.imagem.preencher img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.imagem.manter img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.imagem:hover, .imagem:focus, .imagem:active {
    transform: scale(1.1);
}

.tipo {
    margin-bottom: 10px;
    font-size: 20px;
}

a {
    text-decoration: none;
    color: white;
}

.card a {
    text-decoration: none;
    color: white;
    height: 45px;
    width: 160px;
    border-radius: 20px;
    background-color: rgb(33, 33, 110);
    border: none;
    outline: none;
    padding: 5px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    box-sizing: border-box; 
}

.card a:hover {
    background-color: white;
    border: 1px solid rgb(33, 33, 110);
    color: black;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: white;
    margin: 20px;
    border-radius: 20px;
}

/* Cores para os status */
.status-icon {
    font-size: 1.2rem;
}

.status-icon[data-status="Em breve"] {
    color: #FFC107;
}

.status-icon[data-status="Aberto"] {
    color: #28A745;
}

.status-icon[data-status="Fechado"] {
    color: #DC3545;
}

/* ===== FILTROS MOBILE ===== */
.filtro-mobile-container {
    display: none;
    width: 100%;
    padding: 10px 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 9;
}

.filtro-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--azul);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    font-family: var(--avenir);
    cursor: pointer;
}

footer{
    display: flex;
}

.footer{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px !important;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#logo-footer{
    width: 200px;
    margin-bottom: 20px;
}

/* .footer label{
    font-size: 35px;
    font-family: var(--cabeçalho);
} */

#icons-contato{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: auto;
}

#insta, #email{
    display: flex;
    font-size: 15px;
    color: #666;
    margin: 5px;
    justify-content: center;
    align-items: center;
}

#insta label, #email label{
    margin-left: 5px;
}

hr{
    margin: 0px 50px 0px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 899px) {
    /* Header */
    #mobile-menu-button {
        display: block;
    }
    
    /* Esconde o select desktop em mobile */
    #rightSection {
        display: none !important;
    }
    
    /* Menu Mobile */
    .ul-nav {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 70%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .ul-nav.active {
        left: 0;
    }
    
    .li-nav {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    .li-nav:hover {
        border-bottom: 1px solid #eee;
        background: #f5f5f5;
    }
    
    .li-nav a {
        justify-content: flex-start;
    }
    
    /* Select mobile */
    #mobile-language-selector {
        padding: 15px 20px;
    }
    
    #mobile-language-selector select {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

    .filtro-mobile-container {
        display: block;
    }
    
    .filtro {
        display: none !important;
        width: 100%;
        padding: 20px;
        margin: 0;
    }
    
    .filtro.mobile-visible {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }
    
    #olimpiadas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 30px;
        column-gap: 1%;
        padding: 30px;
        width: 100%;
        justify-content: center; /* centraliza o grid */
        justify-items: center;
        align-items: center;
        align-content: center;
    }

    #olimpiadas .card {
        width: 50%; /* fixa o tamanho do card */
        margin: 0 10px; 
    }

    .imagem{
        height: 120px;
        width: 120px;
        margin: 20px;
    }

    .card a{
        width: 130px;
    }

    .filtro.mobile-visible {
        display: block; /* Mostra quando o botão é clicado */
    }

    #icons-contato{
        flex-direction: column;
    }
}

/* ===== Celular deitado ===== */
@media (max-width: 899px) and (orientation: landscape) {
    #olimpiadas {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas no landscape */
    }
}

@media (min-width: 900px) and (max-width: 1200px) {
    /* Header */
    #mobile-menu-button {
        display: block;
    }
    
    /* Esconde o select desktop em mobile */
    #rightSection {
        display: none !important;
    }
    
    /* Menu Mobile */
    .ul-nav {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 70%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .ul-nav.active {
        left: 0;
    }
    

    .botao{
        color: black;
    }
    
    .li-nav {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    .li-nav:hover {
        border-bottom: 1px solid #eee;
        background: #f5f5f5;
    }
    
    .li-nav a {
        justify-content: flex-start;
    }
    
    /* Select mobile */
    #mobile-language-selector {
        padding: 15px 20px;
    }
    
    #mobile-language-selector select {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

    .filtro-mobile-container {
        display: block;
    }
    
    .filtro {
        display: none !important;
        width: 100%;
        padding: 20px;
        margin: 0;
    }
    
    .filtro.mobile-visible {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }
    
    #olimpiadas {
        width: 100%;
        padding: 0;
    }

    .filtro.mobile-visible {
        display: block; /* Mostra quando o botão é clicado */
    }

    #icons-contato{
        flex-direction: column;
    }
}

@media (min-width: 1920px) {
     /* HEADER */
    header{
        min-height: 130px;
    }
    
    
    #logo {
        width: auto;
        height: 110px;
    }

    #centerSection a{
        font-size: 21px;
        gap: 30px;
    }

    .searchBar::placeholder{
        font-size: 25px;
    }

    #rightSection select{
        font-size: 21px;
    }

    #rightSection option{
        font-size: 15px;
    }

    .searchBar{
        font-size: 23px;
    }

    .searchButton i{
        font-size: 23px;
    }

    /* MAIN */

    #main{
        margin-top: 130px;
    }

    .titulo{
        font-size: 23px;
    }

    .titulo i{
        font-size: 23px;
    }

    #filtro button{
        font-size: 17px;
    }

    .imagem{
        height: 231px;
        width: 231px;
    }

    .tipo{
        font-size: 25px;
    }

    .card a{
        font-size: 20px;
    }

    /* FOOTER */
    #logo-footer{
        width: 256px;
    }

    #insta, #email{
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}