/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #00ff41;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header e navegação */
header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #00ff41;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

nav {
  max-width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap; /* Permite quebrar linha se necessário */
  gap: 2rem; /* Reduza esse valor se os itens estiverem espremidos */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.logo a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
}

.nav-links {
  display: flex;
  flex-wrap: wrap; /* Ajuda se faltar espaço */
  list-style: none;
  gap: 1.5rem;
  margin-left: auto; /* opcional para alinhamento à direita */
}

.nav-links a {
  color: #00ff41;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  border-color: #00ff41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
  background: rgba(0, 255, 65, 0.1);
}

.nav-links a::before {
  content: '>';
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-links a:hover::before {
  opacity: 1;
  left: -5px;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 2rem;
}

/* Títulos */
h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #00ff41;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.7);
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ff41, transparent);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  border-left: 4px solid #00ff41;
  padding-left: 1rem;
}

/* Seções */
section {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00ff41;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  animation: scan 3s infinite;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Canvas dos gráficos */
canvas {
  width: 100% !important;
  height: 400px !important;
  border: 1px solid #00ff41;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.2);
}

/* Cards de informação */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ff41;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.info-card h3 {
  color: #00ff41;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-card p {
  color: #cccccc;
  line-height: 1.6;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 2px solid #00ff41;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  color: #00ff41;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 100px 1rem 1rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Efeitos especiais */
.glitch {
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}

/* Container do modelo 3D */
.gpu-3d-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

#gpu3dCanvas {
  width: 100%;
  max-width: 600px;
  height: 400px;
  border: 2px solid #00ff41;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
  backdrop-filter: blur(5px);
}

.gpu-info {
  text-align: center;
  max-width: 600px;
}

.gpu-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00ff41;
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.gpu-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #00ff41;
  opacity: 0.9;
}

/* Responsividade para o modelo 3D */
@media (max-width: 768px) {
  #gpu3dCanvas {
    height: 300px;
  }
  
  .gpu-info h3 {
    font-size: 1.5rem;
  }
  
  .gpu-info p {
    font-size: 1rem;
  }
}

/* Menu Hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #00ff41;
  border-radius: 2px;
}

/* Animação do botão hambúrguer em "X" */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle span {
  transition: 0.3s ease;
}

.menu-toggle {
  z-index: 1001; /* garante que o botão fique na frente */
}

/* Responsividade do menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 2px solid #00ff41;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }
}
/* Formulário de login */
form#loginForm {
  max-width: 400px;
  margin: 150px auto;
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border: 1px solid #00ff41;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

form#loginForm label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00ff41;
  font-weight: bold;
}

form#loginForm input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid #00ff41;
  border-radius: 5px;
  background: #0a0a0a;
  color: #00ff41;
}

form#loginForm button {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

form#loginForm button:hover {
  background: #00ff41;
  color: #000;
}
/* Área de postagem de notícia */
#noticia-form {
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #00ff41;
  max-width: 600px;
  margin: 150px auto 2rem;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

#noticia-form input[type="text"],
#noticia-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #00ff41;
  border-radius: 5px;
  background: #0a0a0a;
  color: #00ff41;
  resize: vertical;
}

#noticia-form button {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#noticia-form button:hover {
  background: #00ff41;
  color: #000;
}

/* Lista de notícias publicadas */
.noticia {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ff41;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.noticia h3 {
  color: #00ff41;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.noticia p {
  color: #cccccc;
}

.noticia time {
  display: block;
  font-size: 0.8rem;
  color: #66ff99;
  margin-top: 0.5rem;
  opacity: 0.7;
}
