/* Mobile: 375px - Desktop: 1440px */
/* - [Font Awesome](https://fontawesome.com) - [IcoMoon](https://icomoon.io) - [Ionicons](https://ionicons.com) */
/* Family: [Manrope](https://fonts.google.com/specimen/Manrope) - Weights: 500, 700 */
/* Font size: 13px */


:root {
    /* Colors */
    --very-dark-grayish-blue: hsl(217, 19%, 35%);
    --desaturated-dark-blue: hsl(214, 17%, 51%);
    --grayish-blue: hsl(212, 23%, 69%);
    --light-grayish-blue: hsl(210, 46%, 95%);

    /* Font */
    --ff-primary: 'Manrope';
}

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

body {
    min-height: 100vh;
    font-family: var(--ff-primary);
    background-color: var(--light-grayish-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background-color: white;
    box-shadow: 1rem 1rem 2rem -2rem black;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card__image {
  height: 265px;
  overflow: hidden;
}

.card__image img {
    width: 100%;
    display: block;
}

.card__content {
    padding: 35px;
    padding-bottom: 20px;
}

.card__title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.card__desc {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
    color: var(--grayish-blue);
    margin-bottom: 30px;
}

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


.card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.card__info {
    flex-direction: column;
    margin-left: 10px;
    font-size: 13px;
}

.card__info p:first-child {
  font-weight: 700;
  color: var(--very-dark-grayish-blue);
}

.card__info p:last-child {
  color: var(--grayish-blue);
  font-size: 0.9rem;
}

.share-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    margin-left: auto;
    background: var(--light-grayish-blue);
    border-radius: 50%;
    border: 0;
    z-index: 10;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.share-icon img {
    width: 12px;
    height: 12px;
}

.share-icon.active-btn {
  background-color: var(--grayish-blue);
}

.share-icon.active-btn img {
  filter: brightness(0) invert(1);
}

.share-menu {
    background-color: var(--very-dark-grayish-blue);
    color: var(--grayish-blue);
    display: none;
    align-items: center;
    gap: 20px;
    padding: 30px 36px;
    border-radius: 0 0 12px 12px;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    font-size: 0.8rem;
    letter-spacing: 10px;
}

.share-menu.active {
    display: flex;
}

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

@media (min-width: 900px) {

    .card {
        max-width: 700px;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .card__image {
        height: 100;
    }

    .card__image img {
        height: 100%;
        object-fit: cover;
    }

    .share-menu {
        bottom: auto;
        left: auto;
        right: 40px;
        top: 50%;
        transform: translate(9%, 20%);
        border-radius: 10px;
        padding: 16px 24px;
    }

    .share-menu::after {
        content: "";
        position: absolute;
        bottom: -10px;
        right: 24px;
        border-width: 10px 10px 0 10px;
        border-style: solid;
        border-color: var(--very-dark-grayish-blue) transparent transparent transparent;
    } 
}