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

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

.card {
  display: flex;
  background: white;
  max-width: 900px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image {
  width: 40%;
}

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

.text h2 {
  font-size: 1.2rem;
  color: hsl(217, 19%, 35%);
}

.text p {
  color: hsl(214, 17%, 51%);
  margin-top: 10px;
  font-size: 0.9rem;
}

.card-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-details {
  margin-left: 10px;
}

.name {
  font-weight: bold;
  font-size: 0.9rem;
}

.date {
  font-size: 0.75rem;
  color: hsl(214, 17%, 51%);
}

.share-container {
  position: relative;
}

.share-btn {
  background-color: hsl(210, 46%, 95%);
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.share-btn img {
  width: 15px;
}

.share-popup {
  display: none;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 50px;
  right: 0;
  background-color: hsl(217, 19%, 35%);
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.share-popup img {
  width: 16px;
  cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card-image {
    width: 100%;
    height: 200px;
  }

  .card-content {
    width: 100%;
    padding: 1.5rem;
  }

  .text h2 {
    font-size: 1rem;
  }

  .share-popup {
    right: 50%;
    transform: translateX(50%);
  }
}
