/* ====== VARIÁVEIS ====== */
:root {
  --roxo-primario: #66009d;
  --roxo-hover: #3c096c;
  --branco: #ffffff;
  --fonte-titulo: 'Charukola Unicode', sans-serif;
  --fonte-texto: 'Ubuntu', sans-serif;
}

/* ====== RESET BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fonte-texto, 'Poppins', sans-serif);
  color: var(--branco);
  background-color: #040324;
  overflow-x: hidden;
  padding-top: 100px; /* Espaço para compensar o header fixo */
}

/* ====== NAVBAR UNIFICADA AIVY STYLE ====== */
.navbar {
  width: 100%;
  background-color: rgba(4, 3, 36, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ====== LOGO ====== */
.logo img {
  max-height: 64px;
  width: auto;
  display: block;
}

/* ====== MENU DESKTOP ====== */
.menu-list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.menu-list li a {
  color: #d3baff;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-list li a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #a874ff;
}

/* ====== BOTÃO CONTACTAR DESTACADO ====== */
.menu-list li.cta-menu a {
  background: linear-gradient(90deg, #7e4fdd, #a874ff);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(168, 116, 255, 0.4);
  transition: all 0.3s ease;
}

.menu-list li.cta-menu a:hover {
  background: linear-gradient(90deg, #a874ff, #7e4fdd);
  box-shadow: 0 6px 20px rgba(168, 116, 255, 0.6);
  color: #ffffff;
}

/* ====== MOBILE MENU TOGGLE ====== */
.menu-toggle {
  font-size: 2rem;
  background: none;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(4, 3, 36, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    display: none;
  }

  .menu-list.open,
  .menu-list.ativo {
    display: flex;
  }

  .menu-list li a {
    font-size: 1.1rem;
  }

  .menu-list li.cta-menu a {
    align-self: center;
    width: 100%;
    text-align: center;
  }
}

/* ===== BLOG PAGE ===== */

.blog-page {
   background: linear-gradient(180deg, #0e001e 0%, #1e0938 100%);
  padding: 6rem 2rem 3rem;
  font-family: var(--fonte-texto);
}

/* ===== HEADER DO BLOG ===== */

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-title {
  font-size: 3rem;
  color: #e0beff;
  text-shadow: 0 0 10px rgba(224, 190, 255, 0.6);
  margin-bottom: 1.2rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: #c5b3d8;
  font-weight: 400;
}

/* ===== FILTROS (opcional) ===== */

.blog-filtros {
  text-align: center;
  margin-bottom: 3rem;
}

.filtros-lista {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filtro {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a6172;
  background-color: #e8d7f5;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.filtro:hover,
.filtro.ativo {
  background-color: #bb88eb;
  color: #fff;
}

/* ===== GRID DE POSTS ===== */

.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ===== CARD DO POST ===== */
.post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(160, 100, 255, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(102, 0, 157, 0.25);
}

/* Imagem do post */
.post-imagem {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.post-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post:hover .post-imagem img {
  transform: scale(1.03);
}

/* Info do post */
.post-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Tag */
.post-tag {
  display: inline-block;
  background-color: #bb88eb;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Título */
.post-titulo {
  font-size: 1.6rem;
  color: #f4eafd;
  margin-bottom: 0.6rem;
  font-family: var(--fonte-titulo);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Descrição */
.post-desc {
  font-size: 1.05rem;
  color: #e0d3f5;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 2rem;
}

/* Botão Ler Mais */
.btn-post {
  align-self: center;
  color: #e0beff;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid #e0beff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-post:hover {
  background: #e0beff;
  color: #12001e;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {
  .blog-title {
    font-size: 2rem;
  }

  .grid-posts {
    grid-template-columns: 1fr;
  }

  .post-info {
    padding: 1.5rem;
  }
}

.cta-btn {
  display: inline-block !important;
  padding: 0.9rem 1.8rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: white !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #7e4fdd, #4c2e9f) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(126, 79, 221, 0.3) !important;
  transition: all 0.3s ease-in-out !important;
}

.cta-btn:hover {
  transform: translateY(-3px) !important;
  background: linear-gradient(135deg, #9e74f7, #6e48e6) !important;
  box-shadow: 0 8px 30px rgba(158, 116, 247, 0.4) !important;
}

.post-voltar {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ====== FOOTER ====== */
.footer-heroico {
  background: linear-gradient(to top, #3c096c, #1e002e);
  color: #ffffff;
  padding: 6rem 2rem 3rem;
  margin-top: 5rem; /* Espaço visual acima do footer */
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-titulo {
  font-family: var(--fonte-titulo);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #e0beff;
}

.footer-navegacao h4,
.footer-cta h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e0beff;
}

.footer-navegacao ul {
  list-style: none;
  padding: 0;
}

.footer-navegacao ul li {
  margin-bottom: 0.6rem;
}

.footer-navegacao a {
  color: #d4c9e2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-navegacao a:hover {
  color: #ffffff;
}

.footer-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #ffffff;
  color: #66009d;
  font-weight: bold;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background-color: #3c096c;
  color: #ffffff;
}

.footer-bottom {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.95rem;
  color: #c8b9da;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-links {
  color: #ffffff;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e0beff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #d4c9e2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ====== PARA PÁGINAS COM POUCO CONTEÚDO ====== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* === Acessibilidade: Focus visível === */
a:focus,
button:focus {
  outline: 2px dashed var(--roxo-primario);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 100px;
  }
}
