@import '../colors';

.heading-holder {
    margin-bottom: 2.7rem;
}

.main-header {
    background: linear-gradient(90deg, lighten($brand-red, 0%), lighten($brand-red, 10%) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0px 7%;
    margin: 5% 0%;
}

.segments {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0px 7%;
    margin: 5% 0%;

    button {
        background-color: transparent;
        color: $blue-grey;
        font-size: 1.1rem;
        font-weight: 400;
        margin-right: 5%;
        position: relative;
        opacity: 0.8;

        &.active {
            font-weight: 500;
            opacity: 1;
            color: $blue-grey;

            &::before {
                content: '';
                width: 8px;
                height: 8px;
                border-radius: 50%;
                position: absolute;
                bottom: -18px;
                left: calc(50% - 4px);                                
                background-color: $blue-grey;
            }
        }
    }
}


ion-slides {
    padding: 8px 0;
    position: relative;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: visible;  
    height: 65vh;  

    ion-slide {
        display: block;        
        overflow: hidden;
        border-radius: 7px;
        text-align: left;
        height: 100%;
        position: relative;
        box-shadow: 10px 10px 15px -7px darken($dark-blue, 10%);
        transition: transform 0.3s;
        transform: scale(0.9);

        &.swiper-slide-active {
            transform: scale(1);
        }
    }

    .image-holder {
        position: relative;
        height: 40%;
        overflow: hidden;

        button {
            width: 40px;
            height: 40px;
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(#ffff, 0.5);
            border-radius: 50%;
            transition: transform 0.3s, background-color 0.3s, opacity 0.3s;

            &.hide {
                opacity: 0;
                pointer-events: none;
            }

            ion-icon {
                color: white;
                font-size: 20px;
                transition: color 0.3s;
            }
        }

        figure {
            margin: 0;
            display: block;
            width: 100%;
            height: 100%;
            filter: brightness(60%);
            transition: filter 0.3s;

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

    .content {
        background-color: white;
        padding: 0px 5% 5% 5%;
        width: 100%;
        margin: 0 auto;
        height: calc(60% - 50px);        
        overflow: hidden;
        margin-top: -1px;
        border-radius: 0px;
        transform: translateY(0px);
        box-shadow: 0px 0px 0px var(--light-grey);
        transition: border-radius 0.3s, transform 0.3s, width 0.3s, margin 0.3s, box-shadow 0.3s;
        border-bottom: 1px solid rgba(var(--light-grey-rgb), 0.3);
        z-index: 2;
    }

    h4 {
        font-size: 1.2rem;
        margin: 0px;
        line-height: 1.5;
        font-weight: 500;
        color: var(--brand-black);
        transition: opacity 0.1s;
        background-color: white;
        position: sticky;
        position: -webkit-sticky;
        top: 1px;
        z-index: 1;
        padding: 10px 0;
    }
    
    .details {
        margin: 0px;
        font-size: 0.9rem;
        line-height: 1.5;
        font-weight: 400;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        color: var(--light-grey);
        overflow: hidden;
        transition: opacity 0.1s;
    }

    .action-buttons {
        background-color: white;
        display: flex;
        justify-content: space-between;
        width: 100%;        
        height: 50px;
        padding: 0 3%;
        position: relative;
        box-shadow: 0px 0px 0px var(--light-grey);
        transition: border-radius 0.3s, transform 0.3s, width 0.3s, margin 0.3s, box-shadow 0.3s;
        z-index: 1;
        margin: 0 auto;

        .shortcuts {
            display: flex;
            align-items: center;
            height: 100%;

            button {
                background-color: #f3f3f3;
                margin-right: 5px;
                width: 30px;
                height: 30px;
                border-radius: 50%;

                &.wide-button {
                    width: auto;
                    border-radius: 5px;
                    padding: 0 10px;
                }
                

                &.active {
                    ion-icon, span {
                        color: var(--brand-red);
                    }
                }

                span {
                    vertical-align: middle;
                    color: var(--light-grey);
                }
                
                ion-icon {
                    vertical-align: middle;
                    color: var(--brand-black);
                    font-size: 1.2rem;
                }
            }
        }

        .read-more {
            background-color: transparent;
            font-size: 0.9rem;
            color: $dark-blue;
            font-weight: 400;

            ion-icon {
                font-size: 1.2rem;
                vertical-align: middle;
                color: $dark-blue;
            }
        }
    }
}