@use '../shared/colors' as colors;

.posts {
    display: block;
    h2, h3 {
        position: relative;
        margin: 0;
        width: fit-content;
        
        &:after {
            content: '';
            display: block;
            
            width: 75px;
            height: 5px;
            
            background-color: colors.$computerBorder;
        }
    }
    .intro {
        padding: 1rem 0;
    }

    .list {
        padding: 2rem 0;
        border-top: 5px solid colors.$primaryYellow;

        .post {

            a {
                .title {
                    padding: 0.5rem 0;
                }

                &:hover {
                    text-decoration: underline;
                    text-decoration-color: colors.$computerBorder;
                }
            }

            .description {
                margin-top: 1rem;
                padding-left: 1rem;
                border-left: 5px solid colors.$computerBorder;

                p {
                    padding: 1rem 0;
                }
            }
        }
    }
}

.post {
    display: block;

    .title {
        margin: 0.5rem 0;
    }

    .meta {
        padding-bottom: 1rem;

        border-bottom: 5px solid colors.$computerBorder;
        
        .admin-actions {
            padding-bottom: 1rem;
        }

        .published {
            font-size: 1.125rem;
        }

        .category {
            font-size: 1.125rem;
        }
    }

    .text p {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .tags {
        margin-top: 2rem;
        background-color: colors.$primaryGrey;

        .list {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 0;
            list-style: none;
            padding: 0.5rem 0.5rem;

            p {
                font-size: 0.85rem;
            }

            .tag {
                a {
                    font-size: 0.85rem;
                }
            }
        }
    }
}