/* ========================================
   HERO.CSS - Estilos da Seção Hero VSL Format (TOTALMENTE CORRIGIDO)
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.hero-vsl {
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 184, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 184, 0, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.hero-content-vsl {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge-center {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid var(--gold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gold);
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden; /* Previne ícone de sair dos limites */
}

/* Animação de "respiração" super lenta */
.crown-icon {
    animation: mobileGentlePulse 150s ease-in-out infinite;
}

@keyframes mobileGentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02); /* Cresce apenas 2% */
    }
}

.hero-title-vsl {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    display: block;
    font-size: 0.6em;
    font-weight: 700;
    color: var(--gray-light);
    margin-top: var(--spacing-sm);
}

/* VSL Container */
.vsl-container {
    margin: var(--spacing-2xl) auto;
    max-width: 900px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.4s both;
    padding: 0 var(--spacing-lg);
}

.vsl-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: var(--black);
    cursor: pointer;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

.vsl-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
    pointer-events: auto;
}

/* Controle de Som Centralizado */
.sound-control-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.sound-control-wrapper.playing {
    opacity: 0;
    pointer-events: none;
}

.sound-control-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--red) 0%, #ff5555 100%);
    border: 3px solid var(--white);
    border-radius: 50px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(255, 59, 59, 0.5),
        0 0 0 0 rgba(255, 59, 59, 0.4);
    animation: soundPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 26;
}

/* Animações Desktop */
@keyframes soundPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ícone do Som */
.sound-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-control-btn i {
    font-size: 24px;
    color: var(--white);
}

/* Texto do Botão */
.sound-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover Effect */
.sound-control-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff5555 0%, var(--red) 100%);
    box-shadow: 
        0 15px 40px rgba(255, 59, 59, 0.7),
        0 0 0 5px rgba(255, 59, 59, 0.2);
}

/* Indicador de Clique */
.click-indicator {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.click-ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--white);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: clickRipple 2s ease-out infinite;
}

.click-ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.click-ripple:nth-child(3) {
    animation-delay: 1s;
}

@keyframes clickRipple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Overlay de Instrução CENTRALIZADO */
.vsl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    z-index: 15;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.vsl-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.overlay-content {
    text-align: center;
    width: 100%;
    padding: 20px;
}

/* Alerta de Som CENTRALIZADO */
.sound-alert {
    background: rgba(255, 184, 0, 0.1);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 30px 50px;
    backdrop-filter: blur(10px);
    animation: bounceIn 0.8s ease-out;
    display: inline-block;
    margin: 0 auto;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.sound-alert-icon {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: soundWave 1.5s ease-in-out infinite;
}

@keyframes soundWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.sound-alert-text {
    color: var(--white);
}

.sound-alert-text strong {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--gold);
}

.sound-alert-text span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}



/* Status do Som */
.vsl-sound-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vsl-sound-status.active {
    color: var(--green);
}

.vsl-sound-status i {
    font-size: 16px;
}

/* Hero Bottom Content */
.hero-bottom-content {
    max-width: 900px;
    margin: var(--spacing-2xl) auto 0;
    padding: 0 var(--spacing-lg);
}

.hero-description-vsl {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-vsl {
    animation: fadeInUp 1s ease-out 1s both;
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* Urgency */
.urgency-wrapper {
    margin-top: var(--spacing-lg);
}

.urgency {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    color: var(--gray-light);
    font-size: var(--text-sm);
}

/* ========================================
   MOBILE CORRECTIONS - VERTICAL VIDEO
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-2xl) 0;
        margin-top: 40px;
    }
    
    .hero-bottom-content {
        margin-top: var(--spacing-xl);
    }
    
    .vsl-container {
        margin: var(--spacing-xl) auto;
        padding: 0 var(--spacing-md);
    }
    
    /* Video Vertical Mobile */
    .video-responsive-wrapper {
        padding-bottom: 177.78%; /* 9:16 aspect ratio para vertical */
        max-width: 400px;
        margin: 0 auto;
    }
    
    .vsl-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    
    /* Controles de Som Mobile CENTRALIZADOS */
    .sound-control-wrapper {
        bottom: 50%;
        transform: translate(-50%, 50%);
        width: calc(100% - 40px);
        max-width: 320px;
        display: flex;
        justify-content: center;
    }
    
    .sound-control-btn {
        padding: 12px 20px;
        gap: 10px;
        animation: mobileSoundPulse 3s ease-in-out infinite; /* Animação mais lenta */
        width: auto;
        min-width: 250px;
    }
    
    /* Animação mobile específica e mais lenta */
    @keyframes mobileSoundPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }
    
    /* Animação de "respiração" super lenta */
    .crown-icon {
        animation: mobileGentlePulse 150s ease-in-out infinite;
    }

    @keyframes mobileGentlePulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02); /* Cresce apenas 2% */
        }
    }
    
    .sound-icon-wrapper {
        width: 30px;
        height: 30px;
    }
    
    .sound-control-btn i {
        font-size: 20px;
        animation: none; /* Remove animações extras do ícone */
    }
    
    .sound-text {
        font-size: 14px;
    }
    
    /* Overlay Mobile melhor centralizado */
    .overlay-content {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100%;
        padding: 20px;
    }
    
    .sound-alert {
        padding: 20px 30px;
        width: 90%;
        max-width: 320px;
    }
    
    .sound-alert-icon {
        font-size: 40px;
        animation: mobileSoundWave 3s ease-in-out infinite; /* Mais lento no mobile */
    }
    
    @keyframes mobileSoundWave {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    .sound-alert-text strong {
        font-size: 18px;
    }
    
    .sound-alert-text span {
        font-size: 14px;
    }
    
    /* Click indicator mais lento */
    .click-ripple {
        animation: mobileClickRipple 3s ease-out infinite;
    }
    
    @keyframes mobileClickRipple {
        0% {
            width: 15px;
            height: 15px;
            opacity: 1;
        }
        100% {
            width: 50px;
            height: 50px;
            opacity: 0;
        }
    }
    
    .vsl-sound-status {
        font-size: 12px;
    }
    
    .hero-cta-vsl {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .hero-title-vsl {
        font-size: var(--text-2xl);
    }
    
    .hero-badge-center {
        font-size: var(--text-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .crown-icon {
        font-size: var(--text-xl);
    }
    
    /* Video ainda mais vertical */
    .video-responsive-wrapper {
        max-width: 320px;
    }
    
    .vsl-wrapper {
        max-width: 320px;
    }
    
    .sound-control-btn {
        padding: 10px 15px;
        gap: 8px;
        min-width: 220px;
    }
    
    .sound-text {
        font-size: 12px;
    }
    
    .click-indicator {
        display: none;
    }
    
    .hero-description-vsl {
        font-size: var(--text-base);
        margin-bottom: var(--spacing-lg);
    }
}

/* Landscape Mobile - Mantém video horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    .video-responsive-wrapper {
        padding-bottom: 56.25%; /* Volta para 16:9 em landscape */
        max-width: 100%;
    }
    
    .vsl-wrapper {
        max-width: 600px;
    }
    
    .sound-control-wrapper {
        bottom: 20px;
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desabilita animações complexas em dispositivos lentos */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    /* ========================================
   CORREÇÃO ADICIONAL PARA VSL INFO MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* VSL Info otimizada para mobile */
    .vsl-info {
        padding: 10px 15px;
        background: rgba(255, 184, 0, 0.03);
    }
    
    .vsl-info p {
        margin: 2px 0;
        font-size: 11px;
        line-height: 1.4;
    }
    
    .vsl-info p:first-child {
        display: none; /* Esconde "Assista:" no mobile para economizar espaço */
    }
    
    .vsl-sound-status {
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 0;
        padding: 5px 0;
    }
    
    .vsl-sound-status i {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .vsl-sound-status span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .vsl-info {
        padding: 8px 10px;
    }
    
    .vsl-sound-status {
        font-size: 11px;
    }
    
    .vsl-sound-status span {
        max-width: 150px;
    }
    
    /* Para telas muito pequenas, mostra versão compacta */
    @media (max-width: 360px) {
        .vsl-sound-status span {
            display: none;
        }
        
        .vsl-sound-status::after {
            content: attr(data-status);
            margin-left: 5px;
        }
        
        .vsl-sound-status.active {
            color: var(--green);
        }
        
        .vsl-sound-status.active::after {
            content: "Ativado";
        }
        
        .vsl-sound-status:not(.active)::after {
            content: "Desativado";
        }
    }
}

}