/* Variáveis de cores */
:root {
    --bg: #0d0d0d;
    --green: #2ecc71;
    --gray: #444;
    --light-gray: #ccc;
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Corpo da página */
body {
    font-family: Arial, sans-serif;
    color: #eee;
    background-color: var(--bg);
    background-image: url('uploads/bg.jpg'); /* Certifique-se que o arquivo exista */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* Container principal */
.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 16px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center; /* centraliza a logo */
    padding: 16px 8px;
    margin-bottom: 30px;
}

.header .logo {
    max-height: 100px;
    width: auto;
    height: auto;
    margin-bottom: 20px; /* distância da primeira notícia */
    transition: all 0.3s ease;
}

/* Responsividade da logo */
@media (max-width: 768px) {
    .header .logo {
        max-height: 80px;
    }
}

/* Cards de notícias */
.card {
    background: #1a1a1a;
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

/* Títulos e metadados */
.post-title {
    font-size: 1.3rem;
    color: var(--green);
}

.post-meta {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Inputs e textarea */
.input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--gray);
    background: #111;
    color: #f1f1f1;
}

/* Botões */
.btn {
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #27ae60;
}

/* Comentários */
.comment {
    border-top: 1px dashed var(--gray);
    padding: 8px 0;
}

.comment strong {
    color: var(--green);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Banners de posts */
.banner {
    display: block;
    margin: 12px 0;
    border-radius: 8px;
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Espaços para banners menores entre posts */
.banner-slot {
    text-align: center;
    margin: 16px 0;
    color: var(--light-gray);
}

.post-title a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #fff;
}

/* barra de navegação */
.navbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: var(--gray);
  padding: 10px 0;
  border-radius: 0 0 10px 10px;
  margin-bottom: 20px;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 30px;

  /* vidro fosco */
  background: rgba(34, 34, 34, 0.4); /* fundo semi-transparente */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 10px 20px;
  margin-bottom: 20px;

  /* bordas arredondadas */
  border-radius: 12px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: var(--green);
}


/* Login */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #111;
    background-image: url('uploads/bg.jpg'); /* Garantir que o path seja correto */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

body.login-body .login-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 0 15px #000;
    text-align: center;
}

body.login-body .login-form h2 {
    color: var(--green);
    margin-bottom: 16px;
}

body.login-body .login-form input {
    margin-bottom: 12px;
}

body.login-body .login-form button {
    width: 100%;
}
