/* ================================================
   BIG BOSS — styles.css
   Fonte única: Outfit | Design premium dark
   ================================================ */

:root {
    --bg-dark: #070707;
    --red-brand: #ff3333;
    --red-button: #ff2a3a;
    --red-button-hover: #ff0f22;
    --text-color: #d8d8d8;
    --highlight: #ffffff;
    --yellow-warning: #fbc02d;
    --grid-line: rgba(255, 0, 43, 0.08);

    /* Fonte única — Outfit */
    --font-main: 'Outfit', sans-serif;

    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ── Background grid ── */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.content-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* ── Top Warning — Glassmorphism ── */
.top-warning {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: rgba(200, 210, 255, 0.9);
    text-transform: uppercase;
    text-wrap: balance;
    z-index: 10;
    /* a faixa se mede pela página (a coluna e o topo não têm posição própria):
       ocupa a largura toda da tela e fica por cima do alto da foto */
    position: absolute;
    top: 0;
    left: 0;

    /* Glassmorphism */
    background: rgba(20, 40, 120, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(80, 120, 255, 0.2);
}

.hero-visual {
    width: 100%;
    /* a altura acompanha a largura da coluna (390 x 400 no celular de referência) */
    aspect-ratio: 39 / 40;
    position: relative;
    z-index: 1;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 80%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
    /* o texto sobe sobre a foto na proporção da largura: o rótulo começa sempre logo abaixo do queixo */
    margin-top: calc(-43.66vw - 22.6px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.author-label {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--red-brand);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--highlight);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    /* texto centrado: as linhas saem com tamanho parecido, sem palavra sozinha na última */
    text-wrap: balance;
}

.sub-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--red-brand);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-wrap: balance;
}

.description {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    font-style: italic;
    color: #dfdfdf;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

/* ─────────────────────────────────────────
   CTA BUTTON — Idêntico em todo o site
───────────────────────────────────────── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff2a3a, #d72130);
    color: #fff;
    padding: 1.1rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    /* Sombra na cor do próprio botão, como nas outras LPs (a da origem era azul) */
    box-shadow:
        0 8px 32px rgba(255, 42, 58, 0.35),
        0 2px 8px rgba(255, 42, 58, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.btn-primary:hover {
    box-shadow:
        0 12px 40px rgba(255, 42, 58, 0.5),
        0 4px 16px rgba(255, 42, 58, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.arrow-icon {
    flex-shrink: 0;
}

/* ── Aviso de urgência ── */
.bottom-warning {
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--yellow-warning);
    text-align: center;
    margin-bottom: 1rem;
}

.warning-icon.yellow {
    color: var(--yellow-warning);
}

/* ─────────────────────────────────────────
   SOCIAL PROOF SECTION
───────────────────────────────────────── */
.social-proof-section {
    padding: 2rem 1.5rem 2rem;
}

.section-title {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--highlight);
    border-bottom: 1px dashed var(--grid-line);
    display: inline-block;
    padding-bottom: 0.5rem;
    width: 100%;
}

/* ── Swiper Video Carousel ── */
.videoSwiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    margin-bottom: 1.5rem;
}

.video-slide {
    background-position: center;
    background-size: cover;
    width: 250px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 2px solid #222;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.swiper-slide-active {
    border-color: var(--red-brand);
    box-shadow: 0 0 25px rgba(255, 0, 43, 0.3);
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.toggle-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    opacity: 0;
}

.video-slide:hover .toggle-play-btn,
.toggle-play-btn.show-paused {
    opacity: 1;
}

.toggle-play-btn:hover {
    background: var(--red-brand);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.toggle-mute-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.toggle-mute-btn:hover {
    background: var(--red-brand);
    border-color: #fff;
}

/* Pagination and Nav */
.swiper-pagination-bullet {
    background: #555 !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: var(--red-brand) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--red-brand) !important;
    text-shadow: 0 0 10px rgba(255, 0, 43, 0.4);
}

/* ── CTA Bottom ── */
.cta-bottom {
    text-align: center;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ── Pulse animation ── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 32px rgba(255,42,58,0.35), 0 2px 8px rgba(255,42,58,0.25), inset 0 1px 2px rgba(255,255,255,0.18); }
    50%       { box-shadow: 0 12px 48px rgba(255,42,58,0.6), 0 4px 16px rgba(255,42,58,0.45), inset 0 1px 2px rgba(255,255,255,0.18); }
}
.pulse-anim {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
    background: #030303;
    border-top: 1px solid rgba(255, 42, 58, 0.12);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 0;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--red-brand);
    text-transform: uppercase;
}

.footer-copy {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────
   JANELA DE ENTRADA — Telegram ou WhatsApp
───────────────────────────────────────── */
html:has(.janela-entrada[open]) {
    overflow: hidden;
}

.janela-entrada {
    /* o reset global zera a margem que centraliza o <dialog> */
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--highlight);
    width: min(calc(100% - 2rem), 26rem);
    max-width: none;
    max-height: calc(100dvh - 2rem);
    overflow: visible;
}

.janela-entrada::backdrop {
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.janela-caixa {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    padding: 2.25rem 1.25rem 0.75rem;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.janela-titulo {
    font-family: var(--font-main);
    font-size: clamp(1.4rem, 1.22rem + 0.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-align: center;
    text-wrap: balance;
    color: var(--highlight);
    margin-bottom: 1.6rem;
}

/* o foco inicial da janela cai no título (ver main.js), sem contorno */
.janela-titulo:focus {
    outline: none;
}

.janela-opcao {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.9rem;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.janela-telegram {
    background: #2477bf;
}

.janela-whatsapp {
    background: #1b8438;
}

.janela-cancelar {
    display: block;
    width: 100%;
    min-height: 3rem;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    border-radius: 50px;
    transition: color 0.2s ease;
}

.janela-opcao:active,
.janela-cancelar:active {
    transform: scale(0.98);
}

.janela-opcao:focus-visible,
.janela-cancelar:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .janela-opcao:hover {
        filter: brightness(1.12);
        transform: translateY(-2px);
    }

    .janela-cancelar:hover {
        color: #fff;
    }
}

@keyframes janela-entra {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
}

@keyframes janela-fundo {
    from { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .janela-entrada[open] {
        animation: janela-entra 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .janela-entrada[open]::backdrop {
        animation: janela-fundo 0.24s ease-out;
    }
}

/* ─────────────────────────────────────────
   FORA DO CELULAR — min-width: 541px
   A página segue em coluna, como as outras LPs
───────────────────────────────────────── */
@media (min-width: 541px) {
    /* a coluna parou de crescer em 540px: o recuo do texto deixa de seguir a largura da tela */
    .hero-content {
        margin-top: -258px;
    }

    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    /* a coluna é mais estreita que a tela: a foto some nas laterais em vez de acabar num corte */
    .hero-image-container::after {
        top: 0;
        height: auto;
        background:
            linear-gradient(to bottom, transparent 20%, var(--bg-dark) 100%),
            linear-gradient(to right, var(--bg-dark), transparent 14%, transparent 86%, var(--bg-dark));
    }
}
