/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* === VARIÁVEIS PARA BLOG DARK AZUL === */
:root {
  --primary-color: #0a0e1a;
  --secondary-color: #16213e;
  --accent-color: #00bfff;
  --accent-color-hover: #3399ff;
  --text-color: #f0f0f0;
  --link-hover: #66d9ff;
}

body.blog {
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* === HEADER === */
header {
  background-color: var(--secondary-color);
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 a {
  color: #00ff88;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

header h1 a:hover {
  color: #00ffaa;
}

.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.menu li a {
  color: #e0e0e0;
  text-decoration: none;
  position: relative;
}

.menu li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: #00ff88;
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

.menu li a:hover::after {
  width: 100%;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.hero {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
}

.hero .btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: var(--accent-color-hover);
}

.blog-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

.posts {
  flex: 3;
}

.posts article {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.05);
  text-align: left;
}

.posts article h3 {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.posts article p {
  margin-bottom: 1rem;
}

.btn-small {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-small:hover {
  background: var(--accent-color-hover);
}

.sidebar {
  flex: 1;
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
}

.sidebar h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 0.8rem;
}

.sidebar ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  color: var(--link-hover);
}

.sobre {
  padding: 4rem 2rem;
  background: var(--secondary-color);
}

.formulario {
  max-width: 600px;
  margin: auto;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 5px;
}

.input-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-color);
  transition: 0.3s;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -0.8rem;
  left: 0.8rem;
  background: var(--secondary-color);
  font-size: 0.8rem;
  padding: 0 0.4rem;
}

.formulario .btn {
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  transition: background 0.3s;
}

.formulario .btn:hover {
  background: var(--accent-color-hover);
}

@media (max-width: 768px) {
  .blog-page {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

/* === FOOTER === */
footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}


