:root {
    --spacing-200: 16px;
    --spacing-300: 24px;
    --spacing-400: 32px;
    --spacing-500: 40px;
    --spacing-1100: 88px;
    --grey-900: #48556A;
    --grey-500: #6E8098;
    --grey-400: #9DAEC2;
    --grey-200: #ECF2F8;
}

body {
    background-color: var(--grey-200);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0 var(--spacing-1100);
    font-family: "Manrope", sans-serif;
}

#card-container {
    box-sizing: border-box;
    max-width: 730px;
    min-height: 280px;
    display: flex;
    border-radius: 10px;
    box-shadow: 0 40px 40px -10px rgba(201, 213, 225, 50%);
}

#card-img {
    flex: 0 0 40%;
    max-width: 285px;
    object-fit: cover;
    object-position: left center;
    border-radius: 10px 0 0 10px;
}

#card-content {
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-300);
    padding: var(--spacing-400) var(--spacing-500);
    border-radius: 0 10px 10px 0;
}

#card-content p {
    margin: 0;
}

#title {
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0.25px;
    color: var(--grey-900);
}

#description {
    font-weight: 500;
    font-size: 13px;
    line-height: 140%;
    color: var(--grey-500);
}

#card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#card-author {
    display: flex;
    gap: var(--spacing-200);
    align-items: center;
}

#author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#author-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 140%;
    color: var(--grey-900);
}

#publish-date {
    font-weight: 400;
    font-size: 13px;
    line-height: 140%;
    color: var(--grey-400);
}

#share-btn {
    background-color: var(--grey-200);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

#share-btn:hover {
    background-color: var(--grey-500);
    cursor: pointer;
}

#share-toast {
    display: none;
    position: absolute;
    bottom: 160%;
    right: -108px;
    align-items: center;
    gap: 18px;
    padding: 20px var(--spacing-500);
    background-color: var(--grey-900);
    border-radius: 10px;
}

#share-toast p {
    color: var(--grey-400);
    letter-spacing: 4px;
    font-size: 13px;
}

#share-toast::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 112px;
    border-width: 12px;
    border-style: solid;
    border-color: var(--grey-900) transparent transparent transparent;
}

@media screen and (max-width: 1440px) {
    #card-container {
        max-width: 608px;
        min-height: 346px;
    }

    #card-img {
        max-width: 229px;
        object-position: center;
    }

    #card-content {
        padding: var(--spacing-500) var(--spacing-400);
    }
}

@media screen and (max-width: 767px) {
    body {
        padding: 0 var(--spacing-300);
    }

    #card-container {
        min-height: 538px;
        max-width: 450px;
        flex-direction: column;
    }

    #card-img {
        max-width: 100%;
        width: 100%;
        border-radius: 10px 10px 0 0;
    }

    #card-content {
        padding: var(--spacing-400) var(--spacing-400) var(--spacing-200) var(--spacing-400);
        border-radius: 0 0 10px 10px;
    }

    #card-footer {
        margin-top: var(--spacing-300);
    }

    #share-toast {
        bottom: -16px;
        left: -32px;
        right: -32px;
        justify-content: flex-start;
        padding: 26px var(--spacing-300);
        border-radius: 0 0 10px 10px;
    }

    #share-toast::after {
       display: none;
    }

    #share-btn {
        z-index: 1;
    }
}