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

body {
  background: hsl(210, 46%, 95%);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  max-width: 730px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(70, 96, 187, 0.15);
}

.card-image {
  width: 285px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.5rem;
  color: hsl(217, 19%, 35%);
  margin-bottom: 1rem;
}

.card-text {
  color: hsl(214, 17%, 51%);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.card-footer {
  display: flex;
  align-items: center;
  position: relative;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

.author-details {
  margin-right: auto;
}

.author-name {
  color: hsl(217, 19%, 35%);
  font-weight: bold;
  display: block;
  font-size: 1rem;
}

.publish-date {
  color: hsl(212, 23%, 69%);
  font-size: 0.9rem;
}

.share-btn {
  background: hsl(210, 46%, 95%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s;
}

.share-btn:hover {
  background: hsl(214, 17%, 51%);
}

.share-popup {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  background: hsl(217, 19%, 35%);
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 40, 51, 0.15);
  color: #fff;
  gap: 1rem;
  align-items: center;
  z-index: 10;
  flex-direction: row;
}

.share-popup span {
  margin-right: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.share-popup a img {
  width: 20px;
  margin-left: 10px;
}

.share-popup.active {
  display: flex;
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    max-width: 340px;
  }
  .card-image {
    width: 100%;
    height: 200px;
  }
  .card-content {
    padding: 1rem;
  }
}
