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

:root{
    --DarkGrayishBlue: hsl(217, 19%, 35%);
    --DesaturatedDarkBlue: hsl(214, 17%, 51%);
    --GrayishBlue: hsl(212, 23%, 69%);
    --LightGrayishBlue: hsl(210, 46%, 95%)
}

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

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

.article-card{
    background-color: #fff;
    display: flex;
    max-width: 730px;
    border-radius: 0.5rem;
    /* overflow: hidden; */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: auto;
    height: 285px;
}

.article-image{
    width: 40%;
}

.article-image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content{
    padding: 2rem 2.0rem;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-heading{
    font-size: 20px;
    font-weight: 700;
    color: var(--DarkGrayishBlue);
    line-height: 1.4;
    letter-spacing: 0.2px;
    padding-top: 0;
    padding-bottom: 1rem;
}

.article-text{
    color: var(--GrayishBlue);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 20px;
    letter-spacing: 0.007625rem;
}

.article-footer{
    display: flex;
    justify-content: space-between;
}

.author-info{
    display: flex;
}

.author-info img{
    border-radius: 50%;
    padding-right: 1rem;
}

.article-details .author-name{
    font-weight: 700;
    color: var(--DarkGrayishBlue);
    padding-bottom: .35rem;
}

.article-details .article-date{
    color: var(--GrayishBlue);
    font-weight: 500;
}

.share-button-container .share-button{
    padding: 0.75rem;
    border: none;
    border-radius: 50%;
    background-color: var(--LightGrayishBlue);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.share-button svg{
    fill: hsl(214, 17%, 51%); /* Desaturated Dark Blue */
    transition: fill 0.2s ease;
}

.share-button.active{
    background-color: var(--DarkGrayishBlue);
}

.hidden{
    visibility: hidden;
}

.share-options{
    width: 16rem;
    background-color: var(--DarkGrayishBlue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    /* justify-content: space-arou; */
    align-items:center;
    gap: 1rem;
    padding: 0.75rem 2rem 0.75rem 2rem;
    border-radius: 0.75rem;
    color: var(--GrayishBlue);
    position: relative;
    left: 61%;
    bottom: 50%;
    /* transform: translate(-50%, 0); */
    letter-spacing: 0.3em;
    z-index: 10;
}

.share-options::after {
    content: "";
    position: absolute;
    bottom: -23px;
    left: 50%;
    margin-left: -0.625rem;
    border-width: 0.75rem;
    border-style: solid;
    border-color: var(--DarkGrayishBlue) transparent transparent
      transparent;
  }


.share-options img{
     width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(2%) hue-rotate(248deg) brightness(114%) contrast(100%); /* Make icons white */
    transition: filter 0.2s ease;
}

.share-options a:hover img {
    filter: none; 
     filter: brightness(0) saturate(100%) invert(80%) sepia(10%) saturate(1474%) hue-rotate(180deg) brightness(101%) contrast(100%); 
}

@media(max-width: 768px){
    .article-card{
        display: flex;
        flex-direction: column;
        max-width: 327px;
        height: 533.75px;
        margin: 0;
    }
    .article-image{
        width: 100%;
    }

    .article-content{
        width: 100%;
        padding: 2.25rem 2rem 0.75rem;
    }

    .article-heading{
        font-size: 1rem;
        padding-bottom: 0.5rem;
    }

    .article-text{
        font-size: 13px;
    }

    .share-options{
        /* position: absolute; */
        width: 327px;
        left: -12%;
        bottom: 13%;
        border-bottom-left-radius: 0.625rem;
        border-bottom-right-radius: 0.625rem;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
        /* margin: 0; */
        /* padding: 1rem; */
    }

    .share{
        margin-left: 1.75rem;
        padding: 0.45rem;
        border-radius: 50%;
        background-color: var(--GrayishBlue);
    }

    .share img{
        width: 15px;
        height: 15px;
    }
    
    .share-options::after{
        display: none;
    }
}