/* Estilos para o Blog */

.blog-section {
  background-color: var(--black);
  padding: 8rem 0 5rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.blog-header:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

.blog-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.blog-description {
  color: var(--zinc-400);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.blog-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .blog-container {
    grid-template-columns: 3fr 1fr;
  }
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .blog-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Novo estilo para o card de post */
.blog-post-card {
  background-color: var(--zinc-900);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.3);
}

.blog-post-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image img {
  transform: scale(1.08);
}

.blog-post-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.blog-post-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--gold);
  color: var(--black);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.blog-post-card:hover .blog-post-category-badge {
  background-color: var(--white);
}

.blog-post-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--zinc-400);
  font-size: 0.8rem;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-post-meta-item i {
  color: var(--gold);
  font-size: 0.9rem;
}

.blog-post-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
  color: var(--gold);
}

.blog-post-excerpt {
  color: var(--zinc-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 179, 8, 0.1);
}

.blog-post-read-time {
  color: var(--zinc-400);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-post-read-time i {
  color: var(--gold);
}

.blog-post-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  gap: 0.35rem;
  margin-top: 1rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

.blog-post-link:hover {
  color: var(--black);
  background-color: var(--gold);
  gap: 0.5rem;
}

.blog-post-link i {
  transition: transform 0.3s ease;
}

.blog-post-link:hover i {
  transform: translateX(3px);
}

/* Estilos para a sidebar do blog */
.blog-sidebar {
  background-color: var(--zinc-900);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.1);
  position: relative;
}

.sidebar-title:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

/* Estilos para o formulário de busca */
.blog-search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  width: 100%;
  position: relative;
}

.search-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--zinc-800);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  width: 100%;
  transition: all 0.3s ease;
}

.search-input-group input:focus {
  outline: none;
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.1);
}

.search-input-group button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: transparent;
  color: var(--gold);
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-input-group button:hover {
  color: var(--gold-light);
}

/* Estilos para as categorias */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.sidebar-categories li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-categories li a {
  color: var(--zinc-300);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 0;
}

.sidebar-categories li a:hover,
.sidebar-categories li.active a {
  color: var(--gold);
  transform: translateX(5px);
}

.sidebar-categories li a:before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.75rem;
  color: var(--gold);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.sidebar-categories li a:hover:before,
.sidebar-categories li.active a:before {
  opacity: 1;
  margin-right: 1rem;
}

/* Estilos para os posts recentes */
.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-posts li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.sidebar-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-posts li a {
  color: var(--zinc-300);
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-posts li a:hover {
  color: var(--gold);
}

.post-date {
  color: var(--zinc-500);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date:before {
  content: "\f017";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  color: var(--gold);
  font-size: 0.75rem;
}

/* Estilos para as tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background-color: rgba(234, 179, 8, 0.1);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tag:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* Estilos para a paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  gap: 0.75rem;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--zinc-800);
  color: var(--zinc-300);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.pagination-link:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  gap: 0.75rem;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--zinc-800);
  color: var(--zinc-300);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.pagination-number:hover {
  background-color: var(--zinc-700);
  color: var(--white);
  transform: translateY(-2px);
}

.pagination-number.active {
  background-color: var(--gold);
  color: var(--black);
  pointer-events: none;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--zinc-500);
}

/* Estilos para mensagem de nenhum post */
.no-posts {
  background-color: var(--zinc-900);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.no-posts h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.no-posts p {
  color: var(--zinc-400);
  margin-bottom: 1.5rem;
}

.error-details {
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-family: monospace;
  text-align: left;
  white-space: pre-wrap;
}

/* Estilos para a categoria atual */
.categoria-atual {
  background-color: rgba(234, 179, 8, 0.1);
  color: var(--gold);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  margin: 1.5rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.categoria-atual i {
  color: var(--gold);
}

/* Responsividade */
@media (max-width: 991px) {
  .blog-container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .blog-section {
    padding: 6rem 0 3rem;
  }

  .blog-title {
    font-size: 2.5rem;
  }

  .blog-posts {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* Estilos para a página de post individual */
.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header .blog-post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-header .blog-post-meta {
  margin-bottom: 0;
}

.blog-post-content-full {
  background-color: var(--zinc-900);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-post-content-full img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.blog-post-content-full p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--zinc-300);
}

.blog-post-content-full h2,
.blog-post-content-full h3,
.blog-post-content-full h4 {
  color: var(--gold);
  margin: 2rem 0 1rem;
  font-family: "Playfair Display", serif;
}

.blog-post-content-full ul,
.blog-post-content-full ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--zinc-300);
}

.blog-post-content-full li {
  margin-bottom: 0.5rem;
}

.blog-post-content-full blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--zinc-400);
}

.blog-post-content-full pre {
  background-color: var(--zinc-800);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post-content-full code {
  font-family: monospace;
  background-color: var(--zinc-800);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
}

.blog-post-content-full a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-content-full a:hover {
  color: var(--gold-light);
}

.blog-post-featured-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-author {
}

.blog-post-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.blog-post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-author-info h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
}

.blog-post-author-info p {
  color: var(--zinc-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background-color: var(--zinc-900);
  border: 1px solid rgba(234, 179, 8, 0.1);
}

.blog-post-share-title {
  color: var(--zinc-400);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-post-share-links {
  display: flex;
  gap: 0.75rem;
}

.blog-post-share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--zinc-800);
  color: var(--zinc-300);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.blog-post-share-link:hover {
  background-color: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

.blog-post-related {
  margin-top: 4rem;
}

.blog-post-related-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.blog-post-related-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.blog-post-related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .blog-post-related-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-post-related-posts {
    grid-template-columns: 1fr;
  }

  .blog-post-header .blog-post-title {
    font-size: 2rem;
  }

  .blog-post-featured-image {
    height: 250px;
  }
}

/* Novos estilos para melhorar o visual dos cards */
.blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: var(--zinc-900);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.1);
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(234, 179, 8, 0.2);
  border-color: rgba(234, 179, 8, 0.3);
}

.blog-post-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-post-card:hover:before {
  transform: scaleX(1);
}

.blog-post-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image img {
  transform: scale(1.1);
}

.blog-post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog-post-card:hover .blog-post-category {
  background-color: var(--white);
}

.blog-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post-date {
  color: var(--zinc-400);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-date:before {
  content: "\f017";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  color: var(--gold);
}

.blog-post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: "Playfair Display", serif;
  color: var(--white);
  transition: color 0.3s ease;
}

.blog-post-title a {
  color: inherit;
  text-decoration: none;
}

.blog-post-card:hover .blog-post-title {
  color: var(--gold);
}

.blog-post-excerpt {
  color: var(--zinc-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: auto;
  width: 100%;
}

.blog-post-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.blog-post-link:hover {
  background-color: var(--gold);
  color: var(--black);
}

.blog-post-link:hover i {
  transform: translateX(3px);
}

/* Melhorias na sidebar */
.blog-sidebar {
  background-color: var(--zinc-900);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.1);
}

.sidebar-widget {
  margin-bottom: 2.5rem;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.1);
  position: relative;
}

.sidebar-widget h3:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}

.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  background-color: var(--zinc-800);
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: var(--radius);
  color: var(--white);
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.1);
}

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: transparent;
  color: var(--gold);
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-form button:hover {
  color: var(--gold-light);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.categories-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories-list li a {
  color: var(--zinc-300);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 0;
}

.categories-list li a:hover,
.categories-list li.active a {
  color: var(--gold);
  transform: translateX(5px);
}

.categories-list li a:before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.75rem;
  color: var(--gold);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.categories-list li a:hover:before,
.categories-list li.active a:before {
  opacity: 1;
  margin-right: 1rem;
}

.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts li a {
  color: var(--zinc-300);
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.recent-posts li a:hover {
  color: var(--gold);
}
