.evento{
    width: 70%;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.evento__header{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.evento__criar-evento button, .evento__categorias{
    align-self: flex-start;
}

.evento__categorias{
    display: flex;
    gap: 20px;
}

.evento__categorias span{
    padding: 5px 10px;
    font-size: 1rem;

    border: 2px solid #FF66C4;
    color: #FF66C4;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.evento__categorias span:nth-child(1){
    background-color: #FF66C4;
    color: white;
}

.evento__carrossel h2{
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #212529;
}

.carrossel__list{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.evento-item{
    padding: 20px;
    cursor: pointer;
    background: transparent;
}

.evento-item figure{
    width: 100%;
    height: 180px;
}

.evento-item figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evento-descricao{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evento-descricao h2{
    font-size: 1.4rem;
    margin: 0;
}

.evento-descricao span{
    font-size: 1rem;
    color:#FF66C4;
    font-weight: 700;
}

.evento-descricao p{
    font-size: 1rem;
    margin: 0;
}

.evento__criar-evento button{
    border: none;
    border-radius: 10px;
    padding: 10px;
    background-color: #FF66C4;
    color: white;
    font-weight: 600;
    width: 100%;
}

.evento__criar-evento{
    width: 20%;
}

.form-item-anexo{
    border: 1px dotted #212529b4;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.form-item-anexo span i{
    font-size: 1.5rem;
    cursor: pointer;
    color: #212529;
    display: flex;
}

/* modo escuro */

body.dark .evento {
    background-color: #2d2d2d; /* Fundo cinza escuro */
}

body.dark .evento__categorias span {
    background-color: transparent;
    color: #FF66C4; /* Destaque */
    border-color: #FF66C4; /* Borda no destaque */
}

body.dark .evento__categorias span:nth-child(1) {
    background-color: #FF66C4; /* Fundo do destaque */
    color: #3E3E40; /* Contraste no texto */
}

body.dark .evento__carrossel h2 {
    color: #FFFFFF; /* Texto branco */
}

body.dark .carrossel__list {
    background-color: #3E3E40; /* Fundo cinza escuro */
}

body.dark .evento-item {
    background-color: #3E3E40; /* Fundo cinza escuro */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra sutil */
}

body.dark .evento-item:hover {
    background-color: #505050; /* Fundo mais claro ao passar o mouse */
    transition: background-color 0.3s ease;
}

body.dark .evento-item figure img {
    opacity: 0.9; /* Imagem levemente escurecida */
}

body.dark .evento-descricao h2 {
    color: #FFFFFF; /* Título em branco */
}

body.dark .evento-descricao span {
    color: #FF66C4; /* Destaque */
}

body.dark .evento-descricao p {
    color: #FFFFFF; /* Texto em branco */
}


/*Media Queries*/
@media (max-width: 48rem) {
    .eventos {
        width: 90%;
    }

    .evento__categorias {
        flex-wrap: wrap;
        gap: 10px;
    }

    .carrossel__list {
        grid-template-columns: 1fr;
    }

    .evento-descricao h2 {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 600px) {
    #eventos {
        font-size: 1.2rem;
    }

    .evento__categorias span {
        font-size: 0.9rem;
        padding: 3px 8px;
    }

    .evento-item figure {
        height: 150px;
    }

    .evento-descricao h2 {
        font-size: 1rem; /* 16px -> rem */
    }

    .evento-descricao span {
        font-size: 0.75rem; /* 12px -> rem */
    }

    .evento-descricao p {
        font-size: 0.75rem; /* 12px -> rem */
    }
}

/* Para telas maiores que 64rem (1024px) */
@media (min-width: 64rem) {
    .eventos {
        width: 60%;
    }

    .carrossel__list {
        gap: 2.5rem; /* 40px -> rem */
    }

    .eventos-item figure {
        height: 14.0625rem; /* 225px -> rem */
    }
}
