@font-face {
  font-family: raleway;
  src: url(../fontes/Raleway/Raleway-Italic-VariableFont_wght.ttf) format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: lovelo;
  src: url(../fontes/lovelo/lovelo_black.otf) format('opentype');
  font-weight: normal;
}

/* ========================================= */
/* ESTILOS GLOBAIS (FUNCIONAM EM TUDO)       */
/* ========================================= */
:root {
  --corescura-1: #111111ff;
  --corescura-2: #071554ff;
  --corescura-3: #212bc0ff;
  --corescura-4: #4ecaceff;
  --corescura-5: #a0dadeff;

  --branco: #ffffff;
  --preto: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: lovelo, sans-serif;
  background-color: var(--corescura-1);
  color: var(--branco);
}

::placeholder {
  color: #888;
}

/* ================================================== */
/* HEADER DESKTOP                                    */
/* ================================================== */
@media (min-width: 900px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--corescura-1);
    padding: 20px 35px;
    color: var(--branco);
    position: relative;
    font-family: raleway, sans-serif;
  }

  .logo-img {
    width: 40%;
    height: 40%;
    margin-right: 10px;
    display: flex;
    align-items: center;
  }

  .search-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .btn-tema img {
    width: 32px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .btn-tema img:hover {
    transform: scale(1.1);
  }

  .menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .search {
    display: flex;
    align-items: center;
    position: relative;
  }

  .search input {
    padding: 10px 60px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: linear-gradient(to right, #00d9c0, #1d4ed8);
    color: var(--branco);
  }

  .search img {
    position: absolute;
    left: 25px;
    height: 45px;
    width: 45px;
    pointer-events: none;
    z-index: 2;
  }

  .menu-toggle {
    position: relative;
    z-index: 100;
    display: block;
  }

  .hamburguer {
    font-size: 40px;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    color: var(--branco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.3s ease;
  }

  .hamburguer:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-lista {
    list-style: none;
    padding: 10px 0;
    margin: 0 0 0 20px;
    display: none;
    flex-direction: column;
    background-color: var(--corescura-1);
    border-radius: 8px;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

  .menu-lista.active {
    display: flex;
  }

  .menu-item {
    margin: 10px 0;
    padding: 0 20px;
  }

  .menu-item a {
    color: var(--branco);
    text-decoration: none;
    font-family: lovelo, sans-serif;
    font-size: 16px;
    display: block;
    padding: 8px 0;
    transition: background-color 0.2s ease;
  }

  .menu-item a:hover {
    background-color: var(--corescura-5);
    border-radius: 4px;
    padding: 8px;
  }
}

/* ==================================== */
/* LAYOUT FÓRUM                         */
/* ==================================== */

.titulo-page {
  text-align: center;
  padding: 40px 20px;
}

.titulo-page h1 {
  font-family: lovelo;
  font-size: 4em;
  color: var(--branco);
  margin-bottom: 10px;
}

.titulo-page p {
  font-family: raleway;
  color: var(--corescura-4);
  font-size: 1.2em;
}

.barra-separacao {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--preto), var(--corescura-3), var(--corescura-4));
  margin-bottom: 40px;
}

.forum-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

/* ÁREA DE CRIAR POST */
.criar-post {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  margin-bottom: 40px;
}

.criar-post h3 {
  font-family: lovelo;
  color: var(--corescura-4);
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#tituloPost {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: white;
  font-family: raleway;
}

#categoriaPost {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: white;
  font-family: raleway;
}

#conteudoPost {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: white;
  font-family: raleway;
  resize: vertical;
  margin-bottom: 10px;
}

.post-actions {
  text-align: right;
}

.btn-publicar {
  background: var(--corescura-4);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: lovelo;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-publicar:hover {
  background: var(--corescura-3);
}

/* FEED DE POSTS */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--corescura-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: lovelo;
  font-size: 0.9em;
  color: white;
}

.dados {
  display: flex;
  flex-direction: column;
}

.username {
  font-family: lovelo;
  color: white;
  font-size: 1em;
}

.tempo {
  font-family: raleway;
  color: #888;
  font-size: 0.8em;
}

.tag {
  background: #333;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  font-family: raleway;
  color: #ccc;
}

.tag-aviso { background: #662222; color: #ffcccc; }
.tag-duvida { background: #224466; color: #cceeff; }
.tag-projeto { background: #226622; color: #ccffcc; }

.post-title {
  font-family: lovelo;
  color: var(--corescura-4);
  margin-bottom: 10px;
}

.post-content {
  font-family: raleway;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 15px;
  white-space: pre-line; /* Mantém quebras de linha */
}

.post-footer {
  display: flex;
  gap: 15px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.btn-action {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: raleway;
  font-size: 0.9em;
  transition: color 0.3s;
}

.btn-action:hover, .btn-action.active {
  color: var(--corescura-4);
}

/* ÁREA DE COMENTÁRIOS */
.comentarios-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #333;
}

.lista-comentarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.comentario-item {
  background: #0d0d0d;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9em;
  font-family: raleway;
  color: #ccc;
}

.form-comentario {
  display: flex;
  gap: 10px;
}

.form-comentario input {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: white;
}

.form-comentario button {
  background: var(--corescura-2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
footer {
  color: var(--branco);
  background-color: var(--corescura-1);
  font-family: "lovelo";
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  padding: 40px 20px;
  align-items: flex-start;
}

.logo-footer img {
  width: 150px;
  height: auto;
}

.informacoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: lovelo;
}

.informacoes h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  text-transform: uppercase;
}

.icons-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.icone-svg-footer {
  width: 32px;
  height: 32px;
  fill: var(--branco);
  transition: fill 0.3s;
}

.icons-social a:hover .icone-svg-footer {
  fill: var(--corescura-4);
}

.local {
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 220px;
  display: flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--branco);
  font-family: raleway;
}

.lista ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lista a, .contato {
  font-size: 1.1rem;
  color: var(--branco);
  text-decoration: none;
  transition: color 0.2s;
}

.lista a:hover, .contato:hover {
  text-decoration: underline;
  color: var(--corescura-4);
}

.creditos {
  width: 100%;
  background: linear-gradient(to right, #4556e7ff, #111111ff);
  text-align: center;
  font-size: 0.89rem;
  padding: 10px 0;
  font-family: raleway;
}