/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --primary-color: #000000;
  --border-color: #e5e7eb;
  --radius: 0.5rem;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.logo-sub {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--gray-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text-color);
}

.nav-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Main Content */
.main {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.5s ease-out;
}

.main-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sub-heading {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
}

/* Blog Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

.blog-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-image-container {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.blog-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background-color: var(--gray-100);
  border-radius: 9999px;
  color: var(--gray-700);
}

.card-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  color: var(--gray-600);
  margin-bottom: 1rem;
  /* Limit to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-share {
  background: none;
  border: none;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: var(--transition);
}

.card-share:hover {
  background-color: var(--gray-100);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.read-more:hover {
  color: var(--gray-700);
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--gray-500);
}

/* Post Detail */
.post-detail {
  padding-top: 6rem;
  padding-bottom: 4rem;
  animation: fadeIn 0.3s ease-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text-color);
}

.back-link svg {
  margin-right: 0.5rem;
}

.post-content {
  max-width: 48rem;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-header-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.meta-separator {
  margin: 0 0.25rem;
}

.post-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-body {
  margin-bottom: 2rem;
}

.post-body h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.post-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.post-body ul, .post-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.post-body a {
  color: #3b82f6;
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body blockquote {
  border-left: 4px solid var(--gray-300);
  padding-left: 1rem;
  font-style: italic;
  margin: 1rem 0;
}

/* Share Section */
.share-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  margin-top: 2rem;
}

.share-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--gray-100);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-color);
  transition: var(--transition);
}

.share-button:hover {
  background-color: var(--gray-200);
}

/* Footer */
.footer {
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-info {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-info {
    margin-bottom: 0;
  }
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-nav {
    margin-bottom: 0;
  }
}

.footer-link {
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-color);
}

.footer-copyright {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: right;
  }
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-800);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Share Menu */
.share-menu {
  position: relative;
}

.share-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 12rem;
  z-index: 10;
  animation: slideUp 0.2s ease-out;
}

.share-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.share-dropdown-item:hover {
  background-color: var(--gray-100);
}

.share-dropdown-item svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.75rem;
}
.logo-img {
  width: 150px; /* Ajuste o valor conforme o necessário */
  height: auto; /* Mantém a proporção original */
  max-width: 100%; /* Garante que não ultrapasse o contêiner */
  object-fit: contain; /* Ajusta o conteúdo dentro do espaço definido */
}
