/* ==========================================================================
   BBH CTA Play Pulse — Platinum
   Status: APROVADO
   Data: 2026-07-07

   Função:
   CTA audiovisual proprietário BBH, exibido no centro da capa/imagem dos vídeos.

   Comportamento aprovado:
   - azul platinado / espectral;
   - pulsar contínuo em ritmo orgânico;
   - mudança sutil de brilho/gradiente durante o pulso;
   - hover/focus/touch com tooltip;
   - inicia vídeo com áudio em 10%;
   - desaparece durante a reprodução;
   - não retorna ao pausar no meio;
   - retorna somente após reset/capa/poster;
   - preserva controles nativos/YouTube;
   - sem Bootstrap, sem inline, sem !important.
   ========================================================================== */

/* ==========================================================================
   BBH CTA Play Pulse
   Botão central sobre a capa dos vídeos — imagem
   Variante: Platinum
   ========================================================================== */

.bbh-cta-play-pulse {
    --bbh-cta-play-pulse-transform-base: none;

    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(92, 170, 255, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    opacity: 1;
    pointer-events: auto;
    background: radial-gradient(circle at 30% 25%, #182b5a 0%, #0a1433 50%, #060916 100%);
    box-shadow:
        0 0 12px rgba(0, 188, 255, 0.28),
        0 0 20px rgba(142, 86, 255, 0.2),
        inset 0 0 12px rgba(64, 125, 255, 0.24);
    transition:
        opacity 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    animation: bbh-cta-play-pulse-heartbeat 1.35s infinite;
}

.bbh-cta-play-pulse--center {
    --bbh-cta-play-pulse-transform-base: translate(-50%, -50%);

    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
}

.bbh-cta-play-pulse--platinum::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 24%, rgba(143, 245, 255, 0.22) 0%, rgba(143, 245, 255, 0) 42%),
        conic-gradient(from 210deg, #00c6ff 0deg, #2f7dff 42%, #8c5dff 76%, #53e3ff 100%);
    animation: bbh-cta-play-pulse-ring 1.35s infinite;
    opacity: 0.58;
    pointer-events: none;
}

.bbh-cta-play-pulse--platinum:hover {
    background: radial-gradient(circle at 30% 22%, #20346c 0%, #0d1b42 52%, #070b1c 100%);
    box-shadow:
        0 0 14px rgba(0, 205, 255, 0.4),
        0 0 26px rgba(161, 102, 255, 0.34),
        inset 0 0 14px rgba(103, 152, 255, 0.3);
}

.bbh-cta-play-pulse--platinum:hover::before {
    background:
        radial-gradient(circle at 30% 24%, rgba(170, 250, 255, 0.3) 0%, rgba(170, 250, 255, 0) 45%),
        conic-gradient(from 205deg, #00d8ff 0deg, #3f88ff 40%, #a371ff 78%, #79f0ff 100%);
    animation: bbh-cta-play-pulse-ring 1.2s infinite;
    opacity: 0.7;
}

/* ==========================================================================
   BBH CTA Play Pulse — Estados de visibilidade
   ========================================================================== */

.bbh-cta-play-pulse.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bbh-cta-play-pulse.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bbh-cta-play-pulse.is-hidden + .bbh-cta-play-pulse-tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bbh-cta-play-pulse:focus-visible {
    outline: 2px solid rgba(143, 245, 255, 0.95);
    outline-offset: 4px;
}

/* ==========================================================================
   BBH CTA Play Pulse — Core / Iconografia
   ========================================================================== */

.bbh-cta-play-pulse__core {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbh-cta-play-pulse__icon {
    width: 34px;
    height: 34px;
    fill: #ffffff;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.bbh-cta-play-pulse__icon--play {
    display: none;
}

.bbh-cta-play-pulse__icon--audio {
    display: block;
    width: 42px;
    height: 42px;
    fill: none;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.18));
    pointer-events: none;
}

.bbh-cta-play-pulse__speaker {
    fill: #ffffff;
}

.bbh-cta-play-pulse__wave {
    stroke: #ffffff;
    stroke-width: 1.7;
    stroke-linecap: round;
    fill: none;
    transition:
        stroke 0.2s ease,
        stroke-width 0.2s ease;
}

.bbh-cta-play-pulse:hover .bbh-cta-play-pulse__speaker {
    fill: #eef6ff;
}

.bbh-cta-play-pulse:hover .bbh-cta-play-pulse__wave--1 {
    stroke: #5ff7ff;
    stroke-width: 2;
}

.bbh-cta-play-pulse:hover .bbh-cta-play-pulse__wave--2 {
    stroke: #00c2ff;
    stroke-width: 1.8;
}

.bbh-cta-play-pulse:hover .bbh-cta-play-pulse__wave--3 {
    stroke: #b67bff;
    stroke-width: 1.7;
}

/* ==========================================================================
   BBH CTA Play Pulse — Animações legadas preservadas
   Ritmo: TUM tum...... TUM tum......
   ========================================================================== */

@keyframes bbh-cta-play-pulse-ring {
    0% {
        filter: saturate(1.06) brightness(0.94);
        opacity: 0.52;
        box-shadow:
            0 0 8px rgba(0, 202, 255, 0.22),
            0 0 16px rgba(125, 95, 255, 0.16);
    }

    18% {
        filter: saturate(1.34) brightness(1.14);
        opacity: 1;
        box-shadow:
            0 0 14px rgba(0, 215, 255, 0.44),
            0 0 24px rgba(157, 102, 255, 0.38);
    }

    34% {
        filter: saturate(1.15) brightness(1.03);
        opacity: 0.68;
        box-shadow:
            0 0 10px rgba(0, 195, 255, 0.3),
            0 0 18px rgba(122, 92, 255, 0.25);
    }

    52% {
        filter: saturate(1.5) brightness(1.22);
        opacity: 0.74;
        box-shadow:
            0 0 18px rgba(0, 222, 255, 0.5),
            0 0 28px rgba(179, 113, 255, 0.4);
    }

    100% {
        filter: saturate(1.06) brightness(0.94);
        opacity: 0.52;
        box-shadow:
            0 0 8px rgba(0, 202, 255, 0.22),
            0 0 16px rgba(125, 95, 255, 0.16);
    }
}

@keyframes bbh-cta-play-pulse-heartbeat {
    0% {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1);
        opacity: 0.96;
    }

    18% {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1.16);
        opacity: 1;
    }

    32% {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1.03);
        opacity: 0.93;
    }

    50% {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1.11);
        opacity: 1;
    }

    100% {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1);
        opacity: 0.96;
    }
}

/* ==========================================================================
   BBH CTA Play Pulse — Pulsar padrão ativo
   Garante pulsar contínuo com ou sem hover.
   ========================================================================== */

.bbh-cta-play-pulse.bbh-cta-play-pulse--platinum {
    animation: bbh-cta-play-pulse-heartbeat 1.35s infinite;
}

.bbh-cta-play-pulse.bbh-cta-play-pulse--platinum::before {
    animation: bbh-cta-play-pulse-ring 1.35s infinite;
}

.bbh-cta-play-pulse.bbh-cta-play-pulse--platinum:hover {
    animation: bbh-cta-play-pulse-heartbeat 1.35s infinite;
}

.bbh-cta-play-pulse.bbh-cta-play-pulse--platinum:hover::before {
    animation: bbh-cta-play-pulse-ring 1.2s infinite;
}

/* ==========================================================================
   BBH CTA Play Pulse — Acessibilidade / movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .bbh-cta-play-pulse,
    .bbh-cta-play-pulse::before {
        animation: none;
    }

    .bbh-cta-play-pulse {
        transform: var(--bbh-cta-play-pulse-transform-base) scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   BBH CTA Play Pulse — Tooltip
   ========================================================================== */

.bbh-cta-play-pulse-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(50% - 58px);
    z-index: 4;
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    max-width: min(280px, calc(100vw - 40px));
    padding: 7px 12px 7px 12px;
    border: 1px solid rgba(143, 245, 255, 0.34);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(13, 24, 48, 0.96), rgba(5, 8, 20, 0.96));
    color: #ffffff;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow:
        0 0 10px rgba(0, 188, 255, 0.18),
        0 0 18px rgba(142, 86, 255, 0.16);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.bbh-cta-play-pulse-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(143, 245, 255, 0.28);
    border-top: 1px solid rgba(143, 245, 255, 0.28);
    background: rgba(13, 24, 48, 0.96);
}

.bbh-cta-play-pulse:hover + .bbh-cta-play-pulse-tooltip,
.bbh-cta-play-pulse:focus-visible + .bbh-cta-play-pulse-tooltip,
.bbh-cta-play-pulse-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .bbh-cta-play-pulse-tooltip {
        bottom: calc(50% - 54px);
        max-width: calc(100vw - 40px);
        font-size: 10.5px;
        white-space: normal;
    }
}


/* ==========================================================================
   BBH Video Controls Hint — legado / controles nativos
   Mesma linguagem do tooltip do pulsar; aparece acima do Play nativo.
   ========================================================================== */
.bbh-video-control-tooltip {
    position: absolute;
    left: 12px;
    bottom: 50px;
    z-index: 5;
    transform: translateY(6px);
    width: max-content;
    max-width: min(280px, calc(100vw - 40px));
    padding: 7px 12px;
    border: 1px solid rgba(143, 245, 255, 0.34);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(13, 24, 48, 0.96), rgba(5, 8, 20, 0.96));
    color: #ffffff;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 188, 255, 0.18), 0 0 18px rgba(142, 86, 255, 0.16);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.bbh-video-control-tooltip::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: -5px;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    border-right: 1px solid rgba(143, 245, 255, 0.28);
    border-bottom: 1px solid rgba(143, 245, 255, 0.28);
    background: rgba(5, 8, 20, 0.96);
}

.bbh-video-control-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .bbh-video-control-tooltip {
        left: 8px;
        bottom: 46px;
        max-width: calc(100vw - 40px);
        font-size: 10.5px;
        white-space: normal;
    }
}
