/* ==================== VARIÁVEIS DE CORES ==================== */
:root {
  --text: #eae9fc;
  --background: #010104;
  --primary: #ffbb00;
  --secondary: #daa7f6;
  --accent: #ff8400;
  --line: #535353;
  --card-bg: #111;
  --card-shadow: rgba(0,0,0,0.5);
}

/* ==================== RESET BÁSICO ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #000;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.logo-img {
  width: 32px;
  margin-right: 10px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text);
  transition: 0.3s;
}

.menu li a.ativo {
  color: var(--primary);
}

.menu li a:hover {
  color: var(--secondary);
}

/* ==================== CONTEÚDO ==================== */
main {
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2rem;
  color: var(--primary);
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--secondary);
}

/* ==================== CATEGORIAS ==================== */
.categoria {
  margin-bottom: 40px;
}

.categoria h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
  border-bottom: 2px solid var(--line);
  padding-bottom: 5px;
}

/* ==================== CARDS ==================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  color: var(--text);
  text-align: left;
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: 0.3s;
  position: relative;
}

.card:hover {
  border-color: var(--secondary);
  transform: scale(1.03);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  background: var(--primary);
  color: #000;
  transition: 0.3s;
}

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

/* ==================== RESPONSIVIDADE ==================== */
@media screen and (max-width: 1024px) {
  .card {
    width: 45%;
  }
}

@media screen and (max-width: 768px) {
  .card {
    width: 90%;
  }
}

/* ==================== BOTÃO FLUTUANTE ==================== */
.botao-flutuante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.botao-flutuante:hover {
  transform: scale(1.1);
}

/* ==================== MODAL ==================== */
.modal {
  display: none; /* escondido até abrir */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 10px var(--secondary);
  color: var(--text);
  text-align: left;
}

.modal h2 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.modal label {
  font-weight: bold;
  color: var(--secondary);
}

.modal input,
.modal textarea {
  width: 100%;
  margin: 5px 0 15px;
  padding: 8px;
  border: 1px solid var(--secondary);
  border-radius: 6px;
  background: #000;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn.salvar {
  background: var(--primary);
  color: #000;
}

.btn.cancelar {
  background: #444;
  color: var(--text);
}

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

.btn.cancelar:hover {
  background: #666;
}
