@import url("styles.css");

/* Estilos específicos para o Blog */

body {
  background-color: var(--color-yellow-pastel-ligth);
}

.header .container {
  max-width: 100%;
  width: 100%;
  padding: 0 2rem;
}

.header .container h3 {
  font-family: var(--font-tertiary);
  color: var(--color-coral);
}

.nav ul {
  font-size: medium;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 0rem 0rem 0rem 2rem;
}

.social-icons a {
  text-decoration: none;
}

.social-icons .icon {
  width: 24px; /* Ajuste o tamanho */
  height: 24px;
  fill: var(--color-coral); /* Define a cor vermelha */
  transition: fill 0.3s ease-in-out;
  transition: transform 0.3s;
}

.social-icons a:hover .icon {
  fill: var(--color-red-medium); /* Cor mais escura ao passar o mouse */
  transform: scale(1.1);
}

.blog-home {
  position: relative;
  padding: 7rem 2rem;
  margin: 0 auto;
  display: flex;
  flex-flow: row;
  gap: 1.5rem;
}

.menu {
  flex: 2;
  height: 100%;
  display: flex;
  flex-flow: column;
  align-content: center;
}

.menu .container {
  flex: 5;
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
}

.menu .content {
  flex: 1;
  width: 100%;
  text-align: left;
}

.menu .content p {
  width: 85%;
  font-family: var(--font-primary);
  color: var(--color-soft-black-ligth);
  font-weight: 600;
  line-height: 1.6; /* Espaçamento entre linhas */
  text-align: left; /* Justifica o texto */
  margin-top: 15px; /* Alinha melhor com a linha de base */
}

.menu .content #p-first::first-letter {
  font-size: 4rem; /* Aumenta o tamanho da primeira letra */
  font-weight: bold; /* Negrito */
  float: left; /* Faz a letra "cair" no parágrafo */
  margin-right: 5px;
  margin-bottom: 0px;
  margin-top: -15px;
  line-height: 1; /* Ajusta a altura da linha */
  color: var(--color-soft-black); /* Cor da letra */
}

.menu img {
  width: auto;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.featured-post {
  flex: 4;
  position: relative;
  overflow: hidden;
  border: solid 15px var(--color-green-pastel);
  background-color: var(--color-yellow-pastel);
}

.featured-post img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  transition: filter 0.3s ease-in-out;
}

.featured-post:hover img {
  filter: brightness(1);
}

.featured-content {
  position: relative;
  padding: 0rem 1rem;
}

.featured-content h3 {
  font-family: var(--font-primary);
  color: var(--color-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1rem 0rem 0.5rem;
}

.featured-content h2 {
  font-family: var(--font-tertiary);
  color: var(--color-red-strong);
  font-size: 2rem;
  margin: 0 0 10px;
  width: 70%;
  line-height: 1.2; /* Ajusta a altura da linha */
}

.featured-content p {
  font-family: var(--font-primary);
  color: var(--color-soft-black-ligth);
  font-weight: 600;
  font-size: 1rem;
  width: 70%;
}

.blog-grid {
  display: flex;
  flex-flow: row;
  padding: 2rem;
  gap: 1rem;
}

.blog-item {
  flex: 2;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  border: solid 15px var(--color-green-pastel);
  background-color: var(--color-yellow-pastel);
}

.blog-item-v {
  flex: 1;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  border: solid 15px var(--color-green-pastel);
  background-color: var(--color-yellow-pastel);

}

.blog-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.blog-item:hover img {
  filter: brightness(1);
}

.blog-item-v img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.blog-item-v:hover img {
  filter: brightness(1);
}

.blog-item h4 {
  font-family: var(--font-primary);
  color: var(--color-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.5rem 1rem;
}

.blog-item h3 {
  flex: 1;
  font-family: var(--font-tertiary);
  color: var(--color-red-strong);
  margin: 0.5rem 1rem 0rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.blog-item-v h4 {
  font-family: var(--font-primary);
  color: var(--color-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.5rem 1rem;
}

.blog-item-v h3 {
  flex: 1;
  font-family: var(--font-tertiary);
  color: var(--color-red-strong);
  margin: 0.5rem 1rem 0rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.blog-item p {
  flex: 4;
  font-family: var(--font-primary);
  color: var(--color-soft-black-ligth);
  font-size: 1rem;
  margin: 0.5rem 1rem 1rem;
  font-weight: 500;
}

.blog-item-v p {
  flex: 4;
  font-family: var(--font-primary);
  color: var(--color-soft-black-ligth);
  font-size: 1rem;
  margin: 0.5rem 1rem 1rem;
  font-weight: 500;
}

#blog-header {
  display: none;
}

@media ((max-width: 1024px) and (orientation: landscape) and (max-height: 768px)) {
  .blog-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 1.5rem 1rem; /* Garante espaçamento lateral */
  }
  .blog-item, .blog-item-v {
    flex: none;
    display: inline-block;
    width: 80%;
    max-width: 500px;
    margin: 0 0.5rem; /* 1rem de margem em ambos os lados */
    scroll-snap-align: start;
  }
  .blog-grid::-webkit-scrollbar {
    display: none;
  }
  .blog-item, .blog-item-v {
    scroll-snap-align: start;
    scroll-margin: 0 1rem 0 1rem; /* margem de 1rem à esquerda e à direita */
  }
  .blog-item p, .blog-item-v p {
    font-size: 0.8rem;
    font-weight: 600;
  }  
}

@media (max-width: 768px) {
  .blog-home {
    flex-direction: column;
    padding: 4rem 1rem;
  }
  hr {
    width: 80%;
    margin-top: 2rem;
    border-top: 2px solid rgba(234, 77, 73, 0.3);
  }
  .header.solid.white {
    display: none;
  }
  #blog-header {
    width: 100%;
    background: inherit; /* Use a cor de fundo desejada ou herde do body */
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    font-family: var(--font-tertiary);
    color: var(--color-coral);
  }
  .blog-header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .blog-header-container .blog-logo {
    margin-left: 1rem;
    flex: 1;
  }
  .blog-header-container .blog-hamburger {
    margin-right: 1rem;
  }
  .blog-nav .blog-menu li a {
    text-decoration: none;
    color: var(--color-yellow-pastel); /* Altere para a cor desejada */
    font-weight: bold;
  }
  .blog-nav ul {
    gap: 1rem;
  }
  /* Oculta o ícone hamburger e o checkbox no desktop */
  .blog-hamburger,
  .blog-menu-checkbox {
    display: none;
  }
  /* Exibe o ícone hamburger no mobile */
  .blog-hamburger {
    display: flex;
    align-items: center;
    justify-content: center; /* opcional, para centralizar horizontalmente também */
    height: 100%; /* Certifique-se de que o label tenha uma altura definida ou herde do pai */  
  }
  .social-icons {
    gap: 1rem;
  }
  /* Oculta o menu padrão e posiciona o menu mobile */
  .blog-nav .blog-menu {
    position: fixed;
    top: 6rem;
    right: 0;
    width: 50%; /* Ocupa metade da tela */
    height: 100vh;
    background: inherit; /* Utilize a mesma cor de fundo do header ou outra desejada */
    flex-direction: column;
    padding-top: 3rem; /* Espaço para não sobrepor o header */
    list-style: none;
    margin: 0;
    transform: translateX(100%); /* Começa fora da tela (à direita) */
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    font-family: var(--font-primary);
    background-color: var(--color-coral);
    color: var(--color-yellow-pastel);
    font-size: 1.5rem;
    display: flex;
  }
  /* Ao marcar o checkbox, o menu desliza para a esquerda e aparece */
  #blog-menu-toggle:checked ~ .blog-nav .blog-menu {
    transform: translateX(0);
  }
  /* Opcional: Efeito de fade e deslocamento para os itens do menu */
  .blog-nav .blog-menu li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  #blog-menu-toggle:checked ~ .blog-nav .blog-menu li {
    opacity: 1;
    transform: translateX(0);
  }
  .header .container {
    flex-direction: row;
    align-items: center;
    padding: 0rem 1rem;
  }
  .menu img {
    width: auto;
    height: auto;
  }
  .menu .content p {
    width: 100%;
  }
  .blog-home {
    padding: 7rem 1rem 0rem;
  }
  .featured-post {
    width: auto;
  }
  .featured-post img {
    height: 200px;
  }
  .blog-item img, .blog-item-v img {
    height: 200px;
  }
  .featured-content h2 {
    font-size: 1.2rem;
    width: 100%;
  }
  .featured-content p {
    font-size: 0.9rem;
    width: 100%;
  }
  .blog-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 1.5rem 1rem; /* Garante espaçamento lateral */
  }
  .blog-item, .blog-item-v {
    flex: none;
    display: inline-block;
    width: 80%;
    max-width: 500px;
    margin: 0 0.5rem; /* 1rem de margem em ambos os lados */
    scroll-snap-align: start;
  }
  .blog-grid::-webkit-scrollbar {
    display: none;
  }
  .blog-item, .blog-item-v {
    scroll-snap-align: start;
    scroll-margin: 0 1rem 0 1rem; /* margem de 1rem à esquerda e à direita */
  }
  .blog-item p, .blog-item-v p {
    font-size: 0.8rem;
    font-weight: 600;
  }  
  .footer-mobile {
    height: auto;
    width: 100vw;
  }
}
