@import '../colors';

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

.heading-holder {
    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;
    }
}

.fan-feature-list {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    
    li {
        border-radius: 7px;
        background-color: rgba(white, 0.1);
        box-shadow: 5px 5px 10px -5px darken($dark-blue, 5%);
        color: $blue-grey;
        width: 25vw;
        height: 25vw;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        text-align: center;
        margin: 10px 2vw;
        line-height: 1.5;
    }

    label {
        display: block;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    ion-icon {
        margin: 0 auto;
        display: block;
        font-size: 1.8rem;
    }
}

.stories {
    display: inline-block;
    list-style: none;
    padding: 0 5%;
    margin: 20px 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

    li {
        margin-right: 15px;
        display: inline-block;

        &.inactive img {
            background-color: $blue-grey;
        }

        img {
            border-radius: 50%;
            width: 50px;
            height: 50px;
            margin: 0 auto;
            display: block;
            background-color: $pink;
            padding: 2px;
            object-fit: contain;            
        }
        
        ion-icon {
            width: 50px;
            height: 50px;
            display: block;
            color: $pink;
            margin: 0 auto;
        }

        span {
            display: block;
            margin-top: 7px;
            color: $blue-grey;
            font-size: 0.9rem;
            text-align: center;
        }
    }
}

.story-slides {
    position: fixed;
    top: 0;
    z-index: 1;
    height: calc(100vh - 55px);
    width: 100%;
    transform: scale(0);
    transition: transform 0.3s;

    &.active {
        transform: scale(1);
    }
    
    ion-slide {
        display: block;        
        overflow: hidden;
        height: 100%;
        position: relative;
        transition: transform 0.3s;
        box-shadow: 10px 10px 15px -7px darken($dark-blue, 10%);
        width: 100%;
        background-color: rgba(black, 0.9);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        overflow: hidden;
    }

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: rgba(black, 0.8);
        padding: 10px 15px;


        h5 {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            color: $blue-grey;
            font-size: 1rem;
            margin: 0;

            img {
                width: 30px;
                height: 30px;
                border-radius: 50%;
                background-color: $blue-grey;
                padding: 1px;
                object-fit: contain;
                margin-right: 10px;
            }
        }


        button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid $blue-grey;
            background-color: transparent;
            color: $blue-grey;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
    }

    .action-buttons {
        position: absolute;
        left: 0;
        bottom: 20px;
        width: 70%;
        margin-left: 15%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        background-color: rgba(black, 0.6);
        border-radius: 30px;
        z-index: 1;

        button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid rgba($blue-grey, 0.6);
            background-color: transparent;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: 20px;
            }

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

    .emoji-buffer {
        position: absolute;
        left: 0;
        top: 70px;
        height: 90%;
        width: 100%;
        transform: translateY(10vh);

        &.active {
            animation: riseUp 2s forwards linear;
        }

        @keyframes riseUp {
            0% {
                transform: translateY(20vh);
            }
            50% {
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-20vh);
            }
        }

        img {
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;            
            animation: bigSmall 1s infinite linear;
        }

        @keyframes bigSmall {
            0% {
                transform: scale(1);
            }
            25% {
                transform: scale(1.2);
            }
            50% {
                transform: scale(0.9);
            }
            100% {
                transform: scale(1);
            }
        }
    }
}

.social-login {
    width: 100%;
    height: calc(100vh - 55px);
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(black, 0.5);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;

    &.active {
        pointer-events: all;
        opacity: 1;
    }

    .login-box {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0px 0px 5px $dark-blue;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        background-color: white;
        padding: 20px;

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 50px;
            font-size: 1rem;
            color: darken($blue-grey, 20%);
            font-weight: 500;
            background-color: lighten($light-grey, 45%);
            width: 100%;
            border-radius: 30px;
            box-shadow: 2px 2px 5px $blue-grey;

            img {
                margin-left: 10px;
                width: 30px;
                height: 30px;
            }
        }
    }
}

.profile {
    position: absolute;
    top: 15px;
    right: 15px;
    
    img {
        width: 40px;
        height: 40px;
        display: block;
        border-radius: 50%;
        object-fit: contain;
        margin: 0 auto;
        background-color: rgba($blue-grey, 0.6);
    }

    p {
        text-align: center;
        font-size: 12px;
        color: $blue-grey;
        margin-top: 5px;
        letter-spacing: 0.5px;
    }
}


.poll-modal {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    background-color: rgba(black, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 56px);
    width: 100%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;

    &.active {
        transform: scale(1);
        opacity: 1;
    }

    .poll-widget {
        display: block;
        width: 100%;
        height: 100%;
    }


    .back-button {
        position: absolute;
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba($pink, 0.8);
        border: 0px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
    
        ion-icon {
            color: white;
            font-size: 20px;
        }
    }
}