/* YouTube Videos Plugin - Frontend Styles */

/* Container principal */
.yvp-videos-container {

    
    margin: 0 auto;
   
}

/* Item individual do vídeo */
.yvp-video-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;

    background: #fff;

/*     overflow: hidden; */
}



/* Container do player - 50% no desktop */
.yvp-video-player-container {
    flex: 0 0 50%;
    margin-right: 20px;
    position: relative;
}

/* Player do vídeo */
.yvp-video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.yvp-video-player iframe{
    height: 330px;
    opacity: 1;
    visibility: visible;
    display: block;
    position: relative;
	
}

/* Thumbnail do vídeo */
.yvp-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    cursor: pointer;
    overflow: hidden;
}

.yvp-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yvp-video-thumbnail:hover .yvp-thumbnail-img {
    transform: scale(1.05);
}

/* Botão de play */
.yvp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.yvp-play-button:hover {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.yvp-play-icon {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px; /* Ajuste visual para centralizar o ícone */
}

/* Duração do vídeo */
.yvp-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Container de informações - 50% no desktop */
.yvp-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

/* Título do vídeo */
.yvp-video-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #26557c;
    text-decoration: none;
   font-family: 'Barmeno';
}



/* Descrição do vídeo */
.yvp-video-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

/* Meta informações */
.yvp-video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.yvp-video-date,
.yvp-video-views {
    display: flex;
    align-items: center;
}

/* Player inline (quando carregado) */
.yvp-inline-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.yvp-inline-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Estados de loading */
.yvp-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.yvp-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: yvp-spin 1s ease-in-out infinite;
}

@keyframes yvp-spin {
    to { transform: rotate(360deg); }
}

/* Mensagem quando não há vídeos */
.yvp-no-videos {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Mensagem de erro */
.yvp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

/* Vídeo único */
.yvp-single-video-container {
    max-width: 800px;
    margin: 0 auto;
}

.yvp-single-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.yvp-single-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.yvp-single-video-info {
    padding: 0 10px;
}

.yvp-single-video-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.yvp-single-video-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Layout em grid (quando especificado) */
.yvp-videos-container[data-columns="2"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.yvp-videos-container[data-columns="3"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.yvp-videos-container[data-columns="2"] .yvp-video-item,
.yvp-videos-container[data-columns="3"] .yvp-video-item {
    flex-direction: column;
    margin-bottom: 0;
}

.yvp-videos-container[data-columns="2"] .yvp-video-player-container,
.yvp-videos-container[data-columns="3"] .yvp-video-player-container {
    flex: none;
    margin-right: 0;
    margin-bottom: 15px;
}

/* RESPONSIVIDADE */

/* Tablets */
@media (max-width: 768px) {
    .yvp-videos-container {
        padding: 15px 10px;
    }
    
    .yvp-video-item {
        flex-direction: column;
        margin-bottom: 25px;
        padding: 15px;
    }
    
    .yvp-video-player-container {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .yvp-video-title {
        font-size: 18px;
    }
    
    .yvp-play-button {
        width: 70px;
        height: 70px;
    }
    
    .yvp-play-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Grid layouts em tablet */
    .yvp-videos-container[data-columns="2"],
    .yvp-videos-container[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .yvp-videos-container {
        padding: 10px 5px;
    }
    
    .yvp-video-item {
        /* Já está em coluna devido ao tablet breakpoint */
        margin-bottom: 20px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .yvp-video-player-container {
        margin-bottom: 12px;
    }
    
    .yvp-video-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .yvp-video-description {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .yvp-video-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .yvp-play-button {
        width: 60px;
        height: 60px;
    }
    
    .yvp-play-icon {
        width: 24px;
        height: 24px;
    }
    
    .yvp-video-duration {
        font-size: 11px;
        padding: 3px 6px;
        bottom: 6px;
        right: 6px;
    }
    
    /* Grid layouts em mobile - sempre 1 coluna */
    .yvp-videos-container[data-columns="2"],
    .yvp-videos-container[data-columns="3"] {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Vídeo único em mobile */
    .yvp-single-video-container {
        padding: 0 10px;
    }
    
    .yvp-single-video-title {
        font-size: 20px;
    }
    
    .yvp-single-video-description {
        font-size: 14px;
    }
}

/* Animações e transições suaves */
.yvp-video-item * {
    transition: all 0.3s ease;
}

/* Acessibilidade */
.yvp-play-button:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

.yvp-video-thumbnail:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Estados ativos */
.yvp-video-item.yvp-playing .yvp-play-button {
    display: none;
}

.yvp-video-item.yvp-loading .yvp-video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Melhorias visuais */
.yvp-videos-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Scrollbar customizada para webkit browsers */
/* .yvp-video-description::-webkit-scrollbar {
    width: 4px;
}

.yvp-video-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.yvp-video-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.yvp-video-description::-webkit-scrollbar-thumb:hover {
    background: #999;
} */

