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

.link-card
    position relative
    &__link
        position relative
        display block
        padding-top 100%
        line-height 1.6
        color $color-white
        text-decoration none
        background-color $color-steel-blue
        background-position center
        background-size cover
        border-radius 4px
        overflow hidden
        transition box-shadow .3s

        &:hover
            color $color-white

        +hover()
            &:hover
                box-shadow 0 8px 16px 0 rgba($color-black, .16)

        &:before
            position absolute
            content ''
            left 0
            top 0
            width 100%
            height 100%
            opacity .55
            background linear-gradient(180deg, rgba($color-black, 0) 0%, $color-black 100%)

    &__footer
        position absolute
        display flex
        justify-content space-between
        align-items flex-end
        left 0
        bottom 0
        width 100%
        padding 2rem 1.5rem
        color $color-white
        font-size 16px
        font-weight 500
        line-height 1.5

    &__title
        padding-right 32px
    &__icon
        font-size 12px
        +desktop()
            opacity 0
            transform translateX(-5px)
            transition transform .15s, opacity .15s
    &:hover &__icon
        opacity 1
        transform translateX(0)