/* ====================================
   VIDEOS - ESTILOS
   ==================================== */

.videos-seccion {
    padding-top: 130px;
}

/* Icono de pagina */
.videos-page-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.videos-page-icon i {
    font-size: 2.25rem;
    color: white;
}

.page-title {
    font-size: 2.75rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.title-separator {
    height: 3px;
    width: 80px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.intro-paragraph {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================ */
/* BREADCRUMB                                   */
/* ============================================ */

.breadcrumb-custom {
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-flex;
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--accent-darker);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "\203a" !important;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    color: var(--primary) !important;
    float: left;
}

/* ============================================ */
/* TARJETAS DE VIDEO                           */
/* ============================================ */

.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Preview / Thumbnail */
.video-card-preview {
    position: relative;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
}

.video-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-card-preview img {
    transform: scale(1.05);
}

.video-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.video-card-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.3;
}

/* Boton de play overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.video-card:hover .video-play-btn {
    transform: scale(1.15);
    background: rgba(255, 0, 0, 1);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

.video-play-btn i {
    font-size: 2rem;
    color: white;
    margin-left: 4px;
}

/* Cuerpo de la tarjeta */
.video-card-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .video-card-title {
    color: var(--light);
}

.video-card-author {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: auto;
}

.video-card-author i {
    color: var(--primary);
}

/* ============================================ */
/* MODAL DE VIDEO                              */
/* ============================================ */

.video-modal-content {
    background: #000;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-modal-content .modal-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
}

.video-modal-content .modal-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-content .ratio {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================ */
/* ESTADO VACIO                                */
/* ============================================ */

.videos-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-light);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.videos-empty i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
    display: block;
}

.videos-empty h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.dark-mode .videos-empty h3 {
    color: var(--light);
}

.videos-empty p {
    color: var(--text-color);
    opacity: 0.8;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */

@media (max-width: 768px) {
    .videos-seccion {
        padding-top: 100px;
    }

    .page-title {
        font-size: 2rem;
    }

    .video-card-preview {
        height: 200px;
    }

    .video-play-btn {
        width: 56px;
        height: 56px;
    }

    .video-play-btn i {
        font-size: 1.5rem;
    }

    .videos-page-icon {
        width: 60px;
        height: 60px;
    }

    .videos-page-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .video-card-body {
        padding: 1rem;
    }

    .video-card-title {
        font-size: 1rem;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
    }

    .video-play-btn i {
        font-size: 1.25rem;
    }
}

/* ============================================ */
/* MODO OSCURO                                 */
/* ============================================ */

.dark-mode .video-card {
    background-color: var(--card-bg);
}

.dark-mode .videos-empty {
    background: var(--gradient-light);
}

.dark-mode .video-modal-content {
    background: #000;
}
