@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Figtree", sans-serif;
  background-color: #f4d04e;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 100%;
  width: 327px; /* Largura base para mobile */
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
}

.card-image {
  margin-bottom: 24px;
}

.card-image img {
  width: 100%;
  border-radius: 10px;
  height: auto;
}

.tag {
  display: inline-block;
  background-color: #f4d04e;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}

.publish-date {
  color: #121212;
  font-size: 12px;
  margin-bottom: 12px;
}

.title {
  font-size: 20px;
  font-weight: 800;
  color: #121212;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.title:hover {
  color: #f4d04e;
}

.description {
  color: #7f7f7f;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.author-name {
  font-weight: 800;
  font-size: 12px;
  color: #121212;
}

/* Tablet (768px e acima) */
@media screen and (min-width: 768px) {
  .container {
    width: 380px;
  }

  .card {
    padding: 24px;
  }

  .tag {
    font-size: 14px;
  }

  .publish-date {
    font-size: 14px;
  }

  .title {
    font-size: 24px;
  }

  .description {
    font-size: 16px;
  }

  .author-name {
    font-size: 14px;
  }
}

/* Desktop (1024px e acima) */
@media screen and (min-width: 1024px) {
  .container {
    width: 384px;
  }

  .card {
    transition: transform 0.3s ease;
  }

  .card:hover {
    transform: translateY(-8px);
  }
}
