﻿/* Master Carousel Styles - Swiper Wrapper - V4 (Refined Gamer Tech) */

:root {
    --swiper-nav-color: #8faab9;
    /* Tech Blue-Grey Default */
    --swiper-nav-hover-bg: #ff4d1d;
    /* Laranja Gamer */
    --swiper-nav-hover-text: #fff;
    --swiper-border-default: rgba(255, 255, 255, 0.15);
}

/* O container principal do carrossel */
#master-hero-carousel {
    position: relative;
    width: 100%;
    height: 680px;
    /* Reduzido para 680px para maior consistência */
    background: #050b14;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

/* Backgrounds temáticos (Desktop) */
#master-hero-carousel #tv-assinatura {
    background-image:
        linear-gradient(180deg, rgba(5, 11, 20, 0.65) 0%, rgba(5, 11, 20, 0.92) 100%),
        url('/static/img/hero/master_carousel/tv_desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#master-hero-carousel .hero-gamer-section {
    background-image:
        linear-gradient(180deg, rgba(5, 11, 20, 0.65) 0%, rgba(5, 11, 20, 0.92) 100%),
        url('/static/img/hero/master_carousel/gamer_desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#master-hero-carousel .quem-somos-section {
    background-image:
        linear-gradient(180deg, rgba(5, 11, 20, 0.65) 0%, rgba(5, 11, 20, 0.92) 100%),
        url('/static/img/hero/master_carousel/quem_somos_desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 54px;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(5, 11, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 12px;
    z-index: 60;
    pointer-events: none;
}

.carousel-swipe-hint .hint-arrows {
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: hintSwipe 1.6s ease-in-out infinite;
}

@keyframes hintSwipe {
    0% { transform: translateX(-6px); opacity: 0.6; }
    50% { transform: translateX(6px); opacity: 1; }
    100% { transform: translateX(-6px); opacity: 0.6; }
}

/* Grid do tema aplicado no carrossel (mesma lógica do background global) */
#master-hero-carousel .hero-streaming-section,
#master-hero-carousel .hero-gamer-section,
#master-hero-carousel #tv-assinatura,
#master-hero-carousel .quem-somos-section {
    position: relative;
}

#master-hero-carousel .hero-streaming-section::before,
#master-hero-carousel .hero-gamer-section::before,
#master-hero-carousel #tv-assinatura::before,
#master-hero-carousel .quem-somos-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 20%, #000 120%),
        linear-gradient(90deg, rgba(0, 255, 234, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 234, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
}

#master-hero-carousel .hero-gamer-content,
#master-hero-carousel #tv-assinatura .section-content {
    position: relative;
    z-index: 3;
}

#master-hero-carousel .hero-streaming-content {
    position: relative;
    z-index: 3 !important;
}

.master-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    /* Força o slide a ocupar toda a altura do container */
    background: #050b14;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centraliza verticalmente o conteúdo */
}

/* Mobile: Altura dinâmica por slide para evitar corte de conteúdo */
@media (max-width: 991px) {
    #master-hero-carousel {
        height: 100svh !important;
        min-height: 100svh !important;
        max-height: 100svh !important;
    }

    .master-swiper,
    .swiper-wrapper {
        height: 100% !important;
    }

    .swiper-slide {
        height: 100% !important;
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
        padding: 0;
    }

    #master-hero-carousel .hero-streaming-section,
    #master-hero-carousel .hero-gamer-section,
    #master-hero-carousel #tv-assinatura,
    #master-hero-carousel .quem-somos-section {
        height: 100% !important;
        min-height: 100% !important;
        padding: 18px 0 22px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Backgrounds temáticos (Mobile) */
    #master-hero-carousel #tv-assinatura {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.75) 0%, rgba(5, 11, 20, 0.95) 100%),
            url('/static/img/hero/master_carousel/tv_mobile.jpg');
    }

    #master-hero-carousel .hero-gamer-section {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.75) 0%, rgba(5, 11, 20, 0.95) 100%),
            url('/static/img/hero/master_carousel/gamer_mobile.jpg');
    }

    #master-hero-carousel .quem-somos-section {
        background-image:
            linear-gradient(180deg, rgba(5, 11, 20, 0.75) 0%, rgba(5, 11, 20, 0.95) 100%),
            url('/static/img/hero/master_carousel/quem_somos_mobile.jpg');
    }

    /* Ajustes finos do slide TV no mobile para evitar corte */
    #master-hero-carousel #tv-assinatura .tv-solar-wrapper {
        height: 200px;
        margin: -6px auto 0 auto;
    }

    #master-hero-carousel #tv-assinatura .tv-solar-system {
        transform: translateX(-50%) scale(0.38);
    }

    #master-hero-carousel #tv-assinatura .tv-center-app {
        width: 210px !important;
        margin-top: 8px;
    }

    .carousel-swipe-hint {
        display: inline-flex;
    }

    /* Compactação geral dos slides no mobile */
    #master-hero-carousel .hero-streaming-section .hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2.1rem);
        margin-bottom: 10px;
    }

    #master-hero-carousel .hero-streaming-section .text-gradient-hero {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    #master-hero-carousel .hero-streaming-section .lead {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    #master-hero-carousel .hero-streaming-section .streaming-cards-container {
        gap: 12px;
        margin-top: 12px;
    }

    #master-hero-carousel .hero-streaming-section .streaming-card {
        width: 90px;
        height: 130px;
    }

    #master-hero-carousel .hero-streaming-section .combo-dynamic-title {
        font-size: 1.2rem;
    }

    #master-hero-carousel .hero-gamer-section .gamer-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

    #master-hero-carousel .hero-gamer-section .gamer-features {
        padding: 10px 0;
        margin-bottom: 12px;
    }

    #master-hero-carousel .hero-gamer-section .price-value {
        font-size: 3rem;
    }

    #master-hero-carousel .hero-gamer-section .gamer-hero-img {
        max-height: 220px;
    }

    #master-hero-carousel .quem-somos-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    #master-hero-carousel .quem-somos-section .section-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    #master-hero-carousel .quem-somos-section .digital-human-img {
        max-height: 210px;
    }

    /* Avatares sobrepostos (atrás do texto) */
    #master-hero-carousel .hero-gamer-section .hero-gamer-content {
        position: relative;
        z-index: 2;
    }

    #master-hero-carousel .hero-gamer-section .gamer-hero-image-wrapper {
        margin-top: -110px;
        z-index: 1;
    }

    #master-hero-carousel .hero-gamer-section .gamer-hero-img {
        opacity: 0.4;
    }

    #master-hero-carousel .quem-somos-section .quem-somos-content {
        position: relative;
        z-index: 2;
    }

    #master-hero-carousel .quem-somos-section .digital-human-container {
        margin-top: -110px;
        z-index: 1;
    }

    #master-hero-carousel .quem-somos-section .digital-human-img {
        opacity: 0.4;
    }

    /* Remove avatares no mobile (mantém apenas backgrounds) */
    #master-hero-carousel .hero-gamer-section .gamer-hero-image-wrapper,
    #master-hero-carousel .quem-somos-section .digital-human-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #master-hero-carousel .hero-streaming-section::before,
    #master-hero-carousel .hero-gamer-section::before,
    #master-hero-carousel #tv-assinatura::before,
    #master-hero-carousel .quem-somos-section::before {
        display: none;
    }
}

/* --- CUSTOM NAVIGATION ARROWS (REFINED GAMER STYLE - V5 COMPACT PULSE) --- */
/* Menores, mais sutis e menos "pesadas" */
.swiper-button-next,
.swiper-button-prev {
    color: var(--swiper-nav-color);
    width: 38px;
    /* Reduzido de 42px (Era 50px) */
    height: 38px;
    /* Reduzido de 42px (Era 50px) */

    /* Estilo Base: Mais visível para não sumir */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* Clip-path Tech Sutil */
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);

    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    display: flex;
    align-items: center;
    justify-content: center;

    /* Afastar mais da borda */
    margin-top: 0;
    /* Reset */

    /* ANIMAÇÃO PULSANTE MAIS INTENSA */
    animation: arrowPulse 2s infinite ease-in-out;
    /* Mais rápido (2s) */
}

@keyframes arrowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 77, 29, 0);
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }

    50% {
        /* Glow Forte Laranja */
        box-shadow: 0 0 15px rgba(255, 77, 29, 0.6);
        border-color: #ff4d1d;
        /* Borda acende total */
        background: rgba(255, 77, 29, 0.1);
        /* Fundo pisca levemente */
        transform: scale(1.08);
        /* Aumenta mais */
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 77, 29, 0);
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1);
    }
}

/* Ícone */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 0.9rem;
    /* Mais delicado */
    font-weight: 700;
}

/* Hover Effects - O "Pop" Gamer acontece aqui (Para a animação) */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    animation: none;
    /* Para o pulso para focar no hover */
    background: var(--swiper-nav-hover-bg);
    /* Laranja Sólido no Hover */
    color: var(--swiper-nav-hover-text);
    border-color: var(--swiper-nav-hover-bg);
    transform: scale(1.1);
    /* Leve aumento fixo */
    box-shadow: 0 0 20px rgba(255, 77, 29, 0.6);
    /* Glow Forte */
}

/* Posicionamento - Mais para dentro (Ainda mais) - FORÇADO */
.swiper-button-prev {
    left: 80px !important;
}

.swiper-button-next {
    right: 80px !important;
}

/* --- PAGINATION (Barra de Loadout Style - VOTO VISUAL) --- */
.swiper-pagination {
    bottom: 25px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Espaço entre as barras */
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
    /* Fundo da barra inativo */
    opacity: 1;
    /* Opacidade controlada pelo background */
    width: 60px;
    /* Largura da barra */
    height: 4px;
    /* Altura da barra */
    margin: 0 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    /* Permitir tooltip sair */
    cursor: pointer;
}

/* Barra de Progresso Interna */
.progress-bar-fill {
    display: block;
    width: 0%;
    height: 100%;
    background-color: #ff4d1d;
    /* Laranja da marca */
    border-radius: 2px;
    transition: width 0s linear;
    /* Controlado pelo JS/Autoplay se complexo, ou CSS */
}

/* Estado Ativo: Barra Cheia */
.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.2);
    /* Fundo continua */
    width: 80px;
    /* Barra ativa um pouco maior */
}

/* Animação simplificada de "enchimento" via CSS quando ativo */
.swiper-pagination-bullet-active .progress-bar-fill {
    width: 100%;
    transition: width 8s linear;
    /* Tempo do autoplay */
}

/* TÍTULOS (TOOLTIPS) NA NAVEGAÇÃO */
.bullet-title {
    position: absolute;
    bottom: 15px;
    /* Acima da barra */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Mostrar título no hover OU se for o slide ativo */
.swiper-pagination-bullet:hover .bullet-title,
.swiper-pagination-bullet-active .bullet-title {
    opacity: 1;
    bottom: 20px;
    /* Sobe um pouquinho */
}

/* Z-Index Fix */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    z-index: 50 !important;
}

/* Mobile: Ajustes de Usabilidade */
@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Mantém escondido as setas para limpar a tela */
    }

    .swiper-pagination {
        bottom: 15px !important;
    }

    /* Barras menores no mobile */
    .swiper-pagination-bullet {
        width: 40px;
    }

    .swiper-pagination-bullet-active {
        width: 50px;
    }

    /* Esconder títulos no mobile pra não poluir, só a barra basta */
    .bullet-title {
        display: none;
    }
}


