/*
==========
Styles for header.
==========
*/

header{
    width: 100%;
    height: auto;
    position: relative;
}

header .title__one{
    color: var(--redwine-color);
    text-align: center;
}

/*
==========
Styles for main and posts.
==========
*/

main{
    width: 100%;
    height: auto;
    margin-top: 3em;
    margin-bottom: 3em;
}

main .container__posts{
    width: 100%;
    height: auto;
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.container__posts a{
    text-decoration: none;
}

/*
==========
Post card
==========
*/

.container__posts .post{
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 300px;
    width: 500px;
    max-width: 500px;
    height: 500px; /* All cards the same size */
    max-height: max-content;
}

/*
==========
Image
==========
*/

.post .container__image{
    width: 100%;
    height: 300px; /* Fixed height for all images */
    overflow: hidden;
}

.post .container__image img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Avoid deformations */
    transition: transform ease-in-out .5s;
}

.post .container__image img:hover{
    transform: scale(1.5);
}

/*
==========
Content
==========
*/

.container__general__data{
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1; /* Occupy the remaining space */
    padding: 1em;
    border-left: 1px solid var(--redwine-color);
    border-right: 1px solid var(--redwine-color);
    border-bottom: 1px solid var(--redwine-color);
}

.post .title__two{
    color: var(--redwine-color);
}

.post .sumary{ /* Summary */
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*
==========
Post data
==========
*/

.container__data__post{
    display: flex;
    gap: 1em;
    margin-top: auto;
}

.post .data__post{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .3em;
}

.post .data__post .normal{
    color: var(--dark-color);
}

.post .icon{
    width: 17px;
    height: 17px;
    display: block;
}

.post .icon svg{
    fill: var(--redwine-color);
    width: 100%;
    height: 100%;
}

/*
==========
Styles for categories.
==========
*/

.container__categories{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    gap: 1em;
}

header p{
    text-align: center;
    color: var(--dark-color);
}

.container__categories .post__categorie{
    width: max-content;
    height: auto;
    color: var(--redwine-color);
    transition: all ease-in-out .3s;
}

.container__categories .post__categorie:hover{
    width: max-content;
    height: auto;
    color: var(--redwine-color-transparent);
    transition: all ease-in-out .3s;
    cursor: pointer;
}

.empty__post{
    width: 100%;
    height: auto;
    display: flex;
    gap: 1em;
    flex-direction: column;
    align-items: center;
}

.empty__post button{
    width: max-content;
    height: auto;
    display: flex;
    gap: 1em;
    flex-direction: column;
}