/**
 * YouTube Videos Selector - CSS Frontend
 * Versão 2.0.0
 */

/* ==========================================================================
   Container Principal
   ========================================================================== */

.youtube-videos-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* ==========================================================================
   Item de Vídeo
   ========================================================================== */

.youtube-video-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.youtube-video-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Thumbnail e Botão de Play
   ========================================================================== */

.youtube-video-item .video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.youtube-video-item .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.youtube-video-item .play-button2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,0,0,0.9);
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    background-image: none !important;
    border: none !important;
    z-index: 2;
    /* Forçar uso do texto em vez de imagem SVG */
    font-family: Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.youtube-video-item .play-button2:hover {
    color: #fff !important;
    text-decoration: none;
    background-image: none !important;
    background: rgba(255,0,0,1);
}

.youtube-video-item .play-button2::before,
.youtube-video-item .play-button2::after {
    display: none !important;
    content: none !important;
    background-image: none !important;
}

/* Estilizar o SVG do Font Awesome */
.youtube-video-item .play-button2 svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    display: block;
}

/* Remover o texto ▶ e usar apenas o SVG */
.youtube-video-item .play-button2 {
    content: none !important;
}

/* Desabilitar emojis do WordPress para este elemento */
.youtube-video-item .play-button2 {
    font-family: Arial, sans-serif !important;
    -webkit-font-feature-settings: "liga" 0;
    -moz-font-feature-settings: "liga" 0;
    font-feature-settings: "liga" 0;
}

/* Bloquear qualquer regra CSS que force emojis como imagens */
.youtube-video-item .play-button2 {
    -webkit-text-rendering: optimizeLegibility;
    text-rendering: optimizeLegibility;
}

.youtube-video-item:hover .play-button2 {
    opacity: 1;
}

/* ==========================================================================
   Informações do Vídeo
   ========================================================================== */

.youtube-video-item .video-info {
    padding: 15px;
}

.youtube-video-item .video-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
}

.youtube-video-item .video-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.youtube-video-item .video-info h3 a:hover {
    color: #0073aa;
}

.youtube-video-item .video-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-video-item .video-date {
    font-size: 12px;
    color: #999;
    display: block;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (max-width: 1024px) {
    .youtube-videos-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .youtube-videos-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .youtube-video-item .video-thumbnail {
        height: 200px;
    }
    
    .youtube-video-item .video-info {
        padding: 20px;
    }
    
    .youtube-video-item .video-info h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .youtube-videos-display {
        gap: 15px;
        margin: 20px 0;
    }
    
    .youtube-video-item .video-info {
        padding: 15px;
    }
    
    .youtube-video-item .video-info h3 {
        font-size: 16px;
    }
} 