:root {
    --bg: #0f0f0f;
    --text: #e0e0e0;
    --primary: #00c853;
    --card-bg: #1a1a1a;
    --header-bg: #111111;
    --hover: #272727;
}

body.light {
    --bg: #ffffff;
    --text: #1a1a1a;
    --primary: #00c853;
    --card-bg: #f5f5f5;
    --header-bg: #f0f0f0;
    --hover: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
    min-height: 100vh; /* garante que ocupe toda a altura da tela */
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;

}

.logo a{
    color: var(--primary);
    text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

nav a:hover::after {
  width: 100%;
}

#toggleTheme {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

#toggleTheme:hover {
  transform: scale(1.1);
}

/* MAIN */
main {
    flex: 1;
    padding: 40px 30px;
    max-width: 1200px;
    margin: auto;
}

/* COLUNAS PRINCIPAIS DAS SEÇÕES */
.columns {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: wrap; /* quebra em linha em telas menores */
}

.columns section {
  flex: 1 1 300px; /* mínimo 300px, cresce conforme espaço */
  display: flex;
  flex-direction: column;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.9rem;
  border-left: 5px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 25px;
}
section h2 a{
    text-decoration: none;
    color: var(--primary);
}
/* CARDS DENTRO DAS SEÇÕES (ROW VERTICAL) */
.section-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  background-color: var(--hover);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.card h3 {
  margin-bottom: 10px;
}

.card h3 a {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background-color: var(--header-bg);
  margin-top: 60px;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid var(--primary);
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .columns {
    flex-direction: column; /* empilha as seções em telas menores */
  }
}
