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

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

:root {
  --white: rgb(255, 255, 255);
  --grey-900: rgb(72, 85, 106);
  --grey-500: rgb(110, 128, 152);
  --grey-400: rgb(157, 174, 194);
  --grey-200: rgb(236, 242, 248);

  /* === Text Preset 1 (Bold) === */
  --text-preset-1-font-size: 20px;
  --text-preset-1-line-height: 130%;
  --text-preset-1-letter-spacing: 0.25px;
  --text-preset-1-font-weight: 700; /* Manrope Bold */

  /* === Text Preset 2 (Bold) === */
  --text-preset-2-bold-font-size: 13px;
  --text-preset-2-bold-line-height: 140%;
  --text-preset-2-bold-letter-spacing: 0.12px;
  --text-preset-2-bold-font-weight: 700;

  /* === Text Preset 2 (Medium) === */
  --text-preset-2-medium-font-size: 13px;
  --text-preset-2-medium-line-height: 140%;
  --text-preset-2-medium-letter-spacing: 0.12px;
  --text-preset-2-medium-font-weight: 500;

  /* === Text Preset 3 === */
  --text-preset-3-font-size: 13px;
  --text-preset-3-line-height: 140%;
  --text-preset-3-letter-spacing: 0.25em;
  --text-preset-3-font-weight: 400; /* Regular */

  --spacing-0: 0px;
  --spacing-200: 16px;
  --spacing-300: 24px;
  --spacing-400: 32px;
  --spacing-700: 56px;
  --spacing-800: 64px;
  --spacing-1300: 104px;
  --spacing-2000: 160px;

  html,
  body {
    height: 100vh;
    width: 100vw;
    font-family: "Manrope", sans-serif;
    overflow: hidden;
  }
}

.text-preset-1 {
  font-size: var(--text-preset-1-font-size);
  font-weight: var(--text-preset-1-font-weight);
  line-height: var(--text-preset-1-line-height);
  letter-spacing: var(--text-preset-1-letter-spacing);
}

.text-preset-2-medium {
  font-size: var(--text-preset-2-medium-font-size);
  font-weight: var(--text-preset-2-medium-font-weight);
  line-height: var(--text-preset-2-medium-line-height);
  letter-spacing: var(--text-preset-2-medium-letter-spacing);
}

.text-preset-2-bold {
  font-size: var(--text-preset-2-bold-font-size);
  font-weight: var(--text-preset-2-bold-font-weight);
  line-height: var(--text-preset-2-bold-line-height);
  letter-spacing: var(--text-preset-2-bold-letter-spacing);
}

.text-preset-3 {
  font-size: var(--text-preset-3-font-size);
  font-weight: var(--text-preset-3-font-weight);
  line-height: var(--text-preset-3-line-height);
  letter-spacing: var(--text-preset-3-letter-spacing);
}

.container {
  width: 100%;
  height: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: var(--grey-200);
  overflow: hidden;
}

.article-card {
  width: 327px;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  position: relative;
  border-radius: 10px;
}

.article-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-image: url(../images/drawers.jpg);
  background-size: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.article-card__details {
  padding-inline: 30px;
  padding-block-start: 32px;
  padding-block-end: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.article-card__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: var(--grey-900);
}

.article-card__description {
  color: var(--grey-500);
}

.article-card__footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.article-card__author {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}

.article-card__author img {
  width: 40px;
  height: 40px;
  border-radius: 90px;
}

.article-card__author-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card__author-details h3 {
  color: var(--grey-900);
}

.article-card__author-details time {
  color: var(--grey-400);
}

.article-card__share-container {
  display: flex;
  align-items: center;
}

.article-card__share-button {
  height: 32px;
  width: 32px;
  border-radius: 90px;
  align-self: center;
  border: none;
  z-index: 3;
  background-color: var(--grey-200);
  color: var(--grey-500);
  cursor: pointer;
}

.article-card__share-button--active {
  background-color: var(--grey-500);
  color: var(--white);
}

.article-card__share-options {
  display: none;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  background-color: var(--grey-900);
  height: 76px;
  width: 100%;
  padding: 32px;
  align-items: center;
  gap: 24px;
  color: var(--grey-400);
}

.article-card__share-options--active{
    display: flex;
}

.article-card__share-list {
  display: flex;
  align-items: baseline;
  list-style: none;
  gap: 16px;
  color: var(--white);
}

@media screen and (min-width: 700px) {
  .article-card {
    flex-direction: row;
    width: 730px;
    height: 280px;
  }

  .article-card__image {
    height: 100%;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 10px;
  }

  .article-card__details {
    padding-inline: 40px;
    padding-block: 30px;
    gap: 24px;
  }

  .article-card__header {
    gap: 24px;
  }

  .article-card__share-container {
    position: relative;
  }

  .article-card__share-options {
    height: 55px;
    width: 248px;
    left: -90px;
    bottom: 50px;
    gap: 24px;
    color: var(--grey-400);
    border-radius: 10px;
  }

  .article-card__share-options::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 100px; 
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--grey-900); /* Or any color you want */
  }
}
