/* hero-streaming.css - Novo Hero Combo (V17 - streaming focused backgrounds) */

:root {
    --hero-h-height: 600px;
    /* Streaming service colors */
    --c-max: #5412ba;
    --c-disney: #0063e5;
    --c-prime: #00a8e1;
    --c-globoplay: #fb0234;
    /* Brand aliases — fonte da verdade: tema/tokens.css */
    --c-orange: var(--vn-neon-orange, #ff4d1d);
    --c-cyan: var(--vn-neon-blue, #00ffea);
}

.hero-streaming-section {
    position: relative;
    height: 100%;
    /* Ocupa toda a altura do slide pai */
    width: 100%;
    overflow: hidden;
    background-color: #050b14;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Padding controlado pelo container flex */
}

/* BACKGROUNDS */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hero-bg-layer.active {
    opacity: 1;
}

#bg-default {
    background-color: #050b14;
    /* Imagem da Família com Overlay Escuro para Leitura */
    background-image:
        linear-gradient(180deg, rgba(5, 11, 20, 0.6) 0%, rgba(5, 11, 20, 0.4) 50%, #050b14 100%),
        url('/media/site_images/hero/streaming/default-desktop.jpg');
    /* Ajustado caminho absoluto */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#bg-max,
#bg-disney,
#bg-prime,
#bg-appletv,
#bg-globoplay {
    background-repeat: no-repeat;
    background-size: cover;
}

#bg-disney {
    background-color: #050b14;
    background-image:
        linear-gradient(90deg, rgba(5, 11, 20, 0.94) 0%, rgba(5, 11, 20, 0.62) 38%, rgba(5, 11, 20, 0.04) 78%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.12) 0%, rgba(5, 11, 20, 0.02) 52%, rgba(5, 11, 20, 0.34) 100%),
        url('/media/site_images/hero/streaming/disney-desktop.png');
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center center, center center, center center;
}

#bg-max {
    background-color: #050b14;
    background-image:
        linear-gradient(90deg, rgba(5, 11, 20, 0.9) 0%, rgba(12, 8, 24, 0.48) 38%, rgba(84, 18, 186, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.14) 0%, rgba(5, 11, 20, 0.04) 52%, rgba(5, 11, 20, 0.4) 100%),
        url('/media/site_images/hero/streaming/max-desktop.jpg');
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center center, center center, center center;
}

#bg-prime {
    background-image:
        linear-gradient(90deg, rgba(5, 11, 20, 0.84) 0%, rgba(5, 24, 38, 0.48) 42%, rgba(0, 168, 225, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.06) 52%, rgba(5, 11, 20, 0.5) 100%),
        url('/media/site_images/hero/streaming/prime-desktop.jpg');
    background-position: center center;
}

/* Apple TV+ — foto cinema escuro com overlay pra legibilidade */
#bg-appletv {
    background-image:
        linear-gradient(90deg, rgba(5, 11, 20, 0.78) 0%, rgba(5, 11, 20, 0.28) 42%, rgba(5, 11, 20, 0.02) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.06) 0%, rgba(5, 11, 20, 0) 52%, rgba(5, 11, 20, 0.26) 100%),
        url('/media/site_images/hero/streaming/appletv-desktop.jpg');
    background-position: center center;
}

/* Globoplay - imagem oficial da categoria Novelas com overlay da marca. */
#bg-globoplay {
    background-image:
        linear-gradient(90deg, rgba(5, 11, 20, 0.78) 0%, rgba(22, 8, 16, 0.44) 36%, rgba(251, 2, 52, 0.08) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.06) 0%, rgba(5, 11, 20, 0.02) 52%, rgba(5, 11, 20, 0.34) 100%),
        url('/media/site_images/hero/streaming/globoplay-desktop.jpg');
    background-position: center center;
}

/* TEXTO & TITULOS */
.hero-title {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-gradient-hero {
    /* Gradiente Vibrante Bonitão (Laranja -> Ciano) */
    background: linear-gradient(90deg, #ff4d1d 0%, #00e6c3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    /* Fallback */
    font-weight: 800;
    display: inline-block;
    /* Garante renderização correta do gradiente */

    /* Ajuste para títulos longos (ex: Combo Disney ...) */
    font-size: 2.5rem;
    /* Tamanho base ajustado para caber melhor */
    line-height: 1.2;
}

/* Ajuste responsivo para telas maiores onde pode ser maior */
@media (min-width: 1200px) {
    .text-gradient-hero {
        font-size: 3rem;
    }
}

/* Ajuste para evitar quebra em telas médias */
@media (max-width: 1199px) {
    .text-gradient-hero {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .text-gradient-hero {
        font-size: 1.6rem;
        /* Reduzido levemente para evitar quebras ruins */
        margin-bottom: 5px;
    }
}

.text-light-80 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.text-cyan {
    color: var(--c-cyan) !important;
    text-shadow: 0 0 5px rgba(0, 230, 195, 0.4);
}

.text-orange {
    color: var(--c-orange) !important;
}

/* Ajuste de Legibilidade do termo /mês */
.price-display .term {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Quase branco total */
    font-weight: 700 !important;
    /* Mais gordo */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Sombra para contraste */
    opacity: 1 !important;
}

/* --- NOVA CLASSE ÚNICA: btn-speed-ultra (Laranja Gamer Tech) --- */
/* Usando !important e seletores de alta especificidade para vencer tema/site-dark.css */

.speed-buttons-container {
    display: flex;
    gap: 5px;
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 450px;
}

.combo-dynamic-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* BOTÃO CTA (Glass laranja — padrão dos heroes) */
.btn-hero-cta {
    background: var(--vn-glass-orange-bg);
    border: 1px solid var(--vn-glass-orange-border, #ff4d1d);
    color: #ffffff;
    font-weight: 800;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: var(--vn-glass-text-shadow);
    box-shadow: var(--vn-glass-orange-glow);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    background: var(--vn-glass-orange-bg-hover);
    box-shadow: var(--vn-glass-orange-glow-hover);
    color: #ffffff;
}

.streaming-cards-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    perspective: 1000px;
    flex-wrap: wrap;
}

.streaming-card {
    width: 108px;
    height: 158px;
    padding: 0;
    appearance: none;
    font: inherit;
    /* Fundo Gradiente "Glass Tech" mais claro para contraste com o fundo preto */
    background: linear-gradient(180deg, rgba(45, 50, 65, 0.95) 0%, rgba(25, 30, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Topo iluminado */
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    /* Sombra profunda + Brilho interno para volume */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.streaming-card:focus-visible {
    outline: 3px solid rgba(0, 230, 195, 0.95);
    outline-offset: 4px;
}

.streaming-card .card-content {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ajuste Específico MAX - Borda mais visível */
.streaming-card[data-service="max"] {
    border-bottom: 3px solid #8c4bff;
}

.streaming-card[data-service="disney"] {
    border-bottom: 3px solid var(--c-disney);
}

.streaming-card[data-service="prime"] {
    border-bottom: 3px solid var(--c-prime);
}

.streaming-card[data-service="appletv"] {
    border-bottom: 3px solid #ffffff;
}

.streaming-card[data-service="globoplay"] {
    border-bottom: 3px solid var(--c-globoplay);
}

.streaming-card:hover,
.streaming-card.active {
    transform: translateY(-10px) scale(1.06);
    /* Fundo fica ainda mais claro no hover */
    background: linear-gradient(180deg, rgba(60, 65, 80, 0.95) 0%, rgba(30, 35, 50, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.1);
}

.streaming-card.active[data-service="max"],
.streaming-card:hover[data-service="max"] {
    box-shadow: 0 0 30px rgba(140, 75, 255, 0.4);
    border-color: #8c4bff;
}

.streaming-card.active[data-service="disney"],
.streaming-card:hover[data-service="disney"] {
    box-shadow: 0 0 30px rgba(0, 99, 229, 0.4);
    border-color: var(--c-disney);
}

.streaming-card.active[data-service="prime"],
.streaming-card:hover[data-service="prime"] {
    box-shadow: 0 0 30px rgba(0, 168, 225, 0.4);
    border-color: var(--c-prime);
}

.streaming-card.active[data-service="appletv"],
.streaming-card:hover[data-service="appletv"] {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}

.streaming-card.active[data-service="globoplay"],
.streaming-card:hover[data-service="globoplay"] {
    box-shadow: 0 0 30px rgba(251, 2, 52, 0.5);
    border-color: var(--c-globoplay);
}

.streaming-logo {
    width: 76px;
    height: 46px;
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
    /* Sombra suave para garantir leitura em qualquer fundo */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.4s ease;
}

/* Logos oficiais dentro da mesma regua visual; so filtros mudam por marca. */
.streaming-card[data-service="prime"] .streaming-logo {
    filter: drop-shadow(0 0 10px rgba(0, 168, 225, 0.45));
}

.streaming-card[data-service="appletv"] .streaming-logo {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.26));
}

.streaming-card[data-service="globoplay"] .streaming-logo {
    filter: drop-shadow(0 0 10px rgba(251, 2, 52, 0.35));
}

.streaming-card:hover .streaming-logo,
.streaming-card.active .streaming-logo {
    transform: translateY(-8px) scale(1.06);
    /* Glow intenso no logo ativo */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)) brightness(1.1);
}

/* Mantem o boost do Prime mesmo no hover/active */
.streaming-card[data-service="prime"]:hover .streaming-logo,
.streaming-card.active[data-service="prime"] .streaming-logo {
    filter: drop-shadow(0 0 15px rgba(0, 168, 225, 0.7)) brightness(1.08);
}

/* Correção Específica: Botão Termos Disney (Minimalista Style) */
#btn-disney-terms {
    display: none;
    /* Oculto por padrão, JS controla o display */
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    /* Cinza claro discreto */
    background: transparent;
    border: none;
    padding: 5px 0;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 10px;
    border-bottom: 1px solid transparent;
}

#btn-disney-terms:hover {
    color: #ff4d1d !important;
    /* Laranja Neon no Hover */
    border-bottom-color: #ff4d1d;
    text-shadow: 0 0 8px rgba(255, 77, 29, 0.4);
}

#btn-disney-terms i {
    margin-right: 6px;
    font-size: 0.85rem;
    color: #ff4d1d;
}

/* Estilo da Área de Descrição (Melhoria Visual) */
.streaming-desc-container {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    padding: 15px 20px;
    border-radius: 20px;
    margin-top: 15px;
}

#service-description {
    font-family: 'Inter', sans-serif;
    /* Fonte limpa */
    font-size: 1.1rem;
    font-weight: 500;
    color: #f0f6fc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

/* PULSAÇÃO DO CTA (Consistente com arrowPulse do wrapper) */
@keyframes pulseOrange {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(255, 77, 29, 0.35);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 77, 29, 0.65), 0 0 0 4px rgba(255, 77, 29, 0.12);
    }
}

.btn-hero-cta.pulse-orange {
    animation: pulseOrange 2.4s ease-in-out infinite;
}

.btn-hero-cta.pulse-orange:hover {
    animation: none;
}

/* ANIMAÇÃO DE ENTRADA (CARROSSEL) - SLIDE LATERAL */
.hero-streaming-section .hero-title,
.hero-streaming-section .lead,
.hero-streaming-section .speed-selector,
.hero-streaming-section .price-display,
.hero-streaming-section .btn-hero-cta,
.hero-streaming-section .streaming-desc-container {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-streaming-section .streaming-cards-container {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CLASSE QUE DISPARA A ANIMAÇÃO (Mantida mas redundante para visibilidade) */
.hero-streaming-section.animate-active .hero-title,
.hero-streaming-section.animate-active .lead,
.hero-streaming-section.animate-active .speed-selector,
.hero-streaming-section.animate-active .price-display,
.hero-streaming-section.animate-active .btn-hero-cta,
.hero-streaming-section.animate-active .streaming-cards-container,
.hero-streaming-section.animate-active .streaming-desc-container {
    opacity: 1;
    transform: translateY(0);
}

/* DELAYS PARA EFEITO CASCATA (Reduzidos 50%) */
.hero-streaming-section.animate-active .hero-title {
    transition-delay: 0.05s;
}

.hero-streaming-section.animate-active .lead {
    transition-delay: 0.1s;
}

.hero-streaming-section.animate-active .speed-selector {
    transition-delay: 0.15s;
}

.hero-streaming-section.animate-active .price-display {
    transition-delay: 0.2s;
}

.hero-streaming-section.animate-active .btn-hero-cta {
    transition-delay: 0.25s;
}

.hero-streaming-section.animate-active .streaming-cards-container {
    transition-delay: 0.3s;
}

.hero-streaming-section.animate-active .streaming-desc-container {
    transition-delay: 0.35s;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .text-gradient-hero {
        font-size: 2.55rem;
    }

    .streaming-cards-container {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .streaming-card {
        width: 96px;
        height: 146px;
    }

    .streaming-logo {
        width: 68px;
        height: 42px;
        max-height: 42px;
    }

    .streaming-desc-container {
        max-width: 420px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .streaming-cards-container {
        gap: 7px;
        flex-wrap: nowrap;
    }

    .streaming-card {
        width: 84px;
        height: 128px;
    }

    .streaming-logo {
        width: 60px;
        height: 38px;
        max-height: 38px;
    }
}

@media (max-width: 991px) {
    .hero-streaming-section {
        height: 100%;
        /* Força altura total no mobile */
        min-height: auto;
        padding: 40px 0;
    }

    #bg-default {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.7) 0%, rgba(5, 11, 20, 0.5) 50%, #050b14 100%),
            url('/media/site_images/hero/streaming/default-mobile.jpg');
    }

    #bg-disney {
        background-color: #050b14;
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.34) 0%, rgba(5, 11, 20, 0.14) 34%, rgba(5, 11, 20, 0.82) 100%),
            linear-gradient(90deg, rgba(5, 11, 20, 0.7) 0%, rgba(5, 11, 20, 0.18) 55%, rgba(5, 11, 20, 0.04) 100%),
            url('/media/site_images/hero/streaming/disney-mobile.png');
        background-size: 100% 100%, 100% 100%, cover;
        background-position: center center, center center, center center;
    }

    #bg-max {
        background-color: #050b14;
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.5) 0%, rgba(5, 11, 20, 0.16) 42%, rgba(5, 11, 20, 0.78) 100%),
            linear-gradient(90deg, rgba(5, 11, 20, 0.66) 0%, rgba(12, 8, 24, 0.18) 54%, rgba(84, 18, 186, 0.04) 100%),
            url('/media/site_images/hero/streaming/max-mobile.jpg');
        background-size: 100% 100%, 100% 100%, cover;
        background-position: center center, center center, center center;
    }

    #bg-prime {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.56) 0%, rgba(5, 11, 20, 0.18) 42%, rgba(5, 11, 20, 0.84) 100%),
            linear-gradient(90deg, rgba(5, 11, 20, 0.66) 0%, rgba(5, 24, 38, 0.16) 54%, rgba(0, 168, 225, 0.08) 100%),
            url('/media/site_images/hero/streaming/prime-mobile.jpg');
        background-position: center center;
    }

    #bg-appletv {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.46) 0%, rgba(5, 11, 20, 0.1) 42%, rgba(5, 11, 20, 0.72) 100%),
            linear-gradient(90deg, rgba(5, 11, 20, 0.5) 0%, rgba(5, 11, 20, 0.1) 54%, rgba(255, 255, 255, 0.02) 100%),
            url('/media/site_images/hero/streaming/appletv-mobile.jpg');
        background-position: center center;
    }

    #bg-globoplay {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.5) 0%, rgba(5, 11, 20, 0.14) 42%, rgba(5, 11, 20, 0.72) 100%),
            linear-gradient(90deg, rgba(5, 11, 20, 0.58) 0%, rgba(35, 6, 16, 0.12) 50%, rgba(251, 2, 52, 0.08) 100%),
            url('/media/site_images/hero/streaming/globoplay-mobile.jpg');
        background-position: center top;
    }

    .streaming-cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 30px;
    }

    .streaming-card {
        width: 100px;
        height: 150px;
    }

    .streaming-logo {
        width: 70px;
        height: 42px;
        max-height: 42px;
    }

    .combo-dynamic-title {
        font-size: 1.4rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}
