/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;700&display=swap");

/* Variáveis CSS */
:root {
    --primary-color: #020228;
    --secondary-color: #ff00e5;
    --tertiary-color: #b535f6;
    --btn-bg-color-gradient: linear-gradient(45deg,
            #9b34ef 0%,
            #490cb0 20%,
            transparent 50%);
    --btn-link-bg-color: #fff;
    --btn-link-color: #000;
    --card-bg-color: linear-gradient(0deg, transparent, #3b1e63);
    --divider-bg-color: linear-gradient(90deg,
            #5516ba,
            rgba(255, 0, 229, 0.5) 80%);
    --nav-bg-color: rgba(0, 0, 0, 0.3);
    --text-color: #fff;
    --link-color: #9e86ff;
    --form-bg-color: rgba(211, 211, 211, 0.06);
    --form-field-bg-color: rgba(0, 0, 0, 0.2);
    --form-field-border: 1px solid rgba(255, 255, 255, 0.7);
    --form-field-placeholder: rgba(255, 255, 255, 0.7);
    --form-field-error: rgb(255, 76, 76);

    scroll-behavior: smooth;
}

/* Custom Scroll */

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

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

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

/* Estilos Globais */

body {
    font-family: "Quicksand", sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
}

main {
    background-size: cover;
    background: url("../images/background-subscription.png") no-repeat;
}

.titulo {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 2rem;
    text-align: center;
}

.texto-pequeno {
    font-size: 0.875rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.assinatura {
    padding: 100px 0;
}

.assinatura-titulo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

.assinatura-titulo {
    font-family: "Raleway", sans-serif;
    font-size: 2rem;
    font-weight: 500;
}

/* Menu */

.menu {
    width: 100%;
    padding: 10px 16px;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg-color);
    z-index: 1;
}

.menu-logo {
    width: 120px;
    display: inline-block;
}

.menu-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.menu-item {
    margin-right: 24px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-item:last-child {
    margin-right: 0;
}

.menu-botao {
    margin-right: 24px;
    padding: 8px 26px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 1s, color 1s;
    border-radius: 32px;
    background-color: var(--tertiary-color);
}

.menu-botao:hover {
    background-color: var(--btn-link-bg-color);
    color: var(--btn-link-color);
}

/* Botões específicos por contexto */

.cabecalho-botao {
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 32px;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: var(--btn-bg-color-gradient);
    background-size: 300%;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    font-family: "Raleway", sans-serif;
    background-origin: border-box;
}

.cabecalho-botao:hover {
    background-position: 100%;
    border: 2px solid var(--tertiary-color);
    transform: scale(1.05);
}

.assinatura-botao {
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 32px;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--btn-bg-color-gradient);
    background-size: 250%;
    color: var(--text-color);
    border: 2px solid transparent;
    font-family: "Raleway", sans-serif;
    background-origin: border-box;
}

.assinatura-botao:hover {
    background-position: 100%;
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer */

.rodape {
    padding: 60px 20px 40px;
    text-align: center;
}

.rodape nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    margin-bottom: 12px;
}

.rodape-link {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

.rodape-link:hover {
    color: #fff;
}

.rodape-legal {
    color: var(--link-color);
    font-family: "Quicksand", sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
}

.rodape-social {
    gap: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: 80px;
}

.rodape-social-link {
    transition: transform 0.3s;
    display: inline-block;
}

.rodape-social-link:hover {
    transform: scale(1.1);
}

.rodape-social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Animações */

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

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

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

@keyframes shake-btn {

    0%,
    10% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(10deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(10deg);
    }

    35% {
        transform: rotate(-10deg);
    }

    40%,
    100% {
        transform: rotate(0);
    }
}

/* Hero Section */

.cabecalho {
    margin-top: 50px;
    padding: 100px 0 100px;
    background: linear-gradient(-45deg, #56125b, #0f0f10, #271e6e);
    background-size: 400% 400%;
    animation: pulse-gradient 10s ease infinite alternate;
    position: relative;
}

.cabecalho::after {
    content: "";
    position: absolute;
    background: linear-gradient(0deg, var(--primary-color), transparent);
    bottom: 0;
    height: 250px;
    width: 100%;
}

.cabecalho-conteudo {
    padding: 0 40px;
    gap: 40px;
    flex-direction: column;
    align-items: center;
    display: flex;
    margin: auto;
}

.cabecalho-canais {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
}

.cabecalho-canal {
    object-fit: contain;
}

.cabecalho-titulo {
    font-family: "Raleway", sans-serif;
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

.cabecalho-titulo-leve {
    font-size: 2rem;
    font-weight: lighter;
    display: block;
}

.cabecalho .texto-pequeno {
    text-align: center;
    max-width: 300px;
}

.cabecalho-botao {
    animation: shake-btn 2.2s linear infinite;
}

/* Separator */

.divisor {
    background: var(--divider-bg-color);
    height: 5px;
    max-width: 700px;
    width: 70%;
}

/* Price Offer */

.oferta {
    font-size: 1.25rem;
    text-align: center;
}

.oferta-preco {
    font-weight: bold;
    font-size: 2.5rem;
    font-family: "Raleway", sans-serif;
}

.oferta-preco-pequeno {
    font-weight: 300;
    font-size: 1rem;
}

/* Plans Section */

.assinatura {
    padding-bottom: 100px;
    background: url("../images/background-movies-series.png") no-repeat center 200px;
    background-size: 100% auto;
    position: relative;
    width: 100%;
}

.assinatura-planos {
    perspective: 2000px;
    perspective-origin: top;
    margin: 40px 0;
    gap: 80px;
    justify-content: space-around;
    display: flex;
}

.assinatura-cartao {
    transition: transform 1s ease-in-out;
    justify-content: space-between;
    flex-direction: column;
    min-height: 600px;
    display: flex;
    border-radius: 8px;
    padding: 40px 60px;
    background: var(--card-bg-color);
}

.assinatura-planos:has(.assinatura-cartao:nth-child(1):hover) .assinatura-cartao:nth-child(2) {
    transform: rotateY(-45deg);
}

.assinatura-planos:has(.assinatura-cartao:nth-child(2):hover) .assinatura-cartao:nth-child(1) {
    transform: rotateY(45deg);
}

.assinatura-plano {
    margin-bottom: 16px;
    font-size: 1.25rem;
    justify-content: space-between;
    display: flex;
    font-family: "Raleway", sans-serif;
}

.assinatura-preco {
    font-weight: 700;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: 2rem;
}

.assinatura-preco .texto-pequeno {
    color: var(--text-color);
}

.assinatura-descricao {
    padding-left: 14px;
    margin-bottom: 10px;
    font-size: 1.25rem;
    list-style: none;
    text-align: left;
    font-family: "Raleway", sans-serif;
    line-height: 1.1;
}

.assinatura-descricao::marker {
    margin: 0 8px 0 0;
    font-size: 2rem;
    content: "+";
}

/* Content Cards */

.conteudos {
    margin: 100px auto;
}

.conteudos-container {
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    margin-top: 40px;
}

.conteudos-cartao {
    transition: transform 0.8s, background 0.8s, border 1s;
    border: 2px solid transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 16px;
}

.conteudos-cartao:hover {
    border: 2px solid var(--tertiary-color);
    transform: scale(1.05);
}

.conteudos-cartao:hover .conteudos-imagem {
    opacity: 0;
}

.conteudos-imagem {
    transition: opacity 2s;
    object-position: center;
    object-fit: cover;
    width: 100%;
}

/* Hover Effects por Card */

.conteudos-cartao:nth-child(1):hover {
    background-image: url("../images/hbo-hover_0.webp");
}

.conteudos-cartao:nth-child(2):hover {
    background-image: url("../images/MAX-Hover.webp");
}

.conteudos-cartao:nth-child(3):hover {
    background-image: url("../images/DC-Hover.webp");
}

.conteudos-cartao:nth-child(4):hover {
    background-image: url("../images/WB-Hover.webp");
}

.conteudos-cartao:nth-child(5):hover {
    background-image: url("../images/CN-Hover.png");
}

.conteudos-cartao:nth-child(6):hover {
    background-image: url("../images/UCL-Hover.webp");
}

/* Responsive Design */

@media screen and (max-width: 1200px) {
    .assinatura-planos {
        gap: 40px;
    }

    .conteudos-container {
        gap: 32px;
    }
}

@media screen and (max-width: 1140px) {
    .assinatura-planos {
        align-items: center;
        flex-direction: column;
    }

    .assinatura-cartao {
        max-width: 600px;
    }
}

@media screen and (max-width: 800px) {
    .conteudos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .assinatura {
        background: none;
    }

    .menu {
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        height: auto;
    }

    .menu-logo {
        margin: 0 auto 20px;
    }

    .menu div {
        display: flex;
        flex-direction: row;
        gap: 50px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .menu-botao,
    .menu-item {
        margin: 0;
    }

    .assinatura-preco {
        font-size: 1.5rem;
    }

    .assinatura-descricao {
        font-size: 1rem;
    }

    .titulo {
        margin-bottom: 40px;
    }

    .assinatura-plano {
        justify-content: center;
        flex-direction: column;
    }

    .assinatura-cartao {
        padding: 40px;
        width: 90%;
        margin: 0 auto;
    }

    .rodape nav {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cabecalho {
        margin-top: 115px;
    }

    .conteudos-container {
        overflow: auto hidden;
        grid-auto-flow: column;
        grid-template-columns: repeat(6, 100%);
        gap: 20px;
        width: 90%;
        margin: 0 auto;
    }
}

@media (pointer: coarse) {
    .conteudos-cartao:hover {
        transform: none;
    }

    .assinatura-planos:has(.assinatura-cartao:nth-child(1):hover) .assinatura-cartao:nth-child(2),
    .assinatura-planos:has(.assinatura-cartao:nth-child(2):hover) .assinatura-cartao:nth-child(1) {
        transform: none;
    }
}