@import url('global.css');

body {
    background-color: var(--primary-color);
    margin: 0;
    height: 100vh;
}

.menu {
    background-color: var(--nav-bg-color);
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 3px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.menu .menu__logo {
    height: 30px;
    margin-left: 20px;
}

.menu .menu__lista {
    display: flex;
    justify-content: space-between;
    list-style: none;    
}


.menu .menu__lista .menu__item .menu__link {
    text-decoration: none;
    margin: 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    color: white;
    font-size: 13px;
}

.menu .menu__lista .menu__item .menu__link--disabled {
    background-color: var(--tertiary-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all .9s;
    margin-left: 6px;
}
.menu .menu__lista .menu__item .menu__link--disabled:hover {
    color: var(--tertiary-color);
    background-color: white;
    transition-duration: 1s;
}

/* secção animada */
.channels {
    height: 110vh;
    
    display: flex;
    flex-direction: column;
    font-family: 'quicksand', sans-serif;
    text-transform: uppercase;
    color: white;
    margin: auto;
    padding-top: 150px;
    background-image: linear-gradient(45deg, transparent, #2e174e, #120029, #020228);
    animation: gradient 7s ease-in infinite;
    background-size: 400% 400%;
}

.channels .channels__list {
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
}

.channels .channels__list .channels__items {
    margin: 15px;
}

.channels .channels__slogan {
    font-size: 2rem;
    text-align: center;
    margin-top: 1.2rem;
}

.channels .divider {
    margin: 2.3rem auto;
    height: 5px;
    width: 45rem;
    background-image: var(--divider-bg-color);
}

.channels .channels__signature {
    font-family: 'Quicksand',sans-serif;
    text-transform: none;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.channels .channels__signature span {
    font-size: 40px;
    font-weight: bold;
    font-family: 'Raleway',sans-serif;
}

.channels .channels__signature p:nth-of-type(1) {
    font-size: 20px;
    font-family: 'Quicksand',sans-serif;
    font-weight: normal;
}

.channels .channels__signature p:nth-of-type(2) {
    margin-bottom: 25px;
}

.channels .channels__signature p:nth-of-type(3) {
    width: 230px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    padding-bottom: 30px;
}

.channels .channels__signature .channels__btn-sign {
    font-family:'Raleway',sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    padding: 16px 60px;
    border-radius: 29px;
    font-size: 16px;
    background-image: linear-gradient(45deg,  #9b34ef 0%,
    #5e13e0 20%, transparent 100%);
    margin-bottom: 35px;
    letter-spacing: 2px;
    animation: buttonMotion 3s ease-in-out infinite;

}


.channels .channels__signature .channels__btn-sign:hover {
    cursor: pointer;
    animation-direction: alternate-reverse;
    animation: border .9s ease;
    animation-fill-mode: forwards;
}

@keyframes buttonMotion {
    0% {
        transform: rotate(0);
    }
    15% {
        transform: rotate(-13deg);
    }
    20% {
        transform: rotate(10deg);
    }
    25%{
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(10deg);
    }
    35%{
        transform: rotate(-10deg);
    }
    40%, 100%{
        transform: rotate(0);
    }

}

@keyframes border {
    from {
        outline: 3px solid #1e0150;
        background-image: linear-gradient(45deg,  #9b34ef 0%,
        #5e13e0 20%, transparent 100%);

    }

    to {
        outline: 3px solid var(--secondary-color);
        background-image: var(--btn-bg-color-gradient);
    }

}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.product {
    width: 100%;
    height: 800px;
    margin: 100px auto;
    text-align: center;
    background-image: url('../images/background-movies-series.png');
    background-size: cover;
    font-family: 'Raleway',sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    perspective: 200px;
    perspective-origin: top;
    transition: all 4s ease;
}

.product h1 {
    padding: 1rem;
    color: white;
    font-size: 32px;
    font-weight: 500;
    max-width: 70%;
    margin: 0 auto;
}

.product .product__cards {
    display: flex;
    flex-direction: row;
    color: #Fff;
    max-width: 1300px;
}

.product .product__card {
    background-image: var(--card-bg-color);
    min-height: 600px;
    padding: 40px 50px;
    margin: 40px;
    border-radius: 10px;
    text-align: start;
    font-family: 'Raleway',sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;

    transition: all 1.5s;
    
}

.product .product__card .card__display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product .product__card .card__title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 25px 30px;
}

.product .product__card .card__title h1 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 23px;
}

.product .product__card .card__title span{
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
}

.product .product__card .card__list {
    list-style: none;
    margin-bottom: 30px;
}

.product .product__card .card__list .card__list-item::before {
    content: "✙";
    margin-right: .7rem;
}

.product .product__card .card__list .card__list-item {
    font-size: 20px;
    margin: 19px;
    max-width: 80%;
    text-align: left;
}

.product .product__card .card__list .card__list-item p {
    text-align: start;
}

.product .product__card .card__button {
    text-align: center;
    font-family:'Raleway',sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    padding: 16px 60px;
    border-radius: 29px;
    font-size: 15px;
    background-image: linear-gradient(45deg,  #9b34ef 0%,
    #5e13e0 20%, transparent 100%);
    margin-top: 25px;
    letter-spacing: 3px;
    cursor: pointer;
    position: absolute;
    bottom: 1px;
    transition: all .9s;
    width: 80%;
}

.product .product__card .card__button:hover {
    outline: 3px solid #ff00e5;
    animation: border .9s;
    animation-fill-mode: forwards;
    transform: scale(1.05);
}

.product:has(.product__card:nth-child(1):hover) .product__card:nth-child(2) {
    transform: rotateY(-45deg);
}

.product:has(.product__card:nth-child(2):hover) .product__card:nth-child(1){
    transform: rotateY(45deg);
}

/* seção cards series */

.series {
    height: 950px;
    max-width: 1200px;
    margin: auto auto 370px auto;
}

.series h2 {
    color: white;
    text-align: center;
    margin: 10rem auto 3rem ;
    font-family: 'Raleway',sans-serif;
    font-weight: 500;
    font-size: 32px;
}

.series .series__gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.series .series__gallery .series__thumbs {
    opacity: 1;
}

.series .series__gallery .series__gallery-1 {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    gap: 40px;
}
.series .series__gallery .series__gallery-2 {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.series .series__gallery .series__thumbs .series__image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
    transition: all 2s;

    border-radius: 15px;

}

.series .series__gallery .series__thumbs .series__image:hover {
    opacity: 0;
}


.series .series__gallery .series__thumbs:hover {
    opacity: 1;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    height: 560px; 
    transition: all 1s;
    border-radius: 15px;
    outline: 2px solid #ff00e5;
}

.series .series__gallery .series__gallery-1 .series__thumbs:nth-child(1):hover {
    background-image: url('../images/hbo-hover_0.webp');  
    transform: scale(1.08);  
}

.series .series__gallery .series__gallery-1 .series__thumbs:nth-child(2):hover {
    background-image: url('../images/MAX-Hover.webp');
    transform: scale(1.08);
} 


.series .series__gallery .series__gallery-1 .series__thumbs:nth-child(3):hover {
    background-image: url('../images/DC-Hover.webp');
    transform: scale(1.08);
} 

.series .series__gallery .series__gallery-2 .series__thumbs:nth-child(1):hover {
    background-image: url('../images/WB-Hover.webp');
    transform: scale(1.08);
} 

.series .series__gallery .series__gallery-2 .series__thumbs:nth-child(2):hover {
    background-image: url('../images/CN-Hover.png');
    transform: scale(1.08);
    
} 

.series .series__gallery .series__gallery-2 .series__thumbs:nth-child(3):hover {
    background-image: url('../images/UCL-Hover.webp');
    transform: scale(1.08);
} 

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px auto auto;
    color: #9e86ff;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
}

footer p {
    font-weight: 100;
    font-size: 12px;
    margin: 15px auto;
    text-align: center;
}

footer .footer__list {
    display: flex;
    text-transform: uppercase;
    flex-direction: row;

}

footer .footer__list .footer__item {
    list-style: none;
    margin:  auto 18px;
    transition: all  1s;
}

footer .footer__list .footer__item:hover {
    color: #9b34ef;
    cursor: pointer;
    transform: scale(1.1);
}

footer .social__list {
    display: flex;
    flex-direction: row;
    margin: 70px auto 20px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    
    transition: all  1s;
}

footer .social__list .social__item{
    list-style: none;
    padding: 10px 20px;
}


footer .social__list .social__item img:hover {
    color: #9b34ef;
    transform: scale(1.1);
    cursor: pointer;
}

/* Custom Scroll */

::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--tertiary-color);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
  }

  /* RESPONSIVE */

  @media (max-width: 768px) {


    header {
        width: 100vw;
    }

    .menu {
        display: flex;
        padding: 60px 10px;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 25px;
        align-items: center;
        width: 100vw;
    }

    .menu .menu__logo {
        height: 25px;
        margin-left: 20px;
    }

    .channels .channels__slogan p {
        width: 85%;
        margin: auto;
    }

    .channels .channels__list {
        flex-wrap: wrap;
        gap: 10px;
        margin: auto;
    }

    .channels .divider {
        width: 50%;
    }

    #product {
        height: 100%;
    }

    .product .h1 {
        padding: 0;
        font-size: 2rem;
        max-width: 86% ;
    }

    .product .product__card {
        margin: 25px;
        padding: 50px 10px;
    }

    .product .product__cards {
        display: flex;
        flex-direction: column;
        color: #Fff;
        max-width: 450px;
    }

    .product .product__card .card__title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 25px 0;
        text-align: center;
    }

    .product .product__card .card__list .card__list-item {
        font-size: 17px;
        margin: 19px;
        max-width: 80%;
        text-align: left;
    }

    .product .product__card .card__button {
        border-radius: 35px;
    }


    .product:has(.product__card:nth-child(1):hover) .product__card:nth-child(2) {
        transform: rotateY(0deg);
    }
    
    .product:has(.product__card:nth-child(2):hover) .product__card:nth-child(1){
        transform: rotateY(0deg);
    }

    .series {
        height: 630px;
        margin: auto;
    }

    .series .series__gallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    .series .series__gallery .series__gallery-1 {
        display: flex;
        flex-direction: column;
    }


    .series .series__gallery .series__gallery-2 {
        display: flex;
        flex-direction: column;
    }

    .series .series__gallery .series__thumbs .series__image {
        width: 90%;
        max-height: 460px;
        object-fit: cover;
        object-position: center;
        transition: all 2s;
    
        border-radius: 15px;
    
    }

    .series .series__gallery .series__thumbs:hover {
        opacity: 1;
        object-fit: cover;
        object-position: center;
        background-size: cover;
        height: 460px; 
        transition: all 1s;
        border-radius: 15px;
        outline: 2px solid #ff00e5;
    }
    
    .series .series__gallery .series__gallery-1 .series__thumbs:nth-child(1):hover {
        background-image: url('../images/hbo-hover_0.webp');  
        width: 90%;
        height: auto;
        transform: none;
    }
    
    .series .series__gallery .series__gallery-1 .series__thumbs:nth-child(2):hover {
        background-image: url('../images/MAX-Hover.webp');
        
        height: auto;
        width: 90%;
        transform: none;
    } 
    
    
    .series .series__gallery .series__gallery-1 .series__thumbs:nth-child(3):hover {
        background-image: url('../images/DC-Hover.webp');
        
        height: auto;
        width: 90%;
        transform: none;
    } 
    
    .series .series__gallery .series__gallery-2 .series__thumbs:nth-child(1):hover {
        background-image: url('../images/WB-Hover.webp');
       
        height: auto;
        width: 90%;
        transform: none;
    } 
    
    .series .series__gallery .series__gallery-2 .series__thumbs:nth-child(2):hover {
        background-image: url('../images/CN-Hover.png');
        
        height: auto;
        width: 90%;
        transform: none;
    } 
    
    .series .series__gallery .series__gallery-2 .series__thumbs:nth-child(3):hover {
        background-image: url('../images/UCL-Hover.webp');
        height: auto;
        width: 90%;
        transform: none;
    } 

    /* CORRIGIR SCROLL LATERAL !!!! */

    .series .series__gallery .series__gallery-1 {
        display: grid;
        grid-template-columns: repeat(3, 100%);
        grid-auto-flow: column;
        overflow: scroll hidden;
        width: 90%;
        margin: 20px 10px;
    }

    .series .series__gallery .series__gallery-2 {
        display: grid;
        grid-template-columns: repeat(3, 100%);
        grid-auto-flow: column;
        overflow: scroll hidden;
        width: 90%;
        margin: 20px 10px;
    }
    

    .series .series__gallery .series__gallery-1 .series__thumbs .series__image {
        width: 85%;
        object-fit: cover;
        object-position: center;
    }
        
    .series .series__gallery .series__gallery-2 .series__thumbs .series__image {
    width: 85%;
    object-fit: cover;
    object-position: center;
    }


    /* RODAPÉ */

    main footer {
        margin-top: 36rem;
    }

    main footer .footer__list {
        flex-direction: column;
        align-content: center;
        text-align: center;
    }


    main footer .footer__list .footer__item {
        margin: 10px auto;
    }

    main footer .footer__responsive p {
        width: 85%;
    }

    main footer .social__list .social__item img {
        box-shadow: none;
    }

  }

  @media (min-width: 769px) and (max-width: 1080px) {
    .series .series__gallery{
        margin: auto;
    }

    .series .series__gallery .series__gallery-1 {
        display: flex;
        flex-wrap: wrap;
        margin: 30px 30px;
    }

    .series .series__gallery .series__gallery-2 {
        display: flex;
        flex-wrap: wrap;
        margin: auto;
        padding: auto 30px;
    }


    main footer {
        margin-top: 100rem;
    }
  }

  @media (min-width: 1081px) {
    .series .series__gallery {
        margin: auto 20px;
    }
  }