/* video-help.css - Judith AI Video Tutorials (Aligned with Guia de Identidade Visual) */

.btn-video-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF9900; /* Laranja Vibrante - CTA */
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 8px; /* Conforme guia */
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2); /* Soft shadow */
}

.btn-video-tutorial:hover {
    background: #E68A00; /* Darker orange for hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-video-tutorial i {
    font-size: 1rem;
}

/* Version for Secondary style (if we want to be more discrete on some pages) */
.btn-video-tutorial.secondary {
    background: #F8F9FA;
    color: #137DC5;
    border: 1px solid #137DC5;
}

/* Floating version for pages without header */
.btn-video-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 45, 78, 0.9); /* Azul Escuro com opacidade */
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.video-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    background: #000;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal-overlay.open .video-modal-container {
    transform: scale(1);
}

.video-modal-container video {
    width: 100%;
    height: 100%;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.video-modal-close:hover {
    color: #FF9900;
}

@media (max-width: 768px) {
    .video-modal-container {
        aspect-ratio: auto;
        height: auto;
    }
    
    .btn-video-tutorial span {
        display: none;
    }
    
    .btn-video-tutorial {
        padding: 8px;
    }
}
