@import '~@style/_config/app-bootstrap-bulma'

$post-cover-background-color = #f3f3f3
$post-meta-text-color = #93979c
$post-meta-category-background-color = $color-gray
$post-meta-category-link-color = #272728
$post-meta-share-label-color = #272728

.post
    &__meta
        display flex
        justify-content flex-start
        align-items center
        flex-wrap wrap
        margin-top 0
        margin-bottom 15px
        color $post-meta-text-color
        font-size 12px
        line-height 1.25
        +desktop()
            margin-top -9px
            margin-bottom 33px
    &-meta__item
        margin-top 10px
        margin-bottom 10px

        +desktop()
            margin-top 0
            margin-bottom 0

        & + .post-meta__item
            +desktop()
                margin-left 32px
            +widescreen()
                margin-left 82px
        &:last-child
            margin-left auto !important
    &-meta__label
        +mobile()
            display none

    &__category
        padding 13px 29px 12px
        background $post-meta-category-background-color
        color $post-meta-text-color
        font-size 14px
        line-height 1.25
        +mobile()
            flex 1 0 100%
        +tablet-only()
            flex 1 0 100%
    &__category-label
        margin-right 10px
    &__category-link
        color $post-meta-category-link-color
        &:hover
            text-decoration underline

    &__published
        font-weight 700
        letter-spacing 1px
        text-transform uppercase
        +mobile()
            flex 1 0 50%
        +tablet-only()
            flex 1 0 50%

    &__viewed
        display flex
        align-items center
        font-weight 400
        +mobile()
            justify-content flex-end
            flex 1 0 50%
        +tablet-only()
            justify-content flex-end
            flex 1 0 50%
    &__viewed-icon
        margin-top -2px
        margin-right 10px
        font-size 9px

    &__share-links
        display flex
        align-items center
        justify-content flex-end
        +mobile()
            flex 1 0 50%
        +tablet-only()
            flex 1 0 50%
    &__share-links-label
        margin-right 10px
        color $post-meta-share-label-color
        font-size 12px
        font-weight 700
        letter-spacing 1.2px
        text-transform uppercase
    &__share-link
        margin 0 0 0 10px
        font-size 11px
        &_facebook
            color $social-brand-color-facebook
        &_ok
            color $social-brand-color-ok
        &_twitter
            color $social-brand-color-twitter
            font-size 13px
        &_vk
            color $social-brand-color-vk
            font-size 16px
        &:hover .post__share-icon
            color $color-brand

    &__cover
        width 100%
        margin-bottom 30px
        background-color $post-cover-background-color
        background-size cover
        background-position center center

        &:before
            content ''
            display block
            padding-top 36%

        +desktop()
            margin-bottom 68px

    &__content
        +widescreen()
            padding 0 225px

    &__content ~ .post__gallery
        margin-top 67px

    &__subscribe-hint
        margin-bottom 35px
        color $post-subscribe-text-color
        font-size 15px
        line-height 1.25
    &__subscribe-link
        color $color-brand
        text-decoration underline

        &:hover
            color $color-brand
            text-decoration none