/* =============================================
   V2 BANNER — Text Hover Effect + Overlay Grow
   ============================================= */
.v2-banner {
    width: 100%;
    padding: 5rem 0 4rem;
    background: transparent;
    display: flex;
    justify-content: center;
}

/* Container */
.v2-banner-inner.v2-split {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: clamp(340px, 42vw, 480px);
    overflow: hidden;
    margin: 0 auto;
}

/* ── Painéis: sem background, largura fixa 50% ── */
.v2-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.v2-panel-left {
    left: 0;
}

.v2-panel-right {
    right: 0;
}

/* Painel ativo sobe no z-index, mas não altera width */
.v2-panel.is-active {
    z-index: 10;
}

/* Painel passivo desaparece, mas continua capturando o mouse para troca rápida */
.v2-panel.is-squeezed {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Panel-content: onde acontece o movimento horizontal unificado */
.v2-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

/* Movimentação coordenada com o divisor */
.v2-split:has(#panelV1.is-active) #panelV1 .v2-panel-content,
.v2-split.active-left #panelV1 .v2-panel-content {
    transform: translateX(14vw);
}

.v2-split:has(#panelV2.is-active) #panelV2 .v2-panel-content,
.v2-split.active-right #panelV2 .v2-panel-content {
    transform: translateX(-14vw);
}

/* ── Divisor ── */
.v2-divider {
    position: absolute;
    left: 50%;
    top: 8%;
    height: 84%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.13) 25%,
            rgba(255, 255, 255, 0.13) 75%,
            transparent);
    pointer-events: none;
    z-index: 20;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-split:has(#panelV1.is-active) .v2-divider,
.v2-split.active-left .v2-divider {
    transform: translateX(-50%) translateX(14vw);
}

.v2-split:has(#panelV2.is-active) .v2-divider,
.v2-split.active-right .v2-divider {
    transform: translateX(-50%) translateX(-14vw);
}

/* ── SVG Wrapper ── */
.v2-text-hover-wrapper {
    width: clamp(180px, 26vw, 400px);
    aspect-ratio: 520 / 320;
    flex-shrink: 0;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.v2-text-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.v2-text-line {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 152px;
    letter-spacing: -4px;
}

.v2-text-small {
    font-size: 120px;
}

.v2-text-static {
    opacity: 1;
    transition: opacity 0.35s ease;
}

/* LA:RP v1.4 (Sempre Hollow e Glow) */
#textHoverV1 .v2-text-static {
    opacity: 0.8;
}

/* v1.4: Não esconder o static no hover (mantendo o hollow) */
#textHoverV1:hover .v2-text-static {
    opacity: 1;
}

/* LA:RP v2.0 (Sempre Sólido — apenas contorno ganha efeito no hover) */
#textHoverV2:hover .v2-text-static {
    opacity: 1;
    /* Mantém preenchimento branco */
}

.v2-text-stroke {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.v2-text-hover-wrapper:hover .v2-text-stroke {
    opacity: 1;
    animation: v2Stroke 1.8s ease-in-out forwards;
}

@keyframes v2Stroke {
    from {
        stroke-dashoffset: 2000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.v2-text-color {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.v2-text-hover-wrapper:hover .v2-text-color {
    opacity: 1;
}

/* ── Subtítulos ── */
.v2-subtitle {
    font-size: clamp(0.6rem, 0.85vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-align: center;
}

.v2-subtitle-accent {
    color: var(--primary-color);
}

.v2-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--muted-foreground-light);
    letter-spacing: 0.12em;
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-top: -0.8rem;
}

/* Detalhes: ocultar RÁPIDO, aparecer com delay para painel abrir primeiro */
.v2-details {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    /* saída rápida, sem delay */
}

/* Detalhes do v1.4: aparecem à ESQUERDA, alinhados à DIREITA */
.v2-details-left {
    left: 2vw;
    text-align: right;
}

/* Detalhes do v2.0: aparecem à DIREITA, alinhados à ESQUERDA */
.v2-details-right {
    right: 2vw;
    text-align: left;
}

/* Mostrar: delay 0.5s (aguarda painel abrir) / ocultar: já tem 0.1s no .v2-details */
.v2-split:has(#panelV1.is-active) .v2-details-left,
.v2-split.active-left .v2-details-left {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.5s;
}

.v2-split:has(#panelV2.is-active) .v2-details-right,
.v2-split.active-right .v2-details-right {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.5s;
}

/* Lista */
.v2-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Alinhamento flex para os itens da lista */
.v2-details-left .v2-detail-list {
    align-items: flex-end;
}

.v2-details-right .v2-detail-list {
    align-items: flex-start;
}

.v2-detail-list li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.v2-detail-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-foreground-light);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.v2-detail-value {
    font-size: 0.83rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.v2-badge-stable {
    color: #ffffff;
    font-weight: 700;
}

.v2-badge-dev {
    color: #ffffff;
    font-weight: 700;
}

/* Descrição detalhada */
.v2-detail-full {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
    width: 100%;
}

.v2-detail-desc {
    font-size: 0.72rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0.3rem 0 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    white-space: normal;
    text-align: inherit;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
    .v2-banner-inner.v2-split {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .v2-panel {
        position: static;
        width: 100% !important;
        height: auto;
        background: transparent;
    }

    .v2-panel-content {
        transform: none !important;
    }

    .v2-divider {
        position: static;
        left: auto;
        transform: none !important;
        width: 160px;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 70%, transparent);
    }

    .v2-details {
        position: static;
        transform: none;
        opacity: 1 !important;
        pointer-events: auto !important;
        margin-top: 1rem;
    }
}