/* Estilos adicionais e refinamentos */

/* Otimizações de performance */
* {
    -webkit-tap-highlight-color: transparent;
}

/* === VTURB PLAYER === */

/* Estilos para VTurb Smart Player */
vturb-smartplayer {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === VSL PLAYER OTIMIZADO === */

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border-radius: 12px;
}

.play-overlay-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0;
}

.play-overlay-btn:hover {
    transform: scale(1.1);
}

.play-overlay-btn:active {
    transform: scale(0.95);
}

/* Skip Warning */
.skip-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Resume Notification */
.resume-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    max-width: 400px;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.resume-notification p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.resume-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.resume-notification button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 120px;
}

.resume-yes {
    background: #28a745;
    color: #fff;
}

.resume-yes:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.resume-no {
    background: #6c757d;
    color: #fff;
}

.resume-no:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* CTA agora é gerenciado pelo VTurb - estilos removidos */

/* Responsive */
@media (max-width: 768px) {
    .skip-warning {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 12px 20px;
    }

    .resume-notification {
        max-width: 90%;
        padding: 20px;
    }

    .resume-notification p {
        font-size: 14px;
    }

    .resume-buttons {
        flex-direction: column;
    }

    .resume-notification button {
        width: 100%;
    }
}

/* Melhorias de acessibilidade */
button:focus-visible {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Animações suaves para o contador */
.counter .number {
    transition: color 0.3s ease;
}

/* Loading state do vídeo */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.video-wrapper.loading::before {
    opacity: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsividade adicional */
@media (max-width: 480px) {
    .location-bar {
        font-size: 14px;
        padding: 12px 12px;
    }
    
    .play-pause-btn {
        width: 44px;
        height: 44px;
    }
}

/* Prevenção de seleção de texto em elementos interativos */
.play-pause-btn,
.progress-container {
    user-select: none;
    -webkit-user-select: none;
}
