
:root {
  --cor-fundo: #0f0f0f;
  --cor-secundaria: #ff4747;
  --cor-card: #1c1c1c;
  --texto: #f5f5f5;
  --sombra: 0 0 15px #00000088;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  color: var(--texto);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(90deg, #ff4747, #ff7070);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  box-shadow: 0 3px 10px #00000055;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px #000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #222;
  transform: scale(1.1);
}


main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

article {
  background: var(--cor-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--sombra);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #ff474788;
}

article::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ff474722 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

article:hover::before {
  opacity: 1;
}

article img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

article h2 {
  margin-top: 0;
  color: #ff7070;
}


aside {
  background: #1b1b1b;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--sombra);
}

aside h3 {
  color: #ff4747;
  border-bottom: 2px solid #ff4747;
  padding-bottom: 0.3rem;
}

aside ul {
  list-style: none;
  padding-left: 0;
}

aside ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

label {
  font-weight: bold;
}

input, textarea {
  background: #2a2a2a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 1rem;
}

button {
  background: var(--cor-secundaria);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-weight: bold;
}

button:hover {
  background: #ff2a2a;
  transform: scale(1.05);
}

#topo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--cor-secundaria);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 10px #00000088;
  transition: opacity 0.3s, transform 0.3s;
}

#topo:hover {
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #bbb;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

article, aside {
  animation: fadeIn 0.8s ease;
}

@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
  }
}
