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

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  padding: 20px;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.article-preview {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.article-image {
  width: 380px;
}

/* Image section */
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content section */
.article-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 25px;
  margin: 0 0 15px;
  color: hsl(217, 19%, 35%);
}

.article-description {
  font-size: 13px;
  color: hsl(214, 17%, 51%);
  margin: 0 0 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Footer */
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: hsl(217, 19%, 35%);
  margin-bottom: 2px;
}

.date {
  font-size: 12px;
  color: hsl(212, 23%, 69%);
  letter-spacing: 0.5px;
}

.share {
  position: relative;
  display: inline-block;
}

.share-button {
  background: hsl(210, 46%, 95%);
  border: none;
  cursor: pointer;
  padding: 10px;
  color: hsl(217, 19%, 35%);
  border-radius: 50%;
}

.share-button img {
  width: 15px;
  height: 15px;
}

.share-links {
  position: absolute;
  top: 53%;
  right: 24%;
  display: flex;
  background: hsl(217, 19%, 35%);
  padding: 15px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: opacity 0.3s ease;
  width: 200px;
  justify-content: space-around;
  align-items: center;
}

.share-links a,
.share-links span {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.share-links a img {
  width: 15px;
  height: 15px;
}

.share-links a:hover {
  transform: scale(1.1);
}

.share-links::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 45%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid hsl(217, 19%, 35%);
}

.share-links span {
  color: hsl(212, 23%, 69%);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 10px;
}

.hidden {
  display: none;
}

.attribution {
  margin: 10px 0;
  text-align: center;
  position: absolute;
  bottom: 0;
}

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

  .article-content {
    padding: 15px;
  }

  .article-title {
    font-size: 1.3rem;
  }
}
