/* ============================================================
   css/simulators/shorts-preview.css — Estilos de Preview & Visões (Frente / Costas)
   ============================================================ */

/* Animação 3D de Rotação (Flip View Turn) ao alternar Frente / Costas */
@keyframes flipViewTurn {
    0% {
        transform: perspective(1200px) rotateY(0deg) scale(1);
        opacity: 1;
    }
    45% {
        transform: perspective(1200px) rotateY(90deg) scale(0.92);
        opacity: 0.55;
        filter: brightness(1.2) blur(1px);
    }
    100% {
        transform: perspective(1200px) rotateY(0deg) scale(1);
        opacity: 1;
        filter: none;
    }
}

.flip-turn-animation {
    animation: flipViewTurn 0.42s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Pulso suave de neon para modo costas */
@keyframes pulseCostasNeon {
    0%, 100% {
        box-shadow: inset 0 0 25px rgba(0, 240, 255, 0.18), 0 0 15px rgba(0, 240, 255, 0.25);
        border-color: rgba(0, 240, 255, 0.65);
    }
    50% {
        box-shadow: inset 0 0 38px rgba(0, 240, 255, 0.32), 0 0 28px rgba(0, 240, 255, 0.45);
        border-color: rgba(0, 240, 255, 1);
    }
}

/* Rotação lenta de ícone */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   VIEWPORT DO SIMULADOR — FEEDBACK VISUAL DE COSTAS
   ============================================================ */
.simulator-viewport.view-costas-active {
    animation: pulseCostasNeon 3s infinite ease-in-out;
    border-radius: 12px;
}

/* Badge Flutuante centralizado suprimido (eliminada repetição e desobstruído o cós) */
.viewport-floating-status-tag {
    display: none !important;
}

/* ============================================================
   BARRA FLUTUANTE DE ALTERNÂNCIA (Canto Superior Direito)
   ============================================================ */
.view-switch-floating-bar {
    position: absolute;
    top: 14px;
    right: 16px;
    left: auto;
    transform: none;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 16, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 4px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    user-select: none;
}

.view-switch-floating-bar:hover {
    background: rgba(14, 16, 22, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

/* Estado da Barra Flutuante quando em Modo Costas */
.view-switch-floating-bar.is-costas {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.95), rgba(15, 23, 42, 0.95));
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), 0 6px 20px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .view-switch-floating-bar {
        top: 10px;
        right: 10px;
        padding: 3px 6px;
    }
}

.view-arrow-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.view-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.1);
}

.view-switch-floating-bar.is-costas .view-arrow-btn {
    color: #00F0FF;
}

.view-switch-floating-bar.is-costas .view-arrow-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    color: #ffffff;
}

.view-indicator-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.25s ease;
}

.view-indicator-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.view-indicator-icon {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.view-indicator-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    text-transform: uppercase;
    font-weight: 700;
}

/* Indicador Pill no Modo Costas */
.view-indicator-pill.is-costas {
    background: linear-gradient(135deg, #00F0FF, #0284c7);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.view-indicator-pill.is-costas .view-indicator-text {
    color: #03131e !important;
    font-weight: 900;
}

.view-indicator-pill.is-costas .view-indicator-icon {
    animation: spinSlow 5s linear infinite;
}

/* Badge legado suprimido */
.view-indicator-badge {
    display: none !important;
}

/* Watermark/Etiqueta no Viewport */
.view-mode-watermark {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 90;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-mode-watermark.frente strong {
    color: #D4AF37;
}

.view-mode-watermark.costas {
    background: rgba(8, 47, 73, 0.85);
    border: 1px solid #00F0FF;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    color: #e0f2fe;
}

.view-mode-watermark.costas strong {
    color: #00F0FF;
    font-weight: 900;
}

/* ============================================================
   HERO BANNER DE ESTADO NOS CONTROLES (Painel Lateral)
   ============================================================ */
.view-mode-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.view-mode-hero-banner.costas {
    background: linear-gradient(135deg, rgba(8, 51, 68, 0.95), rgba(15, 23, 42, 0.95));
    border: 1.5px solid #00F0FF;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.view-mode-hero-banner.costas .hero-title {
    color: #00F0FF;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-mode-hero-banner.costas .hero-desc {
    color: #e0f2fe;
    font-size: 0.74rem;
    margin-top: 3px;
    line-height: 1.35;
}

.view-mode-hero-banner.frente {
    background: linear-gradient(135deg, rgba(26, 23, 14, 0.92), rgba(18, 18, 22, 0.92));
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.view-mode-hero-banner.frente .hero-title {
    color: #D4AF37;
    font-size: 0.84rem;
    font-weight: 800;
}

.view-mode-hero-banner.frente .hero-desc {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 2px;
}

.btn-hero-switch {
    background: #00F0FF;
    color: #03131e;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.3);
}

.btn-hero-switch:hover {
    background: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.5);
}

.btn-hero-switch.to-costas {
    background: rgba(0, 240, 255, 0.12);
    border: 1.5px solid #00F0FF;
    color: #00F0FF;
}

.btn-hero-switch.to-costas:hover {
    background: #00F0FF;
    color: #000;
}

/* ============================================================
   SELETOR DE ABAS SUPERIORES NOS CONTROLES
   ============================================================ */
.simulator-view-switcher-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-switch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    background: transparent;
    border: 1px solid transparent;
    color: #888;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-switch-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
    border-color: rgba(212, 175, 55, 0.6);
    color: #D4AF37;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Botão de Costas Ativo com Cor Vibrante e Chamativa */
.view-switch-btn.costas.active {
    background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
    border-color: #00F0FF !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.view-switch-btn.costas.active .switch-icon {
    animation: spinSlow 4s linear infinite;
}

/* Badges e Tags nos Acordeões das Costas */
.step-accordion-tag-costas {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #00F0FF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Efeito de destaque nas abas ativas das costas */
body.view-costas-active .custom-tab-btn.active,
.view-costas-active .custom-tab-btn.active {
    border-bottom: 2px solid #00F0FF !important;
    color: #00F0FF !important;
}

body.view-costas-active .media-tab-btn.active,
.is-costas-zone .media-tab-btn.active {
    border-color: #00F0FF !important;
    background: rgba(0, 240, 255, 0.12) !important;
    color: #00F0FF !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

body.view-costas-active .media-tab-btn.active .btn-icon-box,
.is-costas-zone .media-tab-btn.active .btn-icon-box {
    color: #00F0FF !important;
}

.zone-costas-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 240, 255, 0.18);
    border: 1px solid #00F0FF;
    color: #00F0FF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

body.view-costas-active .btn-quick-switch-costas {
    display: none !important;
}

/* ============================================================
   BLOCO DE ESCOLHA FRENTE / COSTAS (FINAL DOS ACESSÓRIOS & PRÉ-CHECKOUT)
   ============================================================ */
.sim-view-choice-step7,
.sim-view-choice-block {
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sim-view-choice-step7:hover,
.sim-view-choice-block:hover {
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.15) !important;
}

.sim-view-choice-step7 .view-switch-btn,
.sim-view-choice-block .view-switch-btn {
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-view-choice-step7 .view-switch-btn:hover,
.sim-view-choice-block .view-switch-btn:hover {
    transform: translateY(-1px);
}

