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

/* Fonts & Colors */
body {
  font-family: 'Verdana', sans-serif;
  background-color: hsl(210, 46%, 95%);
  color: hsl(214, 17%, 51%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* Card Layout */
.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Article Image */
.card__image {
  width: 100%;
  height: auto;
}

/* Article Content */
.card__body {
  padding: 2rem;
  position: relative;
}

/* Title */
.card__body h1 {
  font-size: 1.3rem;
  color: hsl(217, 19%, 35%);
  margin-bottom: 1rem;
}

/* Description */
.card__body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

/* Author Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info img {
  width: 40px;
  border-radius: 50%;
}

.user-info strong {
  font-size: 0.9rem;
  color: hsl(217, 19%, 35%);
}

.user-info small {
  font-size: 0.8rem;
  color: hsl(212, 23%, 69%);
}

/* Share Button */
.share-button {
  background-color: hsl(210, 46%, 95%);
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.share-button img {
  width: 16px;
}

/* Share Options */
.share-options {
  position: absolute;
  bottom: 70px;
  right: 30px;
  background-color: hsl(217, 19%, 35%);
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.share-options.hidden {
  display: none;
}

.share-options span {
  color: hsl(212, 23%, 69%);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
}

.share-options img {
  width: 20px;
  cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
  .card {
    flex-direction: row;
  }

  .card__image {
    width: 40%;
    object-fit: cover;
  }

  .card__body {
    width: 60%;
  }

  .share-options {
    bottom: auto;
    top: 40px;
    right: 40px;
  }
}
