@import '../colors';

.content-container {
    padding-bottom: 50px;
}

.heading-holder {
    margin-bottom: 2.7rem;
    padding: 0px 7%;

    .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;    
        margin: 5% 0%;
    }

    p {
        color: $blue-grey;
        font-size: 1.2rem;
        font-weight: 500;
    }
}

.match-card {
    width: 86%;
    margin: 0 auto;
    border-radius: 10px;
    padding: 15px 5%;
    overflow: visible;
    position: relative;
    background: linear-gradient(45deg, lighten($brand-red, 5%) 5%, lighten($dark-blue, 10%) 80%);
    box-shadow: 2px 2px 10px -2px darken($dark-blue, 5%);

    .format {
        background-color: darken($green, 5%);
        border-radius: 5px;
        padding: 7px 15px;
        color: white;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        position: absolute;
        left: 10%;
        top: -12px;
    }

    header h4 {
        color: white;
        font-size: 1.3rem;
        font-weight: 700;
        margin: 15px 0 10px;
        line-height: 1.5;
    }

    p {
        color: white;
        line-height: 1.5;
        margin: 10px 0;
        font-size: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: flex-start;

        ion-icon {
            margin-right: 10px;
            font-size: 1.2rem;
        }
    }

    .score-card {
        display: flex;
        width: 100%;
        align-items: flex-start;

        .team {
            width: 50%;
            color: white;
            padding: 7px;           
        }

        header {
            display: flex;
            width: 100%;
            justify-content: flex-start;
            align-items: center;

            img {
                width: 40px;
                height: 40px;
                margin-right: 5px;
            }

            h5 {
                color: white;
                font-size: 0.8rem;
                line-height: 1.5;
                font-weight: 500;
                margin: 0;
            }
        }

        .score {
            display: flex;
            justify-content: center;
            width: 100%;
            font-size: 1.8rem;
            align-items: center;
            font-weight: 700;
            margin-top: 5px;

            span {
                font-size: 0.8rem;
                margin-left: 10px;
                margin-top: 5px;
            }
        }
    }
}

.statistical-pages {
    list-style: none;
    padding: 0;
    width: 86%;
    margin: 0 auto;

    .collapsible-card {
        margin: 30px auto;
        border-radius: 10px;  
        overflow: hidden;
        background: linear-gradient(45deg, lighten($dark-blue, 10%) 20%, lighten($dark-blue, 15%));
        box-shadow: 5px 5px 10px -5px darken($dark-blue, 5%);
        height: 50px;

        -webkit-perspective: 1200px;
        -moz-perspective: 1200px;
        -ms-perspective: 1200px;
        perspective: 1200px;

        &.active {
            height: auto;

            header {
                border-bottom: 1px solid rgba(white, 0.1);
            }
        }

        header {
            margin: 0 auto;
            display: flex;
            width: calc(100% - 30px);
            justify-content: space-between;
            height: 50px;
            align-items: center;            
            
            label {
                font-size: 1rem;
                color: white;
                font-weight: 500;
                letter-spacing: 0.5px;
                opacity: 0.9;
            }
    
            button {
                border-radius: 50%;
                background-color: darken($green, 5%);
                box-shadow: 2px 2px 7px -2px darken($dark-blue, 10%);
                height: 30px;
                width: 30px;
                font-size: 24px;
                color: white;
            }
        }

        .view-more-button {
            display: block;
            width: 100%;
            border-radius: 7px;
            background-color: lighten($brand-red, 10%);
            font-weight: 500;
            color: white;
            font-size: 1rem;
            height: 40px;
            box-shadow: 2px 2px 7px -3px darken($dark-blue, 10%);
        }
        
        .card {
            width: 100%;
            padding: 15px;
        }

        table {
            width: 100%;
            color: white;
            font-size: 1rem;
            
            thead {

                th {
                    padding-bottom: 20px;
                }
            }
        }

        tr {            
            td {
                overflow: hidden;
                width: 100%;
                padding-bottom: 15px;
    
                span {
                    font-size: 0.8rem;
                    color: rgba(white, 0.5);
                }
    
                &:nth-child(1) {
                    width: 60%;
                }
    
                &:nth-child(2) {
                    width: 20%;
                }
    
                &:nth-child(3) {
                    width: 20%;
                }
            }
        }
    }
}

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

    ion-slide {
        display: block;        
        overflow: visible;
        text-align: left;
        height: 80%;
        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;
        opacity: 0.8;
    }

    .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;
    }
}