/**
 * CSS do Plugin WP Video Review
 * UI/UX Otimizada e Moderna
 */

/* Card container */
.wpvr-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow para destaque */
    position: relative;
    overflow: hidden;
    color: #333;
}

/* Stepper de Progresso */
.wpvr-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
}

.wpvr-step-indicator {
    font-size: 12px;
    color: #bbb;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 0 5px;
}

.wpvr-step-indicator.active {
    color: var(--wpvr-primary-color, #0073aa);
}

/* Animações das Etapas */
.wpvr-step {
    display: none;
}

.wpvr-step.active {
    display: block;
    animation: wpvrSlideUpFade 0.4s ease forwards;
}

@keyframes wpvrSlideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpvr-step-header {
    text-align: center;
    margin-bottom: 25px;
}

.wpvr-step-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wpvr-step-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Área de Vídeo base (Instruções e Prévia) */
.wpvr-video-area {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 por padrão */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Área de Vídeo específica para a Câmera (Vertical) */
#wpvr-step-3 .wpvr-recording-interface .wpvr-video-area {
    padding-top: 130%;
    /* Proporção quase vertical estilo Reels/TikTok */
    border-radius: 20px;
}

#wpvr-video-feed,
#wpvr-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Espelha o vídeo para o modo selfie (apenas no modo câmera) */
}

/* Não espelha o vídeo pre-gravado no preview */
.wpvr-preview-interface #wpvr-video-preview {
    transform: none;
}

/* Máscara de rosto vertical suave */
.wpvr-face-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 65% 85% at center, transparent 40%, rgba(0, 0, 0, 0.6) 80%);
    pointer-events: none;
    z-index: 2;
}

/* Estilos para o Teleprompter (Glassmorphism) */
#wpvr-teleprompter-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    width: 85%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    z-index: 10;
    max-height: 40%;
    overflow-y: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: none;
}

#wpvr-teleprompter-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

/* Botões de controle */
.wpvr-controls {
    text-align: center;
    margin-top: 25px;
}

.wpvr-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.2s ease;
}

.wpvr-button:hover {
    background-color: #e4e4e4;
}

.wpvr-button-primary {
    background-color: var(--wpvr-primary-color, #0073aa);
    color: white;
}

.wpvr-button-primary:hover {
    background-color: var(--wpvr-primary-color, #0073aa);
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: white;
}

.wpvr-button-record {
    background-color: #e53e3e;
    color: white;
    animation: wpvrPulse 1.5s infinite;
}

@keyframes wpvrPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
    }
}

/* Timer */
#wpvr-timer {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

/* Esconder o campo de texto do teleprompter quando a gravação começar */
.wpvr-recording-active #wpvr-teleprompter-input {
    display: none !important;
}

/* Estilo para a tela de agradecimento */
.wpvr-thank-you {
    text-align: center;
    padding: 40px 0;
}

.wpvr-thank-you h2 {
    color: var(--wpvr-primary-color, #0073aa);
    font-size: 28px;
    margin-bottom: 20px;
}

/* Formulário */
#wpvr-upload-form label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: inline-block;
}

#wpvr-upload-form input[type="text"],
#wpvr-upload-form input[type="email"],
#wpvr-upload-form input[type="tel"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
}

/* Responsividade para tablet/desktop */
@media (max-width: 480px) {
    .wpvr-container {
        padding: 20px;
        margin: 20px auto;
        border-radius: 12px;
    }

    .wpvr-step-indicator {
        font-size: 11px;
    }
}

/* =========================================================================
   ESTILOS DO CARROSSEL / VITRINE [wp_video_carousel]
   ========================================================================= */

.wpvr-carousel-wrapper {
    margin: 40px auto;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
}

.wpvr-carousel-grid {
    display: flex;
    overflow-x: auto;
    /* Permite rolar horizontalmente no desktop/mobile */
    gap: 20px;
    padding: 10px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Oculta a barra de rolagem (opcional para um visual mais limpo) */
.wpvr-carousel-grid::-webkit-scrollbar {
    height: 8px;
}

.wpvr-carousel-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wpvr-carousel-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.wpvr-showcase-card {
    flex: 0 0 auto;
    width: 280px;
    /* Largura fixa para manter o formato vertical */
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Sombra elegante */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.wpvr-showcase-card:hover {
    transform: translateY(-5px);
}

.wpvr-showcase-video-box {
    position: relative;
    width: 100%;
    padding-top: 130%;
    /* Mantém o aspecto (vertical / reels) */
    background: #000;
    cursor: pointer;
}

.wpvr-showcase-video-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpvr-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Para o clique passar direto para a div */
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Esconde e amplia o botão de Play quando o vídeo está em andamento (is-playing) */
.wpvr-showcase-video-box.is-playing .wpvr-play-overlay {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
}

.wpvr-showcase-info {
    padding: 15px;
    text-align: center;
}

.wpvr-showcase-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.wpvr-showcase-stars {
    color: #FFA41C;
    /* Amarelo ouro (Estilo Amazon) */
    font-size: 18px;
    letter-spacing: 2px;
}

.wpvr-no-reviews {
    text-align: center;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 12px;
    color: #666;
    border: 1px dashed #ccc;
}