/*********************************\

            base.css

\*********************************/

@font-face {
    font-family: "Manrope";
    src: url(../font/Manrope-VariableFont_wght.ttf) format("truetype-variations");
    font-weight: 100 900;
    font-style: normal;
}

/********************************\
    #CUSTOM PROPERTY
\********************************/

:root {
    --color-background: #181818;
    --color-white: #fff;
    --color-subtext: #868686;
    --color-blue: #50a7ea;
    --color-background-logo: #222222;
    --movie-classificacao-livre: #009900;
    --movie-classificacao-10: #014BB8;
    --movie-classificacao-12: #FBAE00;
    --movie-classificacao-14: #F87501;
    --movie-classificacao-16: #FE0E0D;
    --movie-classificacao-18: #0F0F0F;

    /* TIPOGRAFIA */

    /* font-family */
    --font-primary: "Manrope", sans-serif;

    /* Font Size */
    --fs-base: 62.5%;
    --fs-body: 1.6rem;

    /* Border Radius */
    --radius-tiny: 2px;
    --radius-small: 8px;
    --radius-medium: 12px ;
    --radius-large: 16px;
    --radius-extra-large: 32px;
    --radius-circle: 50%;
    --radius-full: 1000px;

    /* Font Weight */
    --weight-UltraBold: 800;
    --weight-Bold: 700;
    --weight-SemiBold: 600;
    --weight-Medium: 500;
    --weight-Regular: 400;
}

/********************************\
            #RESET
\********************************/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

li {    list-style: none;   }

a {
    color: inherit;
    text-decoration: none;
}

a,
img,
/* span, */
input,
select,
button {    display: block; }

button {    cursor: pointer;    }

button,
input,
select {
    background: none;
    border: none;
    font: inherit;
    outline: none;
}

html {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
}

body {
    background-color: var(--color-background);
    color: var(--color-white);
    font-size: var(--fs-body);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/************************************\
            #REUSED STYLE
\************************************/
/* espaçamentos padrões, por exemplo */

.container {
    max-width: 580px;
    padding-inline: 16px;
    width: 100%;
    margin-inline: auto;
}

/************************************\
            #COMPONENTS
\************************************/
/* destinados a botoes, ícones, indicadores, cards, tudo que irá se repetir */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding-inline: 60px;
    border-radius: var(--radius-small);
    cursor: pointer;
    max-width: max-content;
    transition: 0.3s ease;
}

.btn-navscreen {
    padding-inline: 20px;
    gap: 4px;
}

.btn-fill-white {
    background-color: var(--color-white);
    font-weight: var(--weight-SemiBold);
}

.btn-fill-white:hover {
    background-color: var(--color-background-logo);
    color: var(--color-white);
    svg {
        fill: var(--color-white);
    }
}
.class-config {
    font-weight: var(--weight-Bold);
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-tiny);
}

.class-config.classL {
    padding: 0px 6px;
}
.classL {background-color: var(--movie-classificacao-livre);}
.class10 {background-color: var(--movie-classificacao-10);}
.class12 {background-color: var(--movie-classificacao-12);}
.class14 {background-color: var(--movie-classificacao-14);}
.class16 {background-color: var(--movie-classificacao-16);}
.class18 {background-color: var(--movie-classificacao-18);}

/************************************\
            #HOME SECTION
\************************************/
.home {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    transition: all .5s ease;

    & .home-content {
        /* border: 1px dotted lightblue; */
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
        padding-block-start: 80px;
        position: relative;

        & .text-content {
            padding-block-start: 100px;
            & .title {
               text-align: center;
               padding-block-end: 50px;
               font-size: 1.8rem;
               font-weight: var(--weight-Bold);
            }
            .about {
               text-align: center;
               padding-inline: 20px;
               color: var(--color-subtext);
               font-size: 1.4rem;
               & span {
                font-weight: var(--weight-Bold);
               }
            }
        }
        
        .bottom-content {
            position: absolute;
            bottom: 0px;
            display: flex;
            flex-direction: column;
            align-items: center;

            .btn {
                margin-bottom: 100px;
            }

            .developed {
               font-size: 1.4rem;
               font-weight: var(--weight-Medium);
               color: var(--color-subtext);
               padding-bottom: 30px;
            }
        }
    }
}

.home.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/************************************\
            #CATALOGO PAGE
\************************************/

.all-movies {
    /* display: none; */
    padding-block-start: 80px;
    transition: all .5s ease;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    position: relative;

    .back-home {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    .all-movies-container {
        & .group-movie-title {
            font-size: 1.8rem;
            font-weight: var(--weight-Bold);
        }
        & .movies-list {
            display: grid;
            /* grid-template-columns: 1fr 1fr; */
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-block-start: 20px;
        }
        .cover-holder {
            aspect-ratio: 2 / 3;
            overflow: hidden;
            cursor: pointer;
        
            & .img-cover {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: scale 0.3s ease;
            }
        }
    }
}

.all-movies.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/************************************\
            #PREVIEW SECTION
\************************************/

.movie-preview {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: 100%;
    transition: all .5s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;

    & .preview-content {
        /* border: 1px dotted red; */
        display: flex;
        flex-direction: column;
        align-items: right;
        justify-content: center;
        gap: 10px;
        min-height: 100vh;
        width: 100%;

        .close-preview {
            position: absolute;
            top: 30px;
            right: 30px;
        }

        .movie-informations {
            margin-block: 10px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .sinopse {
            text-align: justify;
        }

        .go-movie {
            margin-block-start: 40px;
            gap: 10px;

            .icon-continue {
                display: none;
            }
        }
    }
}

.movie-preview.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.cover-holder:where(:hover, :focus-within) .img-cover {
    scale: 1.05;
}

/************************************\
            #MOVIE SECTION
\************************************/

.movie-section {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: all .5s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 100%;
    width: 100%;

    & .close-movie {
        position: absolute;
        top: 30px;
        right: 30px;
        cursor: pointer;
        z-index: 2;
    }

    /* style subtitles in video */
    video::cue {
        /* font-size: 30px;
        font-weight: var(--weight-Bold); */
        font-family: var(--font-primary);
        background-color: rgba(0, 0, 0, 0.3);
    }
}

.movie-section.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

/************************************\
            #FOOTER
\************************************/

footer {
    /* display: none; */
    font-size: 1.4rem;
    color: var(--color-white);
    font-weight: var(--weight-Medium);
    padding-block: 20px;
    margin-top: 120px;
    background-color: var(--color-background-logo);
    transition: all .5s ease;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.footer.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/************************************\
            #MEDIA QUERIES
\************************************/

/* @media (min-width: 992px) {
    .container { max-width: 950px; }

    .movies-list {
        border: 1px dotted red;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
} */

@media (min-width: 992px) {

    .container {    max-width: 950px; }
    
    .all-movies {
        & .all-movies-container {
            & .movies-list {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }

    & .movie-preview {
        background-size: cover;
        background-position: center;

        & .preview-content {
            
            h1 { font-size: 5rem; }

            .movie-informations {
                font-size: 2rem;
                margin-block: 20px;
                
            }
            & .sinopse {
                font-size: 2rem;
                width: 70%;
                text-align: justify;
                /* background-color: rgba(0, 0, 0, 0.1); */
            }

            .go-movie {
                margin-block-start: 80px;
                gap: 10px;
            }
        }
    }

    .movie-section {
        & video::cue {
            font-size: 30px;
            font-weight: var(--weight-Bold);
            font-family: var(--font-primary);
            background-color: rgba(0, 0, 0, 0.3);
        }
    }

    .home {
    & .home-content {
        & .text-content {
            & .title {
               font-size: 2.4rem;
            }
            .about {
               font-size: 1.8rem;
               padding-inline: 100px;
               /* margin-top: 50px; */
            }
        }
    }
    }
}