:root {
  --white: #ffffff;
  --blue-100: #ecf2f8;
  --blue-200: #e4edf8;
  --blue-300: #9eafc2ff;
  --blue-500: #6d7f97ff;
  --blue-700: #48556aff;
}

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

body {
  background-color: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Manrope, sans-serif;
  height: 100vh;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 330px;
  max-width: 430px;
  margin: 1.5rem;
  border-radius: 10px;
  box-shadow: 4px 4px 4px var(--blue-200);
}

/* ----------------------------------------------- */

.image {
  height: 200px;
  overflow: hidden;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.contentSection {
  background-color: var(--white);
  padding: 2.3rem 2rem 0;
}

.shareSectionInactive {
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
}

.shareSectionActive {
  background-color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
}

.hide {
  display: none;
}

/* ----------------------------------------------- */

.title {
  color: var(--blue-700);
  line-height: 1.4;
  letter-spacing: 0.4px;
  padding-bottom: 1rem;
}

.description {
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  padding-bottom: 1rem;
}

/* ----------------------------------------------- */

.imgNameDate {
  display: flex;
  gap: 1.1rem;
  width: max-content;
}

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

.nameDate {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.name {
  color: var(--blue-700);
  font-size: 13px;
}

.date {
  color: var(--blue-300);
  font-size: 13px;
}

.shareIconInactive {
  background-color: var(--blue-100);
  fill: var(--blue-500);
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------- */

.shareSocials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

strong {
  color: var(--blue-300);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 4px;
}

.shareIconActive {
  background-color: var(--blue-500);
  fill: var(--blue-100);
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------Desktop View------------------ */

@media (min-width: 1024px) {
  .card {
    flex-direction: row;
    min-width: 745px;
    box-shadow: 4px 20px 10px var(--blue-200);
    overflow: visible;
  }

  .contentSection {
    padding: 2.3rem 2.3rem 0;
    border-radius: 0 10px 0 0;
  }

  .image {
    min-width: 40%;
    height: auto;
    border-radius: 10px 0 0 10px;
  }

  .image img {
    object-position: 5% 25%;
  }

  .title {
    font-size: 20px;
  }

  .description {
    padding-bottom: 0;
  }

  .shareSectionInactive {
    padding-bottom: 2.3rem;
    border-radius: 0 0 10px 0;
  }

  .shareActiveInactive {
    position: relative;
  }

  .shareSectionActive {
    position: absolute;
    z-index: 10;
    bottom: 100%;
    left: 89.5%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 4px 20px 10px #ecf2f88e;
    padding: 1rem 2rem;
  }

  .shareIconActive {
    display: none;
  }

  .shareSectionActive::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--blue-700);
  }

  .iconClicked {
    background-color: var(--blue-500);
    fill: var(--blue-100);
  }
}
