/* =========================================
   RESET, VARIÁVEIS E ESTRUTURA GLOBAL
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* PADRÃO: TEMA ESCURO */
  --bg-body: #1c1c1c;
  --text-color: #ffffff;
  --header-bg: #293e5c;
  --card-border: #ccc;
  --card-text: #fff;
  --secondary: #ffcc00;
  --bg-card: #2c2c2c;
}

body.light-mode {
  /* TEMA CLARO (ATIVADO) */
  --bg-body: #f4f4f4;
  --text-color: #1a1a1a;
  --header-bg: #293e5c;
  --card-border: #333;
  --card-text: #000;
  --bg-card: #ffffff;
}

body {
  background-color: var(--bg-body);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;

  display: flex;
  flex-direction: column;
  min-height: 100vh;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

main {
  display: block;
  flex: 1;
  width: 100%;
}

/* Links Globais */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a:visited {
  color: inherit;
}
a button {
  cursor: pointer;
}

/* Rodapé Global */
footer {
  text-align: center;
  padding: 20px;
  background: var(--header-bg);
  color: white;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Títulos das Seções (H2 com linha embaixo) */
.content_title {
  display: inline-block;
  position: relative;
  color: inherit;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.content_title::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--header-bg);
  transition: width 0.3s ease;
}

.content_title:hover::after {
  width: 100%;
}

/* Footer */

footer {
  background-color: var(--header-bg);
  color: white;
  padding-top: 40px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  padding: 0 20px;
}

.footer-section h3 {
  font-family: "Oswald", sans-serif;
  margin-bottom: 15px;
  color: var(--secondary);
  font-size: 1.2rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: white;
  opacity: 0.8;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-section ul li a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--secondary);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Botão voltar ao topo */

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--header-bg);
  border-radius: 50%;

  /* Centralizar o ícone */
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;

  /* Estado inicial: Escondido */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* Levemente para baixo */
  transition: all 0.4s ease;
}

/* Classe que o JS adiciona para mostrar o botão */
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: scale(1.1);
  background-color: #ffd633;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: subir 0.3s ease-out;
}

@keyframes subir {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-box h3 {
  margin-top: 0;
  color: #333;
}
.modal-box p {
  color: #666;
  margin-bottom: 25px;
}

.modal-botoes {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-primario {
  background: var(--header-bg);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secundario {
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50; /* Azul escuro elegante */
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10000; /* Fica em cima de tudo */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);

  /* Começa escondido, o JS vai mostrar se precisar */
  display: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.cookie-banner p {
  margin: 0;
  max-width: 800px;
}

.cookie-banner button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.cookie-banner button:hover {
  background-color: #219150;
}

/* Ajuste para celular */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
