﻿/* ===================================================================== */
/* ---             ESTILOS GLOBALES PARA COMPONENTE VIDEOS           --- */
/* ===================================================================== */

/* --- 1. Estructura de la Tarjeta Unificada --- */
.social-video-card {
    background-color: var(--lighter-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .social-video-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

/* --- 2. Encabezado de la Tarjeta --- */
.social-video-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text, #333);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.platform-icon {
    font-size: 1.4rem;
}

.color-ig {
    color: #E1306C;
}

.color-tk {
    color: #000000;
}

.color-fb {
    color: #1877F2;
}

.color-yt {
    color: #FF0000;
}


/* --- 3. Cuerpo de la Tarjeta (LA CAJA NEGRA FIJA - ESTA ES LA CORRECCIÓN CLAVE) --- */
.social-video-body {
    background-color: #050505; /* Fondo negro como en el cine */
    height: 480px; /* ALTURA ESTRICTA PARA QUE TODAS MIDAN IGUAL */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

    /* Ajustes para iframes de Facebook e Instagram dentro de la caja negra */
    .social-video-body iframe {
        width: 100% !important;
        height: 100% !important;
        border: none;
    }

    /* Ajuste específico para TikTok para que se centre en la caja negra */
    .social-video-body .tiktok-embed {
        margin: 0 auto !important;
        height: 100% !important;
        width: 100% !important;
        display: flex;
        align-items: center;
        background-color: #050505;
    }

/* --- 4. Elementos para el video de YouTube (Miniatura y Botón Play) --- */
.video-thumbnail-v2 {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

    .video-thumbnail-v2 img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* La imagen llena la caja sin deformarse */
        opacity: 0.8; /* Un poco oscura para resaltar el Play */
        transition: opacity 0.3s ease;
    }

.social-video-card:hover .video-thumbnail-v2 img {
    opacity: 1;
}

.play-icon-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .play-icon-overlay-v2 i {
        text-shadow: 0 0 15px rgba(0,0,0,0.8);
        font-size: 5rem;
        color: rgba(255,255,255,0.9);
        transition: transform 0.2s ease;
    }

.video-thumbnail-v2:hover .play-icon-overlay-v2 i {
    transform: scale(1.1);
}

/* --- 5. Pie de la Tarjeta (Descripción) --- */
.social-video-footer {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.video-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* Estilo de la "falsa" card en escritorio */
.video-preview-card {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d); /* Un gradiente colorido para que no sea gris */
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .video-preview-card:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
    }

/* Asegurar que el video en móvil respete el ancho */
.video-container-mobile .fb-video {
    width: 100% !important;
}

/* Fondo negro para el modal */
.bg-black {
    background-color: #000 !important;
}
