@import '../colors';

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

.back-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(white, 0.5);
    border: 0px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;

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

.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 {
    width: 100%;
    padding: 0px 7%;
    margin: 0%;
    display: inline-block;
    overflow-x: auto;
    white-space: nowrap;

    button {
        display: inline-block;
        background-color: rgba($blue-grey, 0.4);
        padding: 10px 15px;
        color: white;
        font-size: 1rem;
        font-weight: 400;
        margin-right: 5%;
        position: relative;
        border-radius: 7px;
        transition: color 0.3s, background-color 0.3s;

        &.active {
            font-weight: 500;
            background-color: white;
            color: lighten($brand-red, 10%);
        }
    }
}


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

    ion-slide {
        display: block;        
        overflow: visible;
        text-align: left;
        height: 90%;
        position: relative;        
        transform: scale(0.9);
        background-color: transparent;
        transition: transform 0.3s;

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

    .image-holder {
        position: relative;
        height: 100%;
        overflow: hidden;
        border-radius: 7px;
        box-shadow: 10px 10px 15px -7px darken($dark-blue, 10%);

        figure {
            margin: 0;
            display: block;
            width: 100%;
            height: 100%;
            filter: brightness(60%);
            transition: filter 0.3s;
            border: 0px;
            padding: 0;
            border-radius: 7px;
            overflow: hidden;

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

    .content {
        height: auto;
        position: relative;
        transform: translateY(-80%);
        box-shadow: 0px 20px 25px -10px darken($lumous-blue, 80%);
        background-color: white;
        width: 90%;
        margin: 0 auto;
        border-radius: 7px;
        overflow: visible;
        z-index: 1;
        padding-bottom: 10px;
    }

    .teams {
        display: flex;
        justify-content: space-between;
        width: 130px;
        margin: 0 auto -25px auto;
        height: 50px;
        border-radius: 30px;
        background-color: lighten(#cecece, 10%);
        align-items: center;
        padding: 0 15px;
        position: relative;
        transform: translateY(-25px);
        z-index: 1;

        span {
            font-size: 1rem;
            width: 12px;
            height: 3px;
            background-color: darken(#cecece, 15%);
        }
        
        img {
            width: 33px;
            height: 33px;
            border-radius: 50%;
        }
    }

    p, h4, h5 {
        margin: 0;
        padding: 0 10%;
        text-align: center;
    }

    .event-details {
        margin: 20px 0 5px;
        color: darken(#cecece, 30%);
        font-size: 0.8rem;
        font-weight: 500;
    }

    h4 {
        color: darken(#cecece, 50%);
        font-size: 1.1rem;
        line-height: 1.5;
    }

    h5 {
        color: darken(#cecece, 50%);
        font-size: 0.9rem;
        line-height: 1.5;
    }
}