/*ESTILIZACOES GERAIS*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: #6f0c17;
    color: white; 
    line-height: 1.5;
}

/*CABECALHO*/
header {
    background-color: #43080f; 
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 4rem;
    color: white;
    /*Essa parte foi pega do site Hero Patterns*/
    background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z' fill='%23ffffff' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");

    /*Animação adicionada*/
    animation: moveBackground 5s linear infinite;
}

@keyframes moveBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}
/*FIM DO CABECALHO*/

.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo_maneira {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo_maneira img {
    width: 2.5rem;
}

.logo_maneira h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(255,255,255,0.4);
}

.botoes_maneiros {
    display: flex;
    gap: 0.5rem;
}

.botao {
    background-color: white;
    color: black;
    border-radius: 5px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    border: 2px solid white;
    font-weight: bold;
    }
    
.botao_especial {
    border: 2px solid white;
    color: white;
    background-color: #83000f;
    animation: blink 2s ease-in-out infinite;
}
    
@keyframes blink {
      50% {
        background-color: rgb(255, 0, 0); 
      }
}

.botao:hover {
    background-color: #43080f;
    color: white;
    border: 2px solid white;
}

.botao_outline {
    border: 2px solid white;
    color: white;
    background-color: #43080f;
}

.botao_outline:hover {
    background-color: white;
    color: black;
}

.botao_especial {
    border: 2px solid white;
    color: white;
    background-color: #83000f;
}

.botao_especial:hover {
    background-color: rgb(255, 0, 0);
}

/*PARTE PRINCIPAL*/
.titulo_principal {
    text-align: center;
    padding: 2rem 1rem;
    padding-top: 4rem;
    font-size: 2.5rem;
    color: white; 
}

.conteudo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.post {
    border: 2px solid rgba(255, 255, 255, 0.2); 
    padding: 1.5rem;
    border-radius: 10px;
}

.post-img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.post-titulo {
    margin-top: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 0.5rem;
}

.post-data {
    color: rgba(255, 255, 255, 0.897);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.comentarios {
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 1.5rem;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.comentario {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

.comentario-user {
    font-size: 1.1rem;
    font-weight: bold;
}

.comentario-data {
    font-size: 0.8rem;
    color: rgb(200,200,200);
}

.comentario-texto {
    margin-top: 0.5rem;
}

/*FIM INDEX*/
/*COMECO CADASTRO e ENTRAR*/

#cadastro-container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem auto 5rem auto;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    color: white;
}

#img_cadastro {
    text-align: center;
    margin-bottom: 2rem;
}

#img_cadastro img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 3px rgb(0, 0, 0));
}

#img_cadastro h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(255,255,255,0.5);
}

#form_login {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#form_login input {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.15);
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#form_login input::placeholder {
    color: #eee;
}

#form_login input:focus {
    outline: none;
    background-color: rgba(255,255,255,0.3);
}

#form_login button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: #43080f; 
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#form_login button:hover {
    background-color: #ff0d29;
    color: white;
}

#form_cadastro {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#form_cadastro input {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.15);
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#form_cadastro input::placeholder {
    color: #eee;
}

#form_cadastro input:focus {
    outline: none;
    background-color: rgba(255,255,255,0.3);
}

#form_cadastro button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: #43080f; 
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#form_cadastro button:hover {
    background-color: #ff0d29;
    color: white;
}

/*MENSAGEM DE SUCESSO OU ERRO DO CADASTRO*/
.mensagem {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    color: white; 
}

.sucesso {
    background-color: #28a745;
}

.erro {
    background-color: #dc3545;
}

/*FIM CADASTRO e ENTRAR*/

/*RODAPE*/
footer {
    background-color: #43080f;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgb(200,200,200);
}

/*RESPONSIVIDADE (ou seja, tamanho pro celular :D)*/
@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    #cadastro-container {
        margin: 2rem 1rem 4rem 1rem;
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
}