/*
 * Estilos públicos del shortcode [lp_youtube_videos].
 * El archivo solo se encola cuando WordPress renderiza el shortcode.
 */

.lp-youtube-videos__notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #d97706;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.875rem;
}

.lp-youtube-videos--empty {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
}

.lp-youtube-videos--empty p {
    margin: 0 0 0.25rem;
}

/* Video Principal */
.video-principal {
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.video-principal img {
    object-fit: cover;
}

/* Videos Secundarios */
.video-secundario {
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-secundario:hover {
    transform: translateY(-2px);
}

.video-secundario img {
    object-fit: cover;
}

.titulo-video {
    display: flex;
    align-items: flex-start;
}

.titulo-video p {
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Botón YouTube */
.youtube-btn {
    transition: all 200ms ease;
    color: #000000 !important;
}

.youtube-btn:visited {
    color: #000000 !important;
}

.youtube-btn:hover {
    background-color: #005fa3;
    color: #fff;
    border-color: #005fa3;
}

.youtube-btn.btn-outline-primary {
    color: #000000 !important;
    border-color: #000000 !important;
    background-color: transparent !important;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.youtube-btn.btn-outline-primary:hover,
.youtube-btn.btn-outline-primary:focus,
.youtube-btn.btn-outline-primary:active {
    color: #000000 !important;
    background-color: transparent !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
}

/* Play Button Hover */
.play-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent !important;
}

.play-btn:hover {
    transform: translate(-50%,-45%) scale(1.05) !important;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    background: transparent !important;
}

.video-principal:hover .play-btn,
.video-secundario:hover .play-btn {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .video-principal {
        width: 100% !important;
        height: 222px !important;
        max-width: 100%;
    }

    .video-secundario {
        width: 167px !important;
        height: 100px !important;
        max-width: 100%;
    }

    .titulo-video {
        font-size: 14px !important;
    }

    .titulo-video p {
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .video-principal,
    .video-secundario {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    .contenedor-video-principal,
    .contenedor-videos-secundarios {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .titulo-video {
        font-size: 24px !important;
    }
}

@media (min-width: 1200px) {
    .contenedor-video-principal {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .contenedor-videos-secundarios {
        display: flex;
        flex-direction: column;
    }
}
